Skip to content

Commit 66cb22e

Browse files
authored
Merge branch 'main' into feat/mcp-tool-filtering-js
2 parents e4ba592 + af73bfb commit 66cb22e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+252
-76
lines changed

.changeset/funny-dragons-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/agents-core': patch
3+
---
4+
5+
Rebinds cached tools to the current MCP server to avoid stale tool invocation (fixes #195)

.changeset/hungry-ladybugs-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@openai/agents-openai": patch
3+
---
4+
5+
fix: if prompt is not specified return undefined - fixes #159

.changeset/shiny-beers-tie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/agents-openai': patch
3+
---
4+
5+
Add input_fidelity parameter support to image generation tool

.changeset/strong-lobsters-repair.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@openai/agents-extensions": patch
3+
"@openai/agents-realtime": patch
4+
---
5+
6+
fix(realtime-ws): stop accidental cancellation error

.changeset/tame-deers-shake.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@openai/agents-core": patch
3+
"@openai/agents-openai": patch
4+
"@openai/agents-realtime": patch
5+
---
6+
7+
Fix typos across repo

.changeset/young-birds-hammer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@openai/agents-openai': patch
3+
'@openai/agents-core': patch
4+
---
5+
6+
Fix #216 Publicly accessible PDF file URL is not yet supported in the input_file content data

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
strategy:
1414
matrix:
1515
# https://nodejs.org/en/about/previous-releases
16-
node-version: [20, 22, 24]
16+
# Using 24.3.x due to https://github.com/pnpm/pnpm/issues/9743
17+
node-version: ['20', '22', '24.3.x']
1718
steps:
1819
- name: Checkout repository
1920
uses: actions/checkout@v4
@@ -36,4 +37,4 @@ jobs:
3637
- name: Compile examples
3738
run: pnpm -r build-check
3839
- name: Run tests
39-
run: pnpm test
40+
run: pnpm test

docs/src/content/docs/extensions/twilio.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ raw audio from a phone call to a WebSocket server. This set up can be used to co
1212
[voice agents](/openai-agents-js/guides/voice-agents) to Twilio. You can use the default Realtime Session transport
1313
in `websocket` mode to connect the events coming from Twilio to your Realtime Session. However,
1414
this requires you to set the right audio format and adjust your own interruption timing as phone
15-
calls will naturally introduce more latency than a web-based converstaion.
15+
calls will naturally introduce more latency than a web-based conversation.
1616

1717
To improve the set up experience, we've created a dedicated transport layer that handles the
1818
connection to Twilio for you, including handling interruptions and audio forwarding for you.
@@ -72,7 +72,7 @@ for more information on how to use the `RealtimeSession` with voice agents.
7272

7373
In order to receive all the necessary events and audio from Twilio, you should create your
7474
`TwilioRealtimeTransportLayer` instance as soon as you have a reference to the WebSocket
75-
connetion and immediately call `session.connect()` afterwards.
75+
connection and immediately call `session.connect()` afterwards.
7676

7777
2. **Access the raw Twilio events.**
7878

docs/src/content/docs/guides/mcp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To stream incremental MCP results, pass `stream: true` when you run the `Agent`:
5959

6060
For sensitive operations you can require human approval of individual tool calls. Pass either `requireApproval: 'always'` or a fine‑grained object mapping tool names to `'never'`/`'always'`.
6161

62-
If you can programatically determine whether a tool call is safe, you can use the [`onApproval` callback](https://github.com/openai/openai-agents-js/blob/main/examples/mcp/hosted-mcp-on-approval.ts) to approve or reject the tool call. If you require human approval, you can use the same [human-in-the-loop (HITL) approach](/openai-agents-js/guides/human-in-the-loop/) using `interruptions` as for local function tools.
62+
If you can programmatically determine whether a tool call is safe, you can use the [`onApproval` callback](https://github.com/openai/openai-agents-js/blob/main/examples/mcp/hosted-mcp-on-approval.ts) to approve or reject the tool call. If you require human approval, you can use the same [human-in-the-loop (HITL) approach](/openai-agents-js/guides/human-in-the-loop/) using `interruptions` as for local function tools.
6363

6464
<Code
6565
lang="typescript"

docs/src/content/docs/guides/results.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ There are two ways you can access the inputs for your next turn:
4646

4747
## Last agent
4848

49-
The `lastAgent` property contains the last agent that ran. Depending on your application, this is often useful for the next time the user inputs something. For example, if you have a frontline triage agent that hands off to a language-specific agent, you can store the last agent, and re-use it the next time the user messages the agent.
49+
The `lastAgent` property contains the last agent that ran. Depending on your application, this is often useful for the next time the user inputs something. For example, if you have a frontline triage agent that hands off to a language-specific agent, you can store the last agent, and reuse it the next time the user messages the agent.
5050

5151
In streaming mode it can also be useful to access the `currentAgent` property that's mapping to the current agent that is running.
5252

0 commit comments

Comments
 (0)