Skip to content

AIAgent: complete a deferred result on error #10

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

Merged
merged 1 commit into from
May 8, 2025

Conversation

fzhinkin
Copy link
Contributor

@fzhinkin fzhinkin commented May 7, 2025

Fixed the issue with AIAgent::runAndGetResult hanging if an error occurred during agent execution.
Also, updated a test to avoid a deadlock: by contract, event handler runs in the same coroutine context as the agent, and the test was sending a message into a rendezvous-channel on events. The channel was updated to be unlimited to avoid the deadlock.

@fzhinkin fzhinkin requested a review from Ololoshechkin May 7, 2025 14:18
@fzhinkin fzhinkin added the bug Something isn't working label May 7, 2025
Fixed the issue with AIAgent::runAndGetResult handing if an error occurred during agent execution.
Also, updated a test to avoid a deadlock.
@fzhinkin fzhinkin force-pushed the fzhinkin/aiagent-run-handle-errors branch from 08c0a85 to 94a241a Compare May 8, 2025 12:39
@fzhinkin fzhinkin merged commit 0efa287 into main May 8, 2025
3 checks passed
@fzhinkin fzhinkin deleted the fzhinkin/aiagent-run-handle-errors branch May 8, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants