Agents
Agents are assistants that leverage tools and subagents to perform complex tasks.
AgentsManager
Listing Agents
To list all agents available in your project, use the list_agents
method:
Retrieving an Agent
To retrieve a specific agent by its ID, use the retrieve_agent
method:
Agent
Deleting an Agent
To delete an agent, use the delete_agent
method:
Listing Tools
To list all tools associated with an agent, use the list_tools
method:
Listing Subagents
To list all subagents associated with an agent, use the list_subagents
method:
Triggering a Task
To trigger a task with a message, use the trigger_task
method:
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:
Managing Tools
To add, remove, or clear all tools associated with an agent, use the add_tool
, remove_tool
, and remove_all_tools
methods respectively: