Skip to content

Allow for updating instructions #340

@karpikpl

Description

@karpikpl

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

  • When agent exists - update definition in agent_base.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions