(reasoning, content string)
| 52 | } |
| 53 | |
| 54 | func codeCommentResponse(reasoning, content string) *llm.ChatResponse { |
| 55 | return &llm.ChatResponse{ |
| 56 | Choices: []llm.Choice{{Message: llm.ResponseMessage{ |
| 57 | Content: &content, |
| 58 | ReasoningContent: reasoning, |
| 59 | ToolCalls: []llm.ToolCall{{ |
| 60 | ID: "call_comment", |
| 61 | Type: "function", |
| 62 | Function: llm.FunctionCall{ |
| 63 | Name: tool.CodeComment.Name(), |
| 64 | Arguments: `{"comments":[{"content":"issue","existing_code":"x"}]}`, |
| 65 | }, |
| 66 | }}, |
| 67 | }}}, |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // TestRunPerFile_BackfillsThinkingFromReasoningContent verifies the full |
| 72 | // wiring: the model's native reasoning_content on a tool-calling turn is |
no test coverage detected