toolEnd static method

ZorphyPatch<AgentSessionDocument> toolEnd(
  1. String sessionId,
  2. String toolName,
  3. ToolCallOutcome outcome,
  4. int turn, {
  5. AgentSessionDocument? base,
})

The patch for a single tool_execution_end event.

Implementation

static ZorphyPatch<AgentSessionDocument> toolEnd(
  String sessionId,
  String toolName,
  ToolCallOutcome outcome,
  int turn, {
  AgentSessionDocument? base,
}) => project(sessionId, [
  AgentToolEnd(toolName: toolName, outcome: outcome, turn: turn),
], base: base);