Skip to content

[#372] Review onTurnError use cases - Add sample#508

Merged
rido-min merged 2 commits intomainfrom
southworks/add/error-handling-sample
Aug 11, 2025
Merged

[#372] Review onTurnError use cases - Add sample#508
rido-min merged 2 commits intomainfrom
southworks/add/error-handling-sample

Conversation

@ceciliaavila
Copy link
Copy Markdown
Collaborator

Fixes #372

Description

This PR adds a sample to showcase how to configure a custom error handler in the AgentApplication to replace the default onTurnError function from the adapter.

Detailed Changes

  • Created a new sample under samples/basic named errorHandling.ts.

Testing

These images show the sample working:

  • Here the custom error handler is executed, logging the error to the console and sending a message to the user.
image
  • Here the default onTurnError is executed with the DEBUG=* setting in the .env file. A trace activity is sent, and the detailed error is logged.
image

@rido-min rido-min mentioned this pull request Aug 11, 2025
@rido-min rido-min enabled auto-merge (squash) August 11, 2025 11:33
@rido-min rido-min merged commit 81e9b61 into main Aug 11, 2025
7 checks passed
@rido-min rido-min deleted the southworks/add/error-handling-sample branch August 11, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review onTurnError use cases

2 participants