You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: clarify tool limitations and add validation details
- Add prominent note about tool loading limitations for code-based instantiation
- Document Python-specific tool support (files, modules, @tool functions)
- Add example of programmatic tool addition after agent creation
- Explain tool validation error messages with examples
- Clarify that MCP server support will enable other language tools
- Update tool loading examples to be more specific about Python requirements
🤖 Assisted by Amazon Q Developer
Copy file name to clipboardExpand all lines: docs/user-guide/concepts/experimental/agent-config.md
+40-4Lines changed: 40 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,18 @@ The experimental `config_to_agent` function provides a simple way to create agen
14
14
- Support both file paths and dictionary configurations
15
15
- Leverage the Agent class's built-in tool loading capabilities
16
16
17
+
!!! note "Tool Loading Limitations"
18
+
Configuration-based agent setup only works for tools that don't require code-based instantiation. For tools that need constructor arguments or complex setup, use the programmatic approach after creating the agent:
-`model`: Model identifier (string) - see [model provider documentation](https://strandsagents.com/latest/user-guide/quickstart/#using-a-string-model-id)
65
77
-`prompt`: System prompt for the agent (string)
66
-
-`tools`: List of tool names, module paths, or file paths (list of strings)
78
+
-`tools`: List of tool specifications (list of strings)
67
79
-`name`: Agent name (string)
68
80
69
81
### Tool Loading
70
82
71
-
The `tools` configuration supports the same formats as the Agent class:
83
+
The `tools` configuration supports Python-specific tool loading formats:
72
84
73
85
```json
74
86
{
75
87
"tools": [
76
-
"strands_tools.file_read", // Module path
88
+
"strands_tools.file_read", // Python module path
77
89
"my_app.tools.cake_tool", // Custom module path
78
-
"/path/to/another_tool.py"// File path
90
+
"/path/to/another_tool.py", // File path
91
+
"my_module.my_tool_function"// @tool annotated function
79
92
]
80
93
}
81
94
```
82
95
96
+
!!! important "Python Tool Support Only"
97
+
Currently, tool loading is Python-specific and supports:
0 commit comments