sdk.error when your agent encounters a failure it cannot recover from — a failed API call, an unhandled exception, or any condition that prevents the run from completing successfully. Error entries render in red in the dashboard terminal, making them immediately visible in any log stream.
Parameters
A description of the failure. Be specific enough that you can identify the root cause when reviewing the dashboard later.
Optional key-value data providing context for the error. Pass the exception message, status codes, or relevant request parameters here so they appear as formatted JSON in the terminal.
Example
When to use
Callsdk.error for:
- Caught exceptions that indicate a fatal failure
- External API calls that return error status codes your agent cannot handle
- Missing required inputs or configuration that prevent execution
- Any condition where the agent cannot produce a valid result
Dashboard rendering
sdk.error entries render in red in the Dolphinclaw dashboard terminal. Red entries stand out immediately in a log stream and signal that the run requires attention.