Agents
Agents are intelligent assistants capable of leveraging tools and subagents to perform complex tasks.
AgentsManager
Listing Agents
To list all agents available in your project, use the list_agents
method:
Example response:
Retrieving an Agent
To retrieve a specific agent by its ID, use the retrieve_agent
method:
Example response:
Upserting an Agent
To create or update an agent, use the upsert_agent
method:
Example response:
Deleting an Agent
To delete an agent, use the delete_agent
method:
Example response:
Agent
Managing Tools
Listing Tools
To list all tools associated with an agent, use the list_tools
method:
Example response:
Adding a Tool
To add a tool to an agent, use the add_tool
method:
Removing a Tool
To remove a tool from an agent, use the remove_tool
method:
Removing All Tools
To clear all tools associated with an agent, use the remove_all_tools
method:
Managing Subagents
Listing Subagents
To list all subagents associated with an agent, use the list_subagents
method:
Example response:
Adding a Subagent
To add a subagent to an agent, use the add_subagent
method:
Removing a Subagent
To remove a subagent from an agent, use the remove_subagent
method:
Task Management
Triggering a Task
To trigger a task with a message, use the trigger_task
method:
Example response:
Viewing Task Steps
To view the steps of a task, use the view_task_steps
method:
Approving a Task
To approve a task, use the approve_task
method:
Rerunning a Task
To rerun a task, use the rerun_task
method:
Scheduling an Action in a Task
To schedule an action in a task, use the schedule_action_in_task
method:
Getting Task Output Preview
To get a preview of the task output, use the get_task_output_preview
method:
Example response:
Updating Agent Settings
Updating Core Instructions
To update the core instructions for an agent, use the update_core_instructions
method:
Updating Template Settings
To update template settings for an agent, use the update_template_settings
method:
Getting Agent Links
To get a link to an agent’s configuration page, use the get_link
method:
Example response: