Agents
AI that can take actions based on live data!
Last updated
AI that can take actions based on live data!
Last updated
Agents are how you can create complex prompt-chains and interact with live data, API's, and enhance your Prompts with RAG. This feature is under active development, but there's already enough there to bring value to our Beamers, so we thought we'd give y'all access.
Agents function very similar to Prompts, and since they have the same inputs and outputs as a Prompt can even be swapped in your application with very little work. You send variables
and messages
and then we respond with a new ChatMessage
.
Every Agent is expecting the last step to be a Prompt, in order to support streaming in responses to your users.
Every Agent can be accessed via the API with it's AI, or distributed via the Solo Agent features, accessed in the Sidebar Menu (check out the next section for details).
This endpoint processes a chat interaction with a specified agent. It supports both streaming and non-streaming operations based on the provided parameters.
Unique identifier for the agent
"agent-abcde"
Payload containing the chat details and parameters for processing the agent interaction
Variables for the agent
Identifier for the chat session
"chat-12345"
List of messages in the chat
Whether to stream the response
true
ID of the user interacting with the agent
"user-67890"
Whether to consolidate the stream
true
User-specific secrets for the agent
Agent interaction successful
Identifier for the chat session.
"chat-67890"
Indicates if the streaming has finished.
false