Optional
conversationOptional
onStream response -- can be set optionally, otherwise the response will be returned
Optional
payloadAdditional data that can be passed to the agent.
Optional
toolFor client-sided tools, this can be used to notify the result of the tool call. E.g. If the previous agent call response was: { toolCalls: [ { id: '1', name: 'getWeather', parameters: { ... } }, } Then when the client-side tool is executed, you can call the agent with: { toolCallResults: [ { id: '1', result: { ... } } ]
Optional
userFor chat-based agents, this is the user message sent from the client.
Additional configuration that can be passed from the client to the agent. This can be used to pass feature-flags or other configuration values. E.g. { model: 'gpt-3.5-turbo-0125', promptVersion: "chain-of-thought", }