Parameter | Type | Required | Default | Description |
---|---|---|---|---|
question | string | Yes | - | The query or task to be executed |
model | string | Yes | - | The model to be used for the task |
language | string | Yes | - | The language for the response |
max_rounds | integer | No | 15 | Maximum number of conversation rounds |
temperature | float | No | 0 | Controls randomness in the output |
top_p | float | No | 1 | Controls diversity of the output |
Event Type | Description | Data Structure |
---|---|---|
connected | Initial connection established | {"event": "connected"} |
heartbeat | Server heartbeat message | {"content": "Waiting for round X...", "event": "heartbeat"} |
step_web | Web tool call results | {"content": Object, "event": "step_web", "round_num": int, "web_round_num": int} |
step_chat | Chat interaction results | {"content": Object, "event": "step_chat", "round_num": int} |
answer | Final answer | {"content": string, "event": "answer"} |
chat_history | Complete conversation history | {"content": Array, "event": "chat_history"} |
token_info | Token usage information | {"content": Object, "event": "token_info"} |
[DONE] | Stream completion marker | - |
data: {"event": "step_chat", "content": {...}, "round_num": 1}
data: {"event": "answer", "content": "Final response"}
data: [DONE]
{
"model": "string",
"question": "string",
"language": "string"
}
curl --location --request POST 'https://api.302.ai/302/owl/runner/sse' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"question": "string",
"language": "string"
}'
{}