toolEnd static method
ZorphyPatch<AgentSessionDocument>
toolEnd(
- String sessionId,
- String toolName,
- ToolCallOutcome outcome,
- int turn, {
- 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);