AI Agent Server will be used to communicate with the AI Agent. It will be used to send the request and receive the response from the AI Agent.
Server
Server API example
see in example/custom_agent
ResponseAction
- ResponseAction.Direct should return โSSE
" - ResponseAction.TextChunk should return โJSONโ
- ResponseAction.WebView should return โHTMLโ code
Request Body
same to Chat API
{
"messages": [
{
"role": "user",
"content": "Hi, I want to book a flight from Hangzhou to Shanghai."
}
]
}