Skip to content

Variable: SystemPromptSchema

Makaio Framework


Makaio Framework / contracts/shared / SystemPromptSchema

const SystemPromptSchema: ZodUnion<readonly [ZodString, ZodObject<{ content: ZodString; mode: ZodLiteral<"append">; }, $strip>]>

Defined in: ../../../packages/contracts/src/shared/index.ts:150

System prompt configuration for agent sessions.

Supports two modes:

  • string: Replace/set the entire system prompt
  • { mode: 'append', content: string }: Append to adapter’s default system prompt

The append mode is useful for adding context-specific instructions (e.g., messageHistory interpretation) without overriding the adapter’s base configuration.

// Replace entirely
systemPrompt: 'You are a helpful assistant.'
// Append to existing
systemPrompt: {
mode: 'append',
content: 'You are naturally continuing a conversation with user.',
}