Skip to content

Variable: ResolveSystemPromptSchema

Makaio Framework


Makaio Framework / contracts/session / ResolveSystemPromptSchema

const ResolveSystemPromptSchema: object

Defined in: ../../../packages/contracts/src/session/schemas/resolve-system-prompt.ts:17

RPC schema for resolving a session’s system prompt.

Framework adapters use this RPC during rehydration to obtain the resolved system prompt without importing host-tier persona/profile code. The host-tier handler performs a best-effort lookup: persona resolution (via PersonaSubjects.resolve) then profile lookup (via ProfileSubjects.get). When neither produces a prompt, the handler leaves the result unset so requestOptional returns { handled: false } and the caller applies its own fallback.

sessionId is accepted for future session-override support but is not currently used by the handler.

resolveSystemPrompt: object

Resolve the fully-assembled system prompt for a given session.

Subject: session.resolveSystemPrompt Type: Request (RPC)

const { systemPrompt } = await bus.request(
SessionSubjects.resolveSystemPrompt,
{ sessionId: 'session-uuid' },
);

request: ZodObject<{ personaId: ZodOptional<ZodString>; profileId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>

response: ZodObject<{ personaName: ZodOptional<ZodString>; profileName: ZodOptional<ZodString>; systemPrompt: ZodString; }, $strip>