Skip to content

Commit

Permalink
updated agents tool examples
Browse files Browse the repository at this point in the history
  • Loading branch information
brnaba-aws committed Dec 26, 2024
1 parent a9ae264 commit 67a2944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/content/docs/agents/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ The `Tools` class manages multiple tool definitions and handles tool execution d
streaming=True,
description="Specialized agent for giving weather condition from a city.",
tool_config={
'tool': [tool.to_bedrock_format() for tool in tools.tools],
'tool': tools,
'toolMaxRecursions': 5,
},
))
Expand Down Expand Up @@ -220,7 +220,7 @@ Here is an example of how you can add Tools to your Agent
name='weather-agent',
description='Agent specialized in providing weather information for cities',
tool_config={
'tool': weather_tool_with_func.to_bedrock_format(),
'tool': weather_tools,
'toolMaxRecursions': 5, # Maximum number of tool calls in one conversation
}
))
Expand Down Expand Up @@ -303,7 +303,7 @@ When you need more control over tool execution, you can implement a custom handl
name='weather-agent',
description='Agent specialized in providing weather information for cities',
tool_config={
'tool': weather_tool_with_func.to_bedrock_format(),
'tool': weather_tools.to_bedrock_format(),
'toolMaxRecursions': 5, # Maximum number of tool calls in one conversation
'useToolHandler': bedrock_weather_tool_handler
}
Expand Down

0 comments on commit 67a2944

Please sign in to comment.