Skip to content

Commit c2d1baa

Browse files
committed
feat: limit config_to_agent to core configuration keys
- Remove support for advanced Agent parameters in config_to_agent - Only support: model, prompt, tools, name in configuration - Advanced parameters can still be passed via kwargs - Remove agent_id test and update function mapping - Keep interface simple and focused on basic agent configuration 🤖 Assisted by Amazon Q Developer
1 parent f372666 commit c2d1baa

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/strands/experimental/agent_config.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ def config_to_agent(config: Union[str, Dict[str, Any]], **kwargs) -> Agent:
6666
"prompt": "system_prompt",
6767
"tools": "tools",
6868
"name": "name",
69-
"agent_id": "agent_id",
70-
"session_manager": "session_manager",
71-
"conversation_manager": "conversation_manager",
72-
"hooks": "hooks",
73-
"callback_handler": "callback_handler",
74-
"state": "state",
75-
"trace_attributes": "trace_attributes",
7669
}
7770

7871
# Only include non-None values from config

tests/strands/experimental/test_agent_config.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ def test_config_to_agent_with_name(self):
109109
agent = config_to_agent(config)
110110
assert agent.name == "TestAgent"
111111

112-
def test_config_to_agent_with_agent_id(self):
113-
"""Test config_to_agent handles agent_id."""
114-
config = {"model": "test-model", "agent_id": "test-agent-123"}
115-
agent = config_to_agent(config)
116-
assert agent.agent_id == "test-agent-123"
117-
118112
def test_config_to_agent_ignores_none_values(self):
119113
"""Test that None values in config are ignored."""
120114
config = {"model": "test-model", "prompt": None, "name": None}

0 commit comments

Comments
 (0)