docs(go): Document Anthropic strict tool use#276
Open
Anthony-Bible wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
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.
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.
b380dce to
9e83f45
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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