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.
Expected Behaviour
Chain agent should log exceptions and raise if necessary.
Current Behaviour
process_requestfor 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 errorSteps to Reproduce
Cause an exception in the chain agent.