Skip to content

Bug: Chain Agent Exception Handling #248

Description

@brianantonelli

Expected Behaviour

Chain agent should log exceptions and raise if necessary.

Current Behaviour

process_request for ChainAgent attempts to raise a string as an exception.

Code snippet

`raise f"Error processing request with agent {agent.name}:{str(error)}"`

Possible Solution

raise Exception(f"Error processing request with agent {agent.name}:{str(error)}") from error

Steps to Reproduce

Cause an exception in the chain agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions