Skip to content

Conversation

@whoiskatrin
Copy link
Contributor

getTransferMessage isn't returning a valid JSON, added a test to verify the output
added changeset

@changeset-bot
Copy link

changeset-bot bot commented Jun 6, 2025

🦋 Changeset detected

Latest commit: 35ce3fd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@openai/agents-core Patch
@openai/agents-openai Patch
@openai/agents-realtime Patch
@openai/agents Patch
@openai/agents-extensions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

export function getTransferMessage<TContext, TOutput extends AgentOutputType>(
agent: Agent<TContext, TOutput>,
) {
return `{'assistant': '${agent.name}'}`;
Copy link
Member

Choose a reason for hiding this comment

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

The only reason why we went with this string is to align with Python SDK. As long as the standard JSON format works without any issues here, I think it should be fine to change this. @dkundel-openai thoughts?

Copy link

Choose a reason for hiding this comment

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

fine to change

@dkundel-openai dkundel-openai merged commit 426ad73 into openai:main Jun 6, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants