MCPcopy Create free account
hub / github.com/alibaba/open-code-review / codeCommentResponse

Function codeCommentResponse

internal/llmloop/loop_execute_more_test.go:54–69  ·  view source on GitHub ↗
(reasoning, content string)

Source from the content-addressed store, hash-verified

52}
53
54func 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

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected