Express Agent
This endpoint answers the user’s query with an LLM. Optionally, you can ground the answer using web results (max 1 web search).!
Use it for answering simple questions that require a low latency response.
The data returns as a JSON payload with a `application/json` content type
<Note>The call only returns when the agent has finished fully responding to the input question.</Note>
Authentication
AuthorizationBearer
A unique API Key required to authorize API access. Ensure it is kept confidential. Get a free API Key at you.com/platform.
Request
This endpoint expects an object.
agent
Setting this value to "express" is mandatory to use the express agent.
Allowed values:
input
The question you'd like to ask the agent
stream
Must be set to true when you want to stream the express agent response as its being generated, and false when you want the response to return after the agent has finished.
tools
You can optionally ground the express agent response using results fetched from the web (max 1 web search)
Response
agent
The id of the agent populated in the request.
input
The users access role and question you asked the agent
output
The response populated by the agent.