feat(llm): pass strict through tool definitions for Codex parity (#33392)

This commit is contained in:
Aiden Cline
2026-06-25 16:28:39 -05:00
committed by GitHub
parent d7bf7604f7
commit cd29e7b797
10 changed files with 31 additions and 9 deletions
@@ -258,6 +258,8 @@ const lowerTool = (tool: ToolDefinition): OpenAIResponsesTool => ({
name: tool.name,
description: tool.description,
parameters: ProviderShared.openAiToolInputSchema(tool.inputSchema),
// TODO: Read this from OpenAI-specific tool options so direct LLM callers can opt into strict schemas.
strict: false,
})
const lowerToolChoice = (toolChoice: NonNullable<LLMRequest["toolChoice"]>) =>