Skip to content

Conversation

@chakrris
Copy link
Contributor

@chakrris chakrris commented Sep 4, 2025

Summary

This PR updates the OAI activity wrappers with:

max_turns parameter to all OpenAI agent methods (run_agent, run_agent_auto_send, run_agent_streamed, run_agent_streamed_auto_send) to control the maximum number of conversation turns
• additional wrappers for various OpenAI tool types including web search, file search, computer tools, code interpreter, image generation, and local shell tools
• this requires updating the tool call and response processing with generic handling for different tool call types (web search, code interpreter, etc.)

Testing

  • Added unit tests tests/lib/adk/providers/test_openai_activities.py
  • Tested locally with an agent configured with web search and code interpreter tools
Screenshot 2025-09-04 at 6 10 41 PM

@chakrris chakrris merged commit 564bedd into main Sep 5, 2025
7 of 8 checks passed
@chakrris chakrris deleted the chakrris/oai-max-turn-and-tool branch September 5, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants