---
type: email
from: Kevin Khomiakov <notifications@github.com>
subject: Re: [openai/openai-agents-python] `UserError` not raised when invalid

 tool type is passed to `tools` parameter (Issue #1443)
received: 2026-03-05 10:11:35
date_header: Tue, 19 Aug 2025 14:37:59 -0700
priority: normal
status: awaiting_approval
uid: 28099
---

## Email Content

**From:** Kevin Khomiakov <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] `UserError` not raised when invalid

 tool type is passed to `tools` parameter (Issue #1443)
**Date:** Tue, 19 Aug 2025 14:37:59 -0700

### Body (preview)

khomiakovkevin left a comment (openai/openai-agents-python#1443)



the actual error from running your code is:



`TypeError: Agent tools must be a list, got str`



which is explicitly handled [here](https://github.com/openai/openai-agents-python/blob/df95141c2d4d625c5993a5490c9c82ad78389881/src/agents/agent.py#L239)



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1443#issuecomment-3202312978

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



Message ID: <openai/openai-agents-python/issues/1443/3202312978@github.com>

---

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