-
Notifications
You must be signed in to change notification settings - Fork 497
fix(agents-core): ensure handoff messages use valid JSON #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…base Fix schema version serialization
…pdate Add patch changeset for schema version fix
…pdate Add patch changeset for schema version fix
…essage Fix/invalid json in transfer message
🦋 Changeset detectedLatest commit: 35ce3fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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}'}`; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fine to change
getTransferMessage isn't returning a valid JSON, added a test to verify the output
added changeset