Skip to content

Update OpenAI example to show tools being called#290

Merged
b-per merged 3 commits into
mainfrom
update-example-show-tools
Aug 19, 2025
Merged

Update OpenAI example to show tools being called#290
b-per merged 3 commits into
mainfrom
update-example-show-tools

Conversation

@b-per

@b-per b-per commented Aug 19, 2025

Copy link
Copy Markdown
Collaborator

Make the example more extensive by allowing people to see what tools are called and what parameters are sent to the MCP tools

Example:

User > what was the revenue in 2017
# Calling the tool list_metrics with params {}
# Calling the tool get_dimensions with params {"metrics":["revenue"]}
# Calling the tool query_metrics with params {"metrics":["revenue"],"where":"{{ TimeDimension('metric_time', 'YEAR') }} >= '2017-01-01' AND {{ TimeDimension('metric_time', 'YEAR') }} < '2018-01-01'"}
Revenue in 2017 was 610,688.

@b-per
b-per requested review from a team and jasnonaz as code owners August 19, 2025 10:11
Comment thread examples/openai_agent/main_streamable.py

@DevonFulcher DevonFulcher left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🚀

@b-per
b-per requested a review from a team as a code owner August 19, 2025 17:43
@b-per
b-per merged commit 8bf1f39 into main Aug 19, 2025
7 checks passed
@b-per
b-per deleted the update-example-show-tools branch August 19, 2025 17:45
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.

2 participants