Skip to content

[BUGFIX] Serialise tool schema per provider via Symfony AI#22

Open
nito-web wants to merge 1 commit into
b13:mainfrom
nito-web:feature/native-tool-calling
Open

[BUGFIX] Serialise tool schema per provider via Symfony AI#22
nito-web wants to merge 1 commit into
b13:mainfrom
nito-web:feature/native-tool-calling

Conversation

@nito-web

Copy link
Copy Markdown
Contributor

processToolCallingRequest() passed ToolDefinition::toArray() arrays into $options['tools'], bypassing Symfony AI's per-bridge ToolNormalizers. The single nested shape 400s on the OpenAI Responses API and is wrong for Anthropic and Gemini. Pass native Symfony Tool objects so each bridge serialises its own shape; deprecate the now-unused toArray().

Resolves: #20

processToolCallingRequest() passed ToolDefinition::toArray() arrays into $options['tools'], bypassing Symfony AI's per-bridge ToolNormalizers. The single nested shape 400s on the OpenAI Responses API and is wrong for Anthropic and Gemini. Pass native Symfony Tool objects so each bridge serialises its own shape; deprecate the now-unused toArray().

Resolves: b13#20
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.

Per-provider tool schema in processToolCallingRequest()

1 participant