Skip to content

Conversation

NiteshSingh17
Copy link
Contributor

fixes: #316

},
});
throw new ModelBehaviorError('Invalid output type');
throw new ModelBehaviorError(errorMessage);
Copy link
Member

Choose a reason for hiding this comment

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

Just replacing this way may not be helpful enough for developers. We need to check how the actual dev experience looks like.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think there will be only single error which will be related to JSON.parse which will be understandable.

https://github.com/NiteshSingh17/openai-agents-js/blob/ee31d368be93e09b8d80e6ec100c4d2a5dc6d185/packages/agents-core/src/utils/tools.ts#L48C19-L48C32

@seratch seratch marked this pull request as draft August 26, 2025 00:53
Copy link
Contributor

This PR is stale because it has been open for 10 days with no activity.

@github-actions github-actions bot added the stale label Sep 10, 2025
@SkinnnyJay
Copy link
Contributor

@seratch, let me know if you need me to pick this up. cc: @NiteshSingh17

@github-actions github-actions bot removed the stale label Sep 15, 2025
Copy link
Contributor

This PR is stale because it has been open for 10 days with no activity.

@github-actions github-actions bot added the stale label Sep 26, 2025
Copy link
Contributor

github-actions bot commented Oct 4, 2025

This PR was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this Oct 4, 2025
@SkinnnyJay
Copy link
Contributor

@seratch would it be helpful if I took a look at this issue and circled back with a new PR?

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.

Error Invalid output type should provide additional agent state and output information
3 participants