Skip to main content
AgentOS accepts a JSON dependencies form field on run requests and passes the values into the agent’s instruction templates. The client supplies a robot name for one request and verifies that the served agent used it.
dependencies.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Start AgentOS

Save the code above as dependencies.py, then run:
5

Run the dependency request

In a second terminal with the same environment, run:
Full source: cookbook/05_agent_os/06_customize/dependencies.py