Variable: SystemPromptSchema
Makaio Framework / contracts/shared / SystemPromptSchema
Variable: SystemPromptSchema
Section titled “Variable: SystemPromptSchema”
constSystemPromptSchema: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.
Example
Section titled “Example”// Replace entirelysystemPrompt: 'You are a helpful assistant.'
// Append to existingsystemPrompt: { mode: 'append', content: 'You are naturally continuing a conversation with user.',}