Skip to content

docs: clarify OpenAI Agents tool execution - #1741

Open
jaeyoung0509 wants to merge 3 commits into
temporalio:mainfrom
jaeyoung0509:docs/openai-agents-tool-execution
Open

docs: clarify OpenAI Agents tool execution#1741
jaeyoung0509 wants to merge 3 commits into
temporalio:mainfrom
jaeyoung0509:docs/openai-agents-tool-execution

Conversation

@jaeyoung0509

Copy link
Copy Markdown

What was changed

Clarify how tools execute in the OpenAI Agents integration.

  • Explain the difference between OpenAI-hosted tools, Workflow-local FunctionTools, and tools backed by Temporal Activities.
  • Clarify when activity_as_tool() should be used and that the underlying Activity must still be registered with a Worker.
  • Update the existing diagram and fix the @functiontool typo.

Why?

While using custom tools, I found it easy to assume they were handled the same way as model calls.

Model calls are automatically routed through Temporal Activities, but user-defined FunctionTools run in the Workflow unless they are explicitly backed by an Activity. The existing docs cover both approaches, but this distinction was easy to miss, especially for tools that perform external I/O.

Checklist

  1. Related to [Feature Request] Improve custom function-tool ergonomics and safety in the OpenAI Agents integration #1718

  2. How was this tested:

Documentation-only change. I checked the updated descriptions against the current OpenAI Agents integration implementation.

  1. Any docs updates needed?

Updated temporalio/contrib/openai_agents/README.md in this PR.

@jaeyoung0509
jaeyoung0509 requested review from a team as code owners August 12, 2026 01:09
@CLAassistant

CLAassistant commented Aug 12, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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