When the agent evaluates something that throws an error we have two, behaviors, depending:
- (seems wrong): If the agent is waiting for a promise, the tool call fails
- (dunno if is wrong): If the agent is not awaiting, the tool returns an error object with the error message from the error thrown,
stderr is not populated.
When the agent evaluates something that throws an error we have two, behaviors, depending:
stderris not populated.