Skip to content

Variable: ClientSessionToolPreSchema

Makaio Framework


Makaio Framework / contracts/client / ClientSessionToolPreSchema

const ClientSessionToolPreSchema: ZodObject<{ adapterSessionId: ZodOptional<ZodString>; clientId: ZodString; metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; observedAt: ZodNumber; sessionId: ZodOptional<ZodString>; source: ZodString; toolCallId: ZodOptional<ZodString>; toolName: ZodOptional<ZodString>; }, $strip>

Defined in: ../../../packages/contracts/src/client/session-observed.ts:104

Payload for client.session.tool.pre.

Emitted when an adapter observes that a tool call is about to be executed by the client runtime. The toolName and toolCallId fields identify the specific invocation when the adapter has access to them.