PtcRunner.ToolExecutionError exception (PtcRunner v0.9.0)

Copy Markdown View Source

Exception raised when a tool execution fails.

Carries the eval context so that tool calls can be properly recorded in traces even when the tool fails.

Fields

  • message: Error message from the tool
  • eval_ctx: The evaluation context at time of failure (contains recorded tool_calls)
  • tool_name: Name of the tool that failed