Skip to content

docs(go): Document Anthropic strict tool use#276

Open
Anthony-Bible wants to merge 1 commit into
genkit-ai:mainfrom
Anthony-Bible:docs/anthropic-go-strict-tool-use
Open

docs(go): Document Anthropic strict tool use#276
Anthony-Bible wants to merge 1 commit into
genkit-ai:mainfrom
Anthony-Bible:docs/anthropic-go-strict-tool-use

Conversation

@Anthony-Bible

Copy link
Copy Markdown

This is to document strict tool use that was previously undocumented. Also covers the additions from here, making strict tool use optional per tool Note since Anthropic puts some restrictions on the json they accept, linked to Anthropic's official docs rather than restating the JSON restrictions inline — that way the docs won't go stale if Anthropic changes theirs.

closes genkit-ai/genkit#5204

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new 'Tool Calling' section to the Anthropic integration documentation, covering tool definition, strict tool use, and provider-specific exceptions like Vertex AI. The review feedback suggests improving the code examples by including missing imports for packages such as 'fmt', 'context', and 'anthropic' to make the snippets complete and easier to follow.

Comment thread src/content/docs/docs/integrations/anthropic.mdx
Comment thread src/content/docs/docs/integrations/anthropic.mdx Outdated
Add a Tool Calling section to the Go variant of the Anthropic
integration page covering strict tool use: how the plugin enables it
by default, the recursive additionalProperties enforcement, the
Vertex AI exception, and a link out to Anthropic's docs for the
supported JSON Schema subset and per-request limits.

Document the ai.WithStrictSchema(false) opt-out for tools that use
unsupported keywords, and include Anthropic's guidance to reserve
strict mode for tools where schema violations cause real problems.
@Anthony-Bible Anthony-Bible force-pushed the docs/anthropic-go-strict-tool-use branch from b380dce to 9e83f45 Compare May 14, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Document that anthropic plugin tool calls require "strict"

1 participant