Skip to content

Type Alias: SessionSendMessageRequest

Makaio Framework


Makaio Framework / contracts / SessionSendMessageRequest

SessionSendMessageRequest = z.infer<typeof OrchestratorSchemas.sendMessage.request>

Defined in: ../../../packages/contracts/src/session/schemas/orchestrator.ts:442

  • SessionSendMessageRequest
    • z.infer<typeof OrchestratorSchemas.sendMessage.request>
      • typeof OrchestratorSchemas.sendMessage.request
type SessionSendMessageRequest = {
sessionId: string;
message: string | { blocks: { type: 'text'; content: string; } | { type: 'image'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'document'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'attachment'; fileName: string; filePath: string; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; attachmentType: 'file' | 'directory'; displayName?: string | undefined; } | { type: 'reasoning'; content: string; metadata?: Record<string, unknown> | undefined; } | { type: 'tool_call'; toolCallId: string; name: string; args: Record<string, unknown>; } | { type: 'tool_output'; toolCallId: string; output: string; isError?: boolean | undefined; } | Array<{ type: 'text'; content: string; } | { type: 'image'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'document'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'attachment'; fileName: string; filePath: string; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; attachmentType: 'file' | 'directory'; displayName?: string | undefined; } | { type: 'reasoning'; content: string; metadata?: Record<string, unknown> | undefined; } | { type: 'tool_call'; toolCallId: string; name: string; args: Record<string, unknown>; } | { type: 'tool_output'; toolCallId: string; output: string; isError?: boolean | undefined; }>; role?: 'user' | 'assistant' | 'system' | undefined; };
agent?: { [x: string]: unknown; kind: 'adapter'; providerConfigId?: string | undefined; model?: string | undefined; reasoningEffort?: 'none' | 'low' | 'medium' | 'high' | 'extra-high' | undefined; cwd?: string | undefined; systemPrompt?: string | { mode: 'append'; content: string; } | undefined; allowedTools?: Array<string> | undefined; disallowedTools?: Array<string> | undefined; allowedDirectories?: Array<string> | undefined; adapterName?: string | undefined; adapterId?: string | undefined; } | { [x: string]: unknown; kind: 'canonical-model'; model: string; providerConfigId?: string | undefined; reasoningEffort?: 'none' | 'low' | 'medium' | 'high' | 'extra-high' | undefined; cwd?: string | undefined; systemPrompt?: string | { mode: 'append'; content: string; } | undefined; allowedTools?: Array<string> | undefined; disallowedTools?: Array<string> | undefined; allowedDirectories?: Array<string> | undefined; } | { [x: string]: unknown; kind: string; providerConfigId?: string | undefined; model?: string | undefined; reasoningEffort?: 'none' | 'low' | 'medium' | 'high' | 'extra-high' | undefined; cwd?: string | undefined; systemPrompt?: string | { mode: 'append'; content: string; } | undefined; allowedTools?: Array<string> | undefined; disallowedTools?: Array<string> | undefined; allowedDirectories?: Array<string> | undefined; } | undefined;
agentIds?: Array<string> | 'all' | undefined;
deliveryMode?: 'enqueue' | undefined;
turnId?: string | undefined;
sessionContext?: { messageHistory?: Array<{ blocks: { type: 'text'; content: string; } | { type: 'image'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'document'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'attachment'; fileName: string; filePath: string; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; attachmentType: 'file' | 'directory'; displayName?: string | undefined; } | { type: 'reasoning'; content: string; metadata?: Record<string, unknown> | undefined; } | { type: 'tool_call'; toolCallId: string; name: string; args: Record<string, unknown>; } | { type: 'tool_output'; toolCallId: string; output: string; isError?: boolean | undefined; } | Array<{ type: 'text'; content: string; } | { type: 'image'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'document'; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; } | { type: 'attachment'; fileName: string; filePath: string; source: { type: 'base64'; data: string; mimeType: string; } | { type: 'url'; url: string; mimeType?: string | undefined; }; attachmentType: 'file' | 'directory'; displayName?: string | undefined; } | { type: 'reasoning'; content: string; metadata?: Record<string, unknown> | undefined; } | { type: 'tool_call'; toolCallId: string; name: string; args: Record<string, unknown>; } | { type: 'tool_output'; toolCallId: string; output: string; isError?: boolean | undefined; }>; role?: 'user' | 'assistant' | 'system' | undefined; }> | undefined; hasNewTransforms?: boolean | undefined; hasCompression?: boolean | undefined; extractedContext?: unknown; isFirstTurn?: boolean | undefined; hasConnectorSwap?: boolean | undefined; turnContext?: Record<string, import("@makaio/contracts").JsonValue> | undefined; } | undefined;
source?: 'user' | 'system' | 'extension' | undefined;
extensionId?: string | undefined;
originWindowId?: string | undefined;
skipConnectorSwapWarning?: boolean | undefined;
origin?: 'text' | 'voice' | 'compact' | undefined;
};