interface GMITurnInput { interactionId : string ; userId : string ; sessionId ?: string ; type : GMIInteractionType ; content : string | Record < string , any > | ToolCallResult | ToolCallResult [] | Record < string , any > [] ; timestamp ?: Date ; userContextOverride ?: Partial < UserContext > ; taskContextOverride ?: Partial < TaskContext > ; metadata ?: Record < string , any > & { options ?: Partial < ModelCompletionOptions & { preferredModelId ?: string ; preferredProviderId ?: string ; toolChoice ?: any ; responseFormat ?: any ; } > ; userApiKeys ?: Record < string , string > ; userFeedback ?: any ; explicitPersonaSwitchId ?: string ; conversationHistoryForPrompt ?: any [] ; rollingSummary ?: null | { text ?: string ; json ?: any ; } ; promptProfile ?: null | { id : string ; systemInstructions ?: string ; reason ?: string ; } ; executionPolicy ?: null | { plannerVersion ?: string ; toolFailureMode ?: "fail_open" | "fail_closed" ; toolSelectionMode ?: "all" | "discovered" ; } ; capabilityDiscovery ?: null | { query ?: string ; kind ?: string ; selectedToolNames ?: string [] ; promptContext ?: string ; fallbackReason ?: string ; result ?: any ; } ; } ; } Properties interaction Id interaction Id : string
Optional session Id session Id ?: string
Optional timestamp timestamp ?: Date
Optional user Context Override Optional task Context Override Optional metadata metadata ?: Record < string , any > & { options ?: Partial < ModelCompletionOptions & { preferredModelId ?: string ; preferredProviderId ?: string ; toolChoice ?: any ; responseFormat ?: any ; } > ; userApiKeys ?: Record < string , string > ; userFeedback ?: any ; explicitPersonaSwitchId ?: string ; conversationHistoryForPrompt ?: any [] ; rollingSummary ?: null | { text ?: string ; json ?: any ; } ; promptProfile ?: null | { id : string ; systemInstructions ?: string ; reason ?: string ; } ; executionPolicy ?: null | { plannerVersion ?: string ; toolFailureMode ?: "fail_open" | "fail_closed" ; toolSelectionMode ?: "all" | "discovered" ; } ; capabilityDiscovery ?: null | { query ?: string ; kind ?: string ; selectedToolNames ?: string [] ; promptContext ?: string ; fallbackReason ?: string ; result ?: any ; } ; } Type declaration Optional options ?: Partial < ModelCompletionOptions & { preferredModelId ?: string ; preferredProviderId ?: string ; toolChoice ?: any ; responseFormat ?: any ; } > Optional user Api Keys ?: Record < string , string > Optional user Feedback ?: any Optional explicit Persona Switch Id ?: string Optional conversation History For Prompt ?: any [] Optional rolling Summary ?: null | { text ?: string ; json ?: any ; } Optional prompt Profile ?: null | { id : string ; systemInstructions ?: string ; reason ?: string ; } Optional execution Policy ?: null | { plannerVersion ?: string ; toolFailureMode ?: "fail_open" | "fail_closed" ; toolSelectionMode ?: "all" | "discovered" ; } Optional capability Discovery ?: null | { query ?: string ; kind ?: string ; selectedToolNames ?: string [] ; promptContext ?: string ; fallbackReason ?: string ; result ?: any ; }
Represents a single turn of input to the GMI.
Interface
GMITurnInput