Export agents into endpoints so you can use it directly in your product
https://opensesame--%7Bname%7D-modal-endpoint.modal.run/
HTTP Method:
POST
Headers:
accept: application/json
Content-Type: application/json
agent_config
: Defines the agents and tools used in the workflow.
id
: Unique identifier for each agent/tool.
type
: Specifies if the component is an LLM or a tool.
name
: Name of the agent or tool.
provider_name
: For LLMs, it specifies the AI provider (e.g., OpenAI).
model_name
: Specifies the AI model to use (e.g., gpt-4o-mini
).
tool_name
and url
: For tools, provides integration information and authentication URLs.
children
: Defines the execution order by specifying downstream agents/tools.
user_query
: A natural-language instruction for what the workflow should accomplish.
user_id
: Identifier for the user making the request.
conversation_id
: Unique conversation or workflow identifier.
response.json()
for specifics.