fix: use the correct field name for reasoning content

This commit is contained in:
CzBiX 2026-03-11 14:43:34 +08:00 committed by GitHub
parent e74820cf69
commit baa98ea7c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1093,7 +1093,7 @@ func (al *AgentLoop) runLLMIteration(
go al.handleReasoning( go al.handleReasoning(
ctx, ctx,
response.Reasoning, response.ReasoningContent,
opts.Channel, opts.Channel,
al.targetReasoningChannelID(opts.Channel), al.targetReasoningChannelID(opts.Channel),
) )
@ -1104,7 +1104,7 @@ func (al *AgentLoop) runLLMIteration(
"iteration": iteration, "iteration": iteration,
"content_chars": len(response.Content), "content_chars": len(response.Content),
"tool_calls": len(response.ToolCalls), "tool_calls": len(response.ToolCalls),
"reasoning": response.Reasoning, "reasoning_content": response.ReasoningContent,
"target_channel": al.targetReasoningChannelID(opts.Channel), "target_channel": al.targetReasoningChannelID(opts.Channel),
"channel": opts.Channel, "channel": opts.Channel,
}) })