Interface: ToolCallEndEvent<TContext>
Defined in: packages/kernl/src/lifecycle.ts:216
Emitted when a tool call ends.
Type Parameters
| Type Parameter | Default type |
|---|---|
TContext | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
agentId | public | string | The agent that executed this tool. | packages/kernl/src/lifecycle.ts:227 |
callId | public | string | Unique identifier for this call. | packages/kernl/src/lifecycle.ts:244 |
context | public | Context<TContext> | The context for this execution. NOTE: Includes context.agent reference for tools - may be optimized in future. | packages/kernl/src/lifecycle.ts:234 |
error | public | string | null | Error message if state is "failed", null if successful. | packages/kernl/src/lifecycle.ts:259 |
kind | readonly | "tool.call.end" | - | packages/kernl/src/lifecycle.ts:217 |
result? | public | string | Result if state is "completed". | packages/kernl/src/lifecycle.ts:254 |
state | public | ToolCallState | Final state of the tool call. | packages/kernl/src/lifecycle.ts:249 |
threadId | public | string | The thread ID. | packages/kernl/src/lifecycle.ts:222 |
toolId | public | string | The tool that was called. | packages/kernl/src/lifecycle.ts:239 |