Skip to main content
A WorkflowAgent decides whether a new message should execute the workflow or can be answered from workflow history. The —demo client sends both turns over the served AgentOS API.
with_workflow_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as with_workflow_agent.py, then run:
Full source: cookbook/05_agent_os/09_serving_workflows/with_workflow_agent.py