Skip to content

Use object schema for no-argument OpenAI-compatible tools#168

Open
paul-cayet wants to merge 2 commits into
mainfrom
fix-openai-compatible-no-arg-tool-schema
Open

Use object schema for no-argument OpenAI-compatible tools#168
paul-cayet wants to merge 2 commits into
mainfrom
fix-openai-compatible-no-arg-tool-schema

Conversation

@paul-cayet
Copy link
Copy Markdown
Member

Updates OpenAI-compatible tool serialization so tools with no input parameters emit an explicit empty object schema:

{
  "type": "object",
  "properties": {}
}

instead of:

{}

This keeps no-argument tools compatible with stricter OpenAI-compatible providers such as LM Studio, which reject tool schemas unless function parameters.type is "object". Adds a focused regression test for no-argument tool formatting.

@paul-cayet paul-cayet requested a review from a team May 27, 2026 12:15
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 27, 2026
@dhilloulinoracle
Copy link
Copy Markdown
Contributor

please add an entry in the changelog

@dhilloulinoracle dhilloulinoracle requested a review from vvenz1n May 27, 2026 12:54
@dhilloulinoracle
Copy link
Copy Markdown
Contributor

Internal regression failed: Build ID #908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants