-
Notifications
You must be signed in to change notification settings - Fork 257
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Motivation
When instructions change, agents should be updated in Foundry
Multi-Agent-Custom-Automation-Engine-Solution-Accelerator/src/backend/kernel_agents/agent_base.py
Lines 277 to 291 in e51be80
try: | |
agent_id = None | |
agent_list = client.agents.list_agents() | |
async for agent in agent_list: | |
if agent.name == agent_name: | |
agent_id = agent.id | |
break | |
# If the agent already exists, we can use it directly | |
# Get the existing agent definition | |
if agent_id is not None: | |
logging.info(f"Agent with ID {agent_id} exists.") | |
existing_definition = await client.agents.get_agent(agent_id) | |
return existing_definition |
Requirements
A list of requirements to consider this feature delivered
- Update agent definition when agent exists
Tasks
To be filled in by the engineer picking up the issue
- When agent exists - update definition in agent_base.py
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request