Skip to content

Variable: ClientSessionUserPromptSubmittedSchema

Makaio Framework


Makaio Framework / contracts/client / ClientSessionUserPromptSubmittedSchema

Variable: ClientSessionUserPromptSubmittedSchema

Section titled “Variable: ClientSessionUserPromptSubmittedSchema”

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

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

Payload for client.session.userPrompt.submitted.

Emitted when an adapter observes that the user has submitted a prompt to the client runtime. The prompt field carries the raw prompt text when the adapter has access to it.