Send Message

Process a user message and return the agent's response.
This endpoint accepts a message from a user and processes it through the agent.
It can optionally stream the response if 'stream_steps' or 'stream_tokens' is set to True.

Log in to see full request history
Path Params
string
required
Body Params
array of objects
required

The messages to be sent to the agent.

Messages*
boolean
Defaults to false

Whether to asynchronously send the messages to the agent.

boolean
Defaults to false

Flag to determine if the response should be streamed. Set to True for streaming agent steps.

boolean
Defaults to false

Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True).

boolean
Defaults to false

Set True to return the raw Message object. Set False to return the Message in the format of the MemGPT API.

Responses

Language
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json