feat: Introduce LLM reasoning fields to LLM responses and enable routing reasoning output to dedicated channels.

This commit is contained in:
Avisek
2026-02-26 10:54:51 +05:30
committed by Hoshina
parent 779e4dfc38
commit 9f95aad5f3
18 changed files with 345 additions and 75 deletions
+14 -5
View File
@@ -25,11 +25,20 @@ type FunctionCall struct {
}
type LLMResponse struct {
Content string `json:"content"`
ReasoningContent string `json:"reasoning_content,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
FinishReason string `json:"finish_reason"`
Usage *UsageInfo `json:"usage,omitempty"`
Content string `json:"content"`
ReasoningContent string `json:"reasoning_content,omitempty"`
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
FinishReason string `json:"finish_reason"`
Usage *UsageInfo `json:"usage,omitempty"`
Reasoning string `json:"reasoning"`
ReasoningDetails []ReasoningDetail `json:"reasoning_details"`
}
type ReasoningDetail struct {
Format string `json:"format"`
Index int `json:"index"`
Type string `json:"type"`
Text string `json:"text"`
}
type UsageInfo struct {