kernl
ReferencekernlInterfaces

Interface: ToolCallEndEvent<TContext>

Defined in: packages/kernl/src/lifecycle.ts:216

Emitted when a tool call ends.

Type Parameters

Type ParameterDefault type
TContextunknown

Properties

PropertyModifierTypeDescriptionDefined in
agentIdpublicstringThe agent that executed this tool.packages/kernl/src/lifecycle.ts:227
callIdpublicstringUnique identifier for this call.packages/kernl/src/lifecycle.ts:244
contextpublicContext<TContext>The context for this execution. NOTE: Includes context.agent reference for tools - may be optimized in future.packages/kernl/src/lifecycle.ts:234
errorpublicstring | nullError message if state is "failed", null if successful.packages/kernl/src/lifecycle.ts:259
kindreadonly"tool.call.end"-packages/kernl/src/lifecycle.ts:217
result?publicstringResult if state is "completed".packages/kernl/src/lifecycle.ts:254
statepublicToolCallStateFinal state of the tool call.packages/kernl/src/lifecycle.ts:249
threadIdpublicstringThe thread ID.packages/kernl/src/lifecycle.ts:222
toolIdpublicstringThe tool that was called.packages/kernl/src/lifecycle.ts:239

On this page