---
type: email
from: Wen-Tien Chang <notifications@github.com>
subject: Re: [openai/openai-agents-python] Tool Call doesn't work when using

 Structured Outputs (Issue #1778)
received: 2026-03-06 07:39:53
date_header: Sun, 21 Sep 2025 07:52:00 -0700
priority: normal
status: awaiting_approval
uid: 30915
---

## Email Content

**From:** Wen-Tien Chang <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Tool Call doesn't work when using

 Structured Outputs (Issue #1778)
**Date:** Sun, 21 Sep 2025 07:52:00 -0700

### Body (preview)

ihower left a comment (openai/openai-agents-python#1778)



I helped test this on my side:



gpt-4.1, gpt-4.1-mini, gpt-5, gpt-5-mini, claude-3-5-sonnet-20240620, and gemini-2.5-pro all work fine (via LitellmModel), tool calls are triggered with output_type specified.



But with openrouter/moonshotai/kimi-k2 (I tested via OpenRouter) I can reproduce exactly what you’re seeing: the tool isn’t called once structured outputs are enabled.



This looks like a model-specific limitation, not an SDK bug. Not every model seems to support the combination of structured outputs and function calling.



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1778#issuecomment-3316044200

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1778/3316044200@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
