File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
The Agent interface supports two complementary interaction patterns:
7
7
8
8
1. Natural language for conversation: `agent("Analyze this data")`
9
- 2. Method-style for direct tool access: `agent.tool_name(param1="value")`
9
+ 2. Method-style for direct tool access: `agent.tool. tool_name(param1="value")`
10
10
"""
11
11
12
12
import asyncio
@@ -515,7 +515,7 @@ def _record_tool_execution(
515
515
"""
516
516
# Create user message describing the tool call
517
517
user_msg_content = [
518
- {"text" : (f"agent.{ tool ['name' ]} direct tool call\n Input parameters: { json .dumps (tool ['input' ])} \n " )}
518
+ {"text" : (f"agent.tool. { tool ['name' ]} direct tool call. \n Input parameters: { json .dumps (tool ['input' ])} \n " )}
519
519
]
520
520
521
521
# Add override message if provided
Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ def test_agent_tool_user_message_override(agent):
566
566
},
567
567
{
568
568
"text" : (
569
- "agent.tool_decorated direct tool call\n "
569
+ "agent.tool. tool_decorated direct tool call. \n "
570
570
"Input parameters: "
571
571
'{"random_string": "abcdEfghI123", "user_message_override": "test override"}\n '
572
572
),
You can’t perform that action at this time.
0 commit comments