Skip to content

Commit c4bffe6

Browse files
committed
feat: add reasoning content to tool message choices for anthropic provider
1 parent 3395622 commit c4bffe6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)