Skip to content

Receive a message/event rather than raising RuntimeError when agent iteration reaches maximum #695

@ekzhu

Description

@ekzhu

Whether it's possible to get an event instead of RuntimeError when iteration exceeds maximum. I'm catching the runtime error and using string match to tell whether the workflow terminated because it reachse MAX_STEPS. Kind of ugly.

Image

@ultmaster

Metadata

Metadata

Assignees

Labels

agentsIssues related to single agentspublic previewIssues tagged with this label must be completed for the public previewv1.0Features being tracked for the version 1.0 GAworkflowsRelated to Workflows in agent-framework

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions