Variable: ResolveSystemPromptSchema
Makaio Framework / contracts/session / ResolveSystemPromptSchema
Variable: ResolveSystemPromptSchema
Section titled “Variable: ResolveSystemPromptSchema”
constResolveSystemPromptSchema: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.
Type Declaration
Section titled “Type Declaration”resolveSystemPrompt
Section titled “resolveSystemPrompt”resolveSystemPrompt:
object
Resolve the fully-assembled system prompt for a given session.
Subject: session.resolveSystemPrompt
Type: Request (RPC)
Example
Section titled “Example”const { systemPrompt } = await bus.request( SessionSubjects.resolveSystemPrompt, { sessionId: 'session-uuid' },);resolveSystemPrompt.request
Section titled “resolveSystemPrompt.request”request:
ZodObject<{personaId:ZodOptional<ZodString>;profileId:ZodOptional<ZodString>;sessionId:ZodString; },$strip>
resolveSystemPrompt.response
Section titled “resolveSystemPrompt.response”response:
ZodObject<{personaName:ZodOptional<ZodString>;profileName:ZodOptional<ZodString>;systemPrompt:ZodString; },$strip>