Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/kind-states-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@openai/agents-extensions': minor
Copy link
Member Author

Choose a reason for hiding this comment

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

@dkundel-openai Since this could be a breaking change to existing users, I think it's worth bumping the minor version. As for the compatibility with Python SDK, it's already v0.2 for different reasons (e.g., adding realtime agents). So, this project can decide when to upgrade the version now. Do you agree?

Copy link
Collaborator

Choose a reason for hiding this comment

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

is AI SDK v2 stable for us to go and fully cut over or is there any value to maintain both for now? Like should we copy the code and expose aisdk.v1(...) and aisdk.v2(...). Not opposed to a minor bump more concerned if one breaks the other.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dkundel-openai a challenge here is that you cannot have both v1 and v2 as peer dependencies for the same package. If we want to support both, we need to have two separate sub packages like @openai/agents-ai-sdk-v1 and @openai/agents-ai-sdk-v2.

---

Fix #283 #291 #300 migrate ai-sdk/provider to v2
20 changes: 20 additions & 0 deletions examples/ai-sdk-v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# AI SDK Example

This example shows how to run the Agents SDK with a model provided by the [AI SDK](https://www.npmjs.com/package/@ai-sdk/openai).

The [ai-sdk-model.ts](./ai-sdk-model.ts) script:

- Wraps the AI SDK `openai` provider with `aisdk` from `@openai/agents-extensions`.
- Creates a simple `get_weather` tool that returns a mock weather string.
- Defines a data agent that uses this model and tool.
- Runs a parent agent that hands off to the data agent to answer a weather question.

## Running the script

From the repository root, execute:

```bash
pnpm -F ai-sdk start:sdk-model
```

The script prints the final output produced by the runner.
Loading