- Run an Agent:
POST /agents/{agent_id}/runs(See the API reference) - Run a Team:
POST /teams/{team_id}/runs(See the API reference) - Run a Workflow:
POST /workflows/{workflow_id}/runs(See the API reference)
Passing parameters to your Agent / Team / Workflow
Agent, Team and Workflowrun() and arun() endpoints support various runtime parameters. See the Agent run schema, Team run schema, Workflow run schema for more details.
It is a common pattern to want to pass session_state, dependencies, metadata, etc. to your Agent, Team or Workflow via the API.
To pass these parameters via the AgentOS API, you can simply specify them as form-based parameters.
Below is an example where dependencies are passed to the agent:
dependencies_to_agent.py
Cancelling a Run
You can cancel a running agent, team or workflow by using the appropriate endpoint. For example, to cancel an agent run:Developer Resources
- View Complete API Reference for all endpoints
- See Authentication for securing your API