Motivation
When instructions change, agents should be updated in Foundry
|
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
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
Requirements
A list of requirements to consider this feature delivered
Tasks
To be filled in by the engineer picking up the issue