Skip to content

Conversation

seratch
Copy link
Member

@seratch seratch commented Jul 8, 2025

This pull request resolves #968

@seratch
Copy link
Member Author

seratch commented Jul 8, 2025

Will fix this too:

uv run mypy .
src/agents/models/openai_responses.py:33[8](https://github.com/openai/openai-agents-python/actions/runs/16141563102/job/45550038949#step:5:9): error: Incompatible types (expression has type "Literal['mcp']", TypedDict item "type" has type "Literal['file_search', 'web_search_preview', 'computer_use_preview', 'web_search_preview_2025_03_11', 'image_generation', 'code_interpreter']")  [typeddict-item]
Found 1 error in 1 file (checked 235 source files)
make: *** [Makefile:16: mypy] Error 1
Error: Process completed with exit code 2.

@classmethod
def convert_tool_choice(
cls, tool_choice: Literal["auto", "required", "none"] | str | None
cls, tool_choice: Literal["auto", "required", "none"] | str | dict[str, Any] | None
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the dictionary parameter is not yet used, but for future enhancement

Copy link
Collaborator

@rm-openai rm-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick q

@seratch
Copy link
Member Author

seratch commented Jul 11, 2025

@rm-openai can you take a look again?

@seratch
Copy link
Member Author

seratch commented Jul 12, 2025

resolved conflicts

@seratch seratch merged commit eafd8df into main Jul 12, 2025
5 checks passed
@seratch seratch deleted the issue-968 branch July 12, 2025 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pydantic_core._pydantic_core.ValidationError: 1 validation error for ResponseFunctionWebSearch action

2 participants