ask_stream_ask_stream_post
Get real-time legal answers with statute verification. Stream token-by-token responses to Korean or English legal questions using specialized AI agents.
Instructions
Ask Stream
SSE streaming legal question — real-time token-by-token response with statute verification.
Responses:
200: Successful Response (Success Response) Content-Type: application/json
Output Schema:
{}422: Validation Error Content-Type: application/json
Example Response:
{
"detail": [
{
"loc": [],
"msg": "Message",
"type": "Error Type"
}
]
}Output Schema:
{
"properties": {
"detail": {
"items": {
"properties": {
"loc": {
"items": {},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Legal question in Korean or English (max 2000 chars). | |
| history | No | Conversation history (max 6 recent turns). | |
| lang | No | Response language: 'ko' or 'en'. Auto-detected if omitted. | |
| mode | No | Stream mode: 'general' (default), 'leader_chat', or 'expert'. | general |
| current_leader | No | Current leader context for handoff. | |
| leader_id | No | Specific leader ID (e.g. 'L01') for 1:1 chat mode. | |
| is_first_question | No | Whether this is the user's first question in the session. |