Skip to content

Commit 0e58efc

Browse files
committed
feat: add reasoning content to tool message choices for anthropic provider
1 parent b2e8ae1 commit 0e58efc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

llms/anthropic/anthropicllm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ func generateMessagesContent(ctx context.Context, o *LLM, messages []llms.Messag
221221
return nil, fmt.Errorf("anthropic: failed to marshal tool use arguments: %w", err)
222222
}
223223
choices = append(choices, &llms.ContentChoice{
224+
ReasoningContent: reasoningContent,
224225
ToolCalls: []llms.ToolCall{
225226
{
226227
ID: toolUseContent.ID,

0 commit comments

Comments
 (0)