Skip to content

fix(bedrock): wrap bare string tool inputs - #167

Closed
FOWEPJF255 wants to merge 1 commit into
genkit-ai:mainfrom
FOWEPJF255:codex/fix-bedrock-string-tools
Closed

FOWEPJF255 wants to merge 1 commit into
genkit-ai:mainfrom
FOWEPJF255:codex/fix-bedrock-string-tools

Conversation

@FOWEPJF255

Copy link
Copy Markdown
Contributor

Summary

A tool such as weather(city: str) currently sends a scalar schema to Bedrock Converse. Send its wire input as {"input": "Paris"}, restore the bare string on the response, and wrap stored tool calls again on the next turn. Object-input tools keep their existing schema and arguments.

Continues the Bedrock portion of genkit-ai/genkit#6907 after the Python repository split, addressing #214. OpenAI scalar tool support is already covered by genkit-ai/genkit#87, and Anthropic is being handled in genkit-ai/genkit#111.

Validation

  • Both migrated regression cases failed on the unmodified source for the schema and historical tool-call envelope.
  • Python 3.12, frozen upstream dependencies: 586 Bedrock tests passed, excluding the live-service test module.
  • Ruff lint, changed-file formatting and git diff --check passed.

Prepared with Codex assistance. Verification used local fixtures and mocks; no AWS request was made.

@huangjeff5

Copy link
Copy Markdown
Collaborator

Thanks for your interest in Genkit. We're closing this pull request because we can't accept it in its current form. If you'd like to contribute, please start a discussion with the maintainers on an issue first; see CONTRIBUTING.md.

@huangjeff5 huangjeff5 closed this Dec 1, 2026
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.

2 participants