# Create an agent
agent1 = Agent(
id="agent1",
name="Assistant",
model=azure_model,
db=db,
instructions=["You are a helpful AI assistant"],
enable_user_memories=True,
markdown=True,
add_history_to_context=True,
)
# Create AgentOS app
agent_os = AgentOS(
description="My first AgentOS app1",
os_id="my-app",
agents=[agent1],
interfaces=[AGUI(agent=agent1)],
)
app = agent_os.get_app()
if __name__ == "__main__":
# Start the server
agent_os.serve(app="main:app", reload=False)
# agent_os.serve(app="main:app", reload=True)
# Visit http://localhost:7777 to interact with your agent
in /docs, use /agui api
curl -X POST ‘http://localhost:7777/agui’ \
-H “Content-Type: application/json” \
-d ‘{
“thread_id”: “test_thread_1235”,
“run_id”: “test_run_456”,
“messages”: [
{
“id”: “msg_1”,
“role”: “user”,
“content”: “hello”
}
],
“tools”: ,
“context”: ,
“forwarded_props”: {},
“state”: {}
}’
no agent_id or team_id, how to config multi agents