Interface: PromptExecutionContext
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:76
Comprehensive execution context that drives dynamic prompt construction. This context is assembled by the GMI and contains all relevant information needed for intelligent contextual element selection and prompt adaptation. PromptExecutionContext
Properties
activePersona
activePersona:
IPersonaDefinition
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:78
The currently active persona definition, guiding overall behavior and prompt structure.
conversationSignals?
optionalconversationSignals:string[]
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:92
Signals detected in the conversation (e.g., 'user_confused', 'task_completed_successfully').
currentMood?
optionalcurrentMood:string
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:82
Current mood state of the GMI, which can influence tone and element selection.
customContext?
optionalcustomContext:Record<string,unknown>
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:94
Custom context flags for specialized prompting scenarios or A/B testing.
interactionHistorySummary?
optionalinteractionHistorySummary:object
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:98
Historical interaction patterns that inform adaptation (e.g., preferred response styles).
commonTopics?
optionalcommonTopics:string[]
lastInteractionTimestamp?
optionallastInteractionTimestamp:string
problematicInteractionCount
problematicInteractionCount:
number
successfulInteractionCount
successfulInteractionCount:
number
language?
optionallanguage:string
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:90
Target language for the response (BCP-47 code, e.g., 'en-US', 'fr-FR').
sessionMetadata?
optionalsessionMetadata:object
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:105
Current session metadata (e.g., duration, number of turns).
interactionCountInSession
interactionCountInSession:
number
sessionDurationSeconds
sessionDurationSeconds:
number
userEngagementLevel?
optionaluserEngagementLevel:"low"|"medium"|"high"
taskComplexity?
optionaltaskComplexity:string
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:88
Assessed complexity level of the current task (e.g., 'simple', 'complex').
taskHint?
optionaltaskHint:string
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:86
Hint about the current task type (e.g., 'coding', 'writing', 'data_analysis').
userPreferences?
optionaluserPreferences:Record<string,unknown>
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:96
User-specific preferences that affect prompting (e.g., verbosity, preferred formats).
userSkillLevel?
optionaluserSkillLevel:string
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:84
Assessed or declared user skill level (e.g., 'beginner', 'expert') relevant to the task.
workingMemory
workingMemory:
IWorkingMemory
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:80
Access to the GMI's working memory for dynamic value retrieval (e.g., user preferences, GMI traits).