Member Junction
    Preparing search index...

    Module @memberjunction/ai-core-plus - v6.2.0-edge.5

    @memberjunction/ai-core-plus

    Shared type definitions and extended entity classes for the MemberJunction AI Framework. This package bridges the gap between the standalone @memberjunction/ai core and the full MJ entity system, providing types that are usable on both server and client. It defines prompt execution result types, agent execution types, system placeholder management, conversation utilities, and extended entity classes with additional computed properties.

    graph TD
        AI["@memberjunction/ai"]
        style AI fill:#2d6a9f,stroke:#1a4971,color:#fff
    
        CORE["@memberjunction/core"]
        style CORE fill:#2d6a9f,stroke:#1a4971,color:#fff
    
        CE["@memberjunction/core-entities"]
        style CE fill:#2d6a9f,stroke:#1a4971,color:#fff
    
        ACP["@memberjunction/ai-core-plus"]
        style ACP fill:#2d8659,stroke:#1a5c3a,color:#fff
    
        subgraph "ai-core-plus Modules"
            PT["Prompt Types
    AIPromptParams, AIPromptRunResult"] style PT fill:#7c5295,stroke:#563a6b,color:#fff AT["Agent Types
    ExecuteAgentParams, ExecuteAgentResult"] style AT fill:#7c5295,stroke:#563a6b,color:#fff SP["System Placeholders
    Date/Time, User Context"] style SP fill:#b8762f,stroke:#8a5722,color:#fff EXT["Extended Entities
    AIPrompt, AIModel, AIAgent"] style EXT fill:#2d6a9f,stroke:#1a4971,color:#fff CU["ConversationUtility"] style CU fill:#b8762f,stroke:#8a5722,color:#fff RF["Response Forms
    & UI Commands"] style RF fill:#7c5295,stroke:#563a6b,color:#fff end AI --> ACP CORE --> ACP CE --> ACP ACP --> PT ACP --> AT ACP --> SP ACP --> EXT ACP --> CU ACP --> RF
    npm install @memberjunction/ai-core-plus
    
    Type / Class Purpose
    AIPromptParams Full parameter set for prompt execution: prompt reference, data context, configuration, child prompts, streaming callbacks, cancellation, credential overrides, effort level, and more
    AIPromptRunResult<T> Generic result from prompt execution including raw/parsed output, token usage, cost, validation attempts, model selection info, and media references
    ChildPromptParam Links a child prompt to a placeholder in a parent template for hierarchical composition
    AIModelSelectionInfo Debugging info about which models were considered and why one was selected
    ExecutionProgressCallback Callback for real-time execution progress (template rendering, model selection, execution, validation)
    ExecutionStreamingCallback Callback for streaming content chunks during execution
    ValidationAttempt Detailed record of each validation attempt with attempt number, errors, and raw/parsed output
    PromptRunMediaReference Reference to generated media (image, audio, video) with metadata
    ExecutionStatus Status enum: 'Pending', 'Running', 'Completed', 'Failed', 'Cancelled'

    AIPromptParams.PreRenderedChildTemplates (placeholder name → rendered child text) lets a caller that has already rendered the child prompts — via AIPromptRunner.RenderChildPromptTemplates — hand the text to ExecutePrompt so the children are not rendered twice; the loop agent uses it when relocating a volatile specialization into its trailing runtime-state message.

    Type / Class Purpose
    ExecuteAgentParams Parameters for agent execution: agent reference, messages, conversation context, user scope, configuration presets, effort level, action changes, root-tree cumulative budgets (treeBudget, maxTreeSteps, maxTreeTokens, maxTreeCost, maxTreeDurationMs), and callbacks
    AgentTreeBudget Shared cumulative budget state (maxTreeSteps, maxTreeTokens, maxTreeCost, maxTreeDurationMs, totalSteps, totalTokens, totalCost, startedAtMs, breachedReason) propagated by reference across root and sub-agent execution trees
    ExecuteAgentResult Agent execution result with success status, output messages, actions performed, sub-agent requests, and model selection info
    AgentContextData Contextual data injected into agent prompts (notes, examples, data sources)
    AgentConfiguration Runtime configuration for an agent run (model overrides, effort level, max iterations)
    UserScope Multi-tenant scoping for agent memory with primary/secondary dimensions
    AgentAction Description of an action an agent wants to execute
    AgentSubAgentRequest Request from one agent to delegate work to a sub-agent
    AgentChatMessage / AgentChatMessageMetadata Chat messages with lifecycle metadata (expiration, compaction) and the volatileState flag marking the framework-authored trailing runtime-state fragment that provider drivers keep out of their cached prefix
    MediaOutput Media generated by an agent (modality, MIME type, data)
    ActionChange / ActionChangeScope Runtime action customization for multi-tenant scenarios
    AgentPostRunCompactionConfig Configuration for automatic post-run conversation compaction, scratchpad pruning, and background memory extraction (ExecuteAgentParams.compactAfterRun)

    ExecuteAgentResult surfaces the agent run's step list. As of v5.30.x, MemoryManagerAgent runs emit two new step types when its consolidation pipeline executes:

    Step name Cardinality Notable payload fields
    Process Consolidation Cluster One per cluster identified clusterSize, noteIds, shouldConsolidate, consolidatedNoteId, sourceNotesArchived, verificationPassed, entitiesChecked, entitiesMissing
    Verify Consolidation Output One per maintenance run Phase-level summary of post-consolidation entity coverage check

    Run-level payload additions include scoreDistribution, entityTriplesExtracted, decayScoreDistribution, protectedPreserved, ephemeralAccelerated, and triggerType ('forced' / 'time' / 'event' / 'count'). These flow through unchanged via ExecuteAgentResult.steps[*].outputData — consumers that already deserialize step output data will pick them up without code changes.

    For pipeline mechanics, see @memberjunction/ai-agents.

    Framework-neutral types and pure functions shared by the browser runtime (@memberjunction/realtime-runtime) and the server (@memberjunction/ai-agents), so both make the same channel decisions from the same inputs.

    Export Purpose
    RealtimeChannelDescriptor (+ RealtimeChannelNoun, RealtimeChannelVerb, RealtimeChannelEventSpec, RealtimeChannelDisplayPolicy, RealtimeChannelAvailability, RealtimeChannelExposure) A channel's self-description: what it holds (nouns), what it accepts (verbs with parameter schemas and InvokableBy), what it emits, how it appears ('open-on-start' | 'on-demand' | 'headless'), whether it is on for every session or opt-in, and the most the model may perceive of it ('none' | 'state' | 'pixels'). REALTIME_CHANNEL_CONTRACT_VERSION is 2.0.0; a descriptor synthesized for a channel that only implements the v1 members carries REALTIME_CHANNEL_LEGACY_CONTRACT_VERSION (1.0.0).
    ResolveRealtimeChannelScope Decides which candidate channels are in a session: code default → agent → app → host. A registry row's IsActive = false is a master kill switch nothing overrides; a host adds channels but cannot lift an agent/app exclude. Also AccumulateRealtimeChannelsConfig (per-channel, most-specific-layer-wins folding of the cascade's channels sections — not a plain deep merge, which would let an app's exclude erase the agent's), DeclaresNativeTools, SelectNativeChannelTools.
    RealtimeChannelCandidate, RealtimeSessionClientPolicy, ParseRealtimeChannelCandidates, ParseRealtimeSessionClientPolicy The two wire shapes of session policy negotiation at mint: the browser reports candidates (facts about code it owns), the server returns the resolved policy (channels in scope with their resolved display/config, plus the app/static client-tool tiers). Parsers are tolerant and capped; they never throw.
    ParseAgentSettings, IAgentSettings Tolerant parser + package-side mirror of Application.AgentSettings (kept in lockstep with metadata/entities/JSONType-interfaces/IAgentSettings.ts). Runtime code reads the raw column through this rather than the CodeGen-generated AgentSettingsObject, so a new settings field works before CodeGen next refreshes the generated copy. Includes Realtime.Channels (Include, Exclude, Config, DisplayPolicy).
    ValidateJsonAgainstSchemaSubset Small, dependency-free JSON Schema validator (type, enum, required, properties, additionalProperties: false, items, numeric/length/item bounds; unknown keywords ignored) returning one readable message per violation — what a channel verb's parameters are checked against before it runs.
    ResolveChannelExposure, ResolvePolicyExposure, MinExposure, ReadConfiguredMaxExposure, ZeroDataRetentionCeiling, DescribeExposureLimit, UserExposureReason, IsVerbWithheld, WithheldVerbs, DescribeWithheldVerb (realtime-channel-exposure.ts) Exposure policy: how much of a channel the model may perceive without asking ('none' < 'state' < 'pixels'). effective = min(channel ceiling, agent cap, zero-data-retention ceiling, user choice); the first three are decided on the server and ride in RealtimeSessionClientPolicy (ResolvedRealtimeChannel.Exposure / ExposureLimits), the user's choice is the browser's and can only lower. The agent cap is channels.config.<Key>.maxExposure. requireZeroDataRetentionFor: ('state' | 'pixels')[] (cascade channels section; the union across layers) lowers exposure to just below the lowest listed level when the session model's configuration does not declare Privacy.ZeroDataRetention: true (a requirement for 'state' therefore also withholds 'pixels'). DescribeExposureLimit words the downgrade for the agent. A verb whose RESULT carries channel data declares `ReturnsChannelData: 'state'
    ResolveAppClientToolMetadata, ClientToolMetadataFromDefinition Resolve Application.AgentSettings.ClientTools references (ID then Name, priority ascending) against the tool-definition catalog into ClientToolMetadata, ready for ResolveClientTools.

    FormatClientToolsForPrompt was removed: no caller ever adopted it (the async path words its own section; realtime renders compact signatures via FormatAppContextNote), and keeping a second, tempting wording with no caller is a liability.

    The SystemPlaceholderManager automatically injects common values into all prompt templates:

    • {{CurrentDate}}, {{CurrentTime}}, {{CurrentDateTime}} -- Current date/time in user's timezone
    • {{CurrentTimezone}} -- User's timezone identifier
    • {{UserName}}, {{UserEmail}}, {{UserFirstName}}, {{UserLastName}} -- User context
    • Custom placeholders can be registered at runtime
    Class Extends Additional Properties
    AIPromptEntityExtended AIPromptEntity Prompt category associations, template relationships
    AIPromptCategoryEntityExtended AIPromptCategoryEntity Prompts array of child prompts
    AIModelEntityExtended AIModelEntity ModelVendors array, vendor association helpers
    AIAgentEntityExtended AIAgentEntity Actions, Notes arrays, agent relationships
    AIAgentRunEntityExtended AIAgentRunEntity Extended run tracking
    AIAgentRunStepEntityExtended AIAgentRunStepEntity Extended step tracking
    AIPromptRunEntityExtended AIPromptRunEntity Extended prompt run tracking
    Export Purpose
    ConversationUtility Helper for creating, loading, and managing conversation records
    AgentResponseForm Structured response format definitions for agent outputs
    ActionableCommand / AutomaticCommand UI command types for agent-driven interfaces
    AgentPayloadChangeRequest Request to modify agent payload data during execution
    ForEachOperation / WhileOperation Loop operation definitions for flow-based agents
    import { AIPromptParams, ChildPromptParam } from '@memberjunction/ai-core-plus';

    const params = new AIPromptParams();
    params.prompt = myPromptEntity;
    params.data = { customerName: 'Acme Corp', orderCount: 42 };
    params.contextUser = currentUser;
    params.effortLevel = 75;

    // Hierarchical prompt composition
    params.childPrompts = [
    new ChildPromptParam(analysisParams, 'analysis'),
    new ChildPromptParam(summaryParams, 'summary')
    ];

    // Model override at runtime
    params.override = {
    modelId: 'specific-model-id',
    vendorId: 'specific-vendor-id'
    };

    // Force the runner to credential-check EVERY candidate model-vendor combination
    // instead of short-circuiting at the first usable one. Default false — only enable
    // for diagnostics that need a complete per-candidate availability report, since it
    // runs a credential lookup for every configured model on the run.
    params.forceFullModelEvaluation = true;
    Field Type Purpose
    prompt MJAIPromptEntityExtended Required. The prompt to execute.
    data Record<string, unknown> Data context merged into the template (user data overrides system placeholders).
    templateData Record<string, unknown> Highest-priority template data (overrides data).
    contextUser UserInfo Required server-side. The user the run executes as (security/audit).
    configurationId string AI Configuration scoping model selection (supports inheritance chains).
    conversationMessages ChatMessage[] Prior conversation turns appended after the rendered prompt.
    templateMessageRole 'system' | 'user' | 'none' Where the rendered prompt lands in the message array.
    override { modelId?, vendorId? } Runtime model/vendor override (highest selection precedence).
    modelSelectionPrompt MJAIPromptEntityExtended Use a different prompt's model config for selection.
    forceFullModelEvaluation boolean Probe credentials for every candidate instead of short-circuiting (default false).
    childPrompts ChildPromptParam[] Hierarchical template composition (children render first).
    parentPromptRunId / agentRunId string Link this run to a parent prompt run / agent run.
    rerunFromPromptRunID string Mark this run as a re-run of a prior one.
    effortLevel number Reasoning effort override (highest precedence — see Effort Level Control).
    additionalParameters Record<string, any> Override inference params (temperature/topP/seed/stopSequences/…) per request.
    systemPromptOverride string Bypass template rendering and use this system prompt verbatim.
    skipValidation boolean Skip output validation/parsing.
    cleanValidationSyntax boolean Strip ?/*/:type markers from result keys (auto-on when OutputExample set).
    attemptJSONRepair boolean Repair malformed JSON object output via JSON5 then LLM repair.
    credentialId string Per-request credential override (highest credential precedence).
    apiKeys AIAPIKey[] Legacy per-request API keys (used only if no credential bindings resolve).
    CredentialScope 'Any' | 'RuntimeOnly' Which credentials the run may spend. 'RuntimeOnly' allows only credentialId and apiKeys — no credential bindings, vendor default or environment keys. Also on ExecuteAgentParams, where BaseAgent carries it through the run.
    nativeFileInputs NativeFileInput[] Files attached natively when the driver supports the modality (else text fallback).
    cancellationToken AbortSignal Cooperative cancellation, checked at each phase.
    onProgress / onStreaming callbacks Progress updates / streamed output chunks.
    onPromptRunCreated (promptRunId) => void Fired with the AIPromptRun.ID as soon as the record is created (ID available immediately; the save is fire-and-forget).
    verbose boolean Verbose status logging for this run.
    maxErrorLength number Truncate long error messages (e.g. provider failed-generation dumps).
    provider IMetadataProvider Metadata provider for multi-provider scenarios.
    import { ExecuteAgentParams, UserScope } from '@memberjunction/ai-core-plus';

    const params: ExecuteAgentParams = {
    agent: myAgent,
    conversationMessages: [{ role: 'user', content: 'Analyze this data' }],
    contextUser: currentUser,
    userScope: {
    primaryEntityName: 'Organizations',
    primaryRecordId: orgId,
    secondary: { TeamID: teamId }
    },
    onProgress: (step) => console.log(`${step.step}: ${step.message}`)
    };
    import { ExecuteAgentParams, ActionChange } from '@memberjunction/ai-core-plus';

    const params: ExecuteAgentParams = {
    agent: myAgent,
    conversationMessages: messages,
    actionChanges: [
    { scope: 'global', mode: 'add', actionIds: ['crm-action-id'] },
    { scope: 'all-subagents', mode: 'remove', actionIds: ['dangerous-action-id'] }
    ]
    };
    import { ExecuteAgentParams, MessageLifecycleEvent } from '@memberjunction/ai-core-plus';

    const params: ExecuteAgentParams = {
    agent: myAgent,
    conversationMessages: messages,
    messageExpirationOverride: {
    expirationTurns: 2,
    expirationMode: 'Compact',
    compactMode: 'First N Chars',
    compactLength: 500
    },
    onMessageLifecycle: (event: MessageLifecycleEvent) => {
    console.log(`[Turn ${event.turn}] ${event.type}: ${event.reason}`);
    }
    };

    Post-Run Compaction & Scratchpad Pruning (compactAfterRun)

    import { ExecuteAgentParams } from '@memberjunction/ai-core-plus';

    const params: ExecuteAgentParams = {
    agent: myAgent,
    conversationMessages: messages,
    contextUser: currentUser,
    compactAfterRun: {
    enabled: true,
    messageCountThreshold: 12,
    extractMemories: true,
    maxScratchpadNotes: 20
    }
    };

    MemberJunction supports a 1-100 scale for AI model reasoning effort. The resolution precedence is:

    1. ExecuteAgentParams.effortLevel (runtime override, highest priority)
    2. AIAgent.DefaultPromptEffortLevel (agent default)
    3. AIPrompt.EffortLevel (prompt default)
    4. Provider default behavior (lowest priority)

    Provider mappings:

    • OpenAI: 1-33 = low, 34-66 = medium, 67-100 = high
    • Anthropic: Thinking mode with 25K-2M token budgets
    • Groq: Experimental reasoning_effort parameter
    • Gemini: Reasoning mode intensity
    • @memberjunction/ai -- Core AI abstractions
    • @memberjunction/core -- MJ framework core (Metadata, RunView, UserInfo)
    • @memberjunction/core-entities -- Generated entity classes
    • @memberjunction/global -- Class factory and global utilities
    • @memberjunction/actions-base -- Action framework base types
    • @memberjunction/templates-base-types -- Template engine base types
    • date-fns / date-fns-tz -- Date/time formatting and timezone support

    Classes

    AgentRunStepSaveQueue
    AgentUserPolicyEngine
    AIModelRunParams
    AIModelSelectionInfo
    AIPromptParams
    BaseArtifactToolLibrary
    ChildPromptParam
    ConversationUtility
    MJAIAgentEntityExtended
    MJAIAgentRunEntityExtended
    MJAIAgentRunStepEntityExtended
    MJAIModelEntityExtended
    MJAIPromptCategoryEntityExtended
    MJAIPromptEntityExtended
    MJAIPromptRunEntityExtended
    MJEntityDocumentEntityExtended
    RecordingShardFormatError
    SystemPlaceholderManager
    TaskGraphSubmitter

    Interfaces

    ActionChange
    ActionPolicyEvaluationResult
    AgentActionSpec
    AgentDecisionAnswerSummary
    AgentDecisionRequest
    AgentDecisionResult
    AgentFinishIf
    AgentInfo
    AgentPipelineRequest
    AgentPipelineStage
    AgentPostRunCompactionConfig
    AgentPromptSpec
    AgentRequestAssignmentStrategy
    AgentResponseForm
    AgentRunAudience
    AgentRunDataWithoutReservedKeys
    AgentRunParamsWithDataTrust
    AgentRunStepFlushResult
    AgentScratchpad
    AgentSpec
    AgentStep
    AgentStepPath
    AgentTask
    AgentTreeBudget
    AIModelRunResult
    AIPromptRunResult
    AppClientToolReference
    AppContextAgentRef
    AppContextSnapshot
    AppContextSnapshotInputs
    ArtifactToolDefinition
    ArtifactToolResult
    AttachmentBlobUploadInput
    AttachmentBlobUploadResult
    AttachmentContent
    AttachmentData
    AttachmentDefaults
    AttachmentLimits
    AttachmentValidationResult
    CaptureDataSnapshotCommand
    ChoiceQuestionType
    ClientToolDefinitionLike
    ClientToolMediaItem
    ClientToolMetadata
    ClientToolResponse
    ClientToolResultSummary
    ComposeEmailCommand
    DateQuestionType
    DateRangeQuestionType
    DecisionAnsweringModel
    DecisionModelCalibration
    EntityAccessEvaluationResult
    EvaluateActionExecutionInput
    EvaluateEntityAccessInput
    ExpandMessageRequest
    FileOutputRef
    FinalizeAgentRunStepOptions
    ForEachOperation
    FormOption
    FormQuestion
    FormResponseContent
    IAgentSettings
    IAttachmentBlobStore
    IClientToolSource
    IdentityVerifiedEventPayload
    InitAgentRunStepOptions
    InputArtifact
    JSONRepairInfo
    JudgeMetadata
    MailtoURLResult
    MediaOutput
    MentionContent
    ModelInfo
    NativeFileInput
    NumberQuestionType
    OpenResourceCommand
    OpenURLCommand
    ParsedRealtimeChannelCandidates
    PolicyExposure
    PromptRunMediaReference
    RealtimeChannelCandidate
    RealtimeChannelCandidateLimits
    RealtimeChannelDescriptor
    RealtimeChannelEventSpec
    RealtimeChannelNoun
    RealtimeChannelsConfig
    RealtimeChannelScopeCandidate
    RealtimeChannelScopeExclusion
    RealtimeChannelScopeInput
    RealtimeChannelScopeResult
    RealtimeChannelVerb
    RealtimeExposureLimit
    RealtimeSessionClientPolicy
    RealtimeSessionClientTools
    RealtimeSessionEventPayloadMap
    RealtimeSessionEventWire
    RecordingShardContents
    RecordingShardHeader
    RefreshDataCommand
    ResolveChannelExposureInput
    ResolveClientToolsInput
    ResolvedChannelExposure
    ResolvedRealtimeChannel
    ResolvePromptRunUserIDInput
    RoutingArtifactSummary
    RoutingArtifactTarget
    RoutingArtifactVersion
    RoutingDecisionAnswers
    RoutingDecisionInput
    RoutingDecisionOutcome
    RoutingParticipant
    RoutingStructuredAgent
    RoutingStructuredArtifact
    RoutingStructuredTurn
    RoutingTurn
    ScratchpadSnapshot
    SecondaryDimension
    SecondaryScopeConfig
    ShowNotificationCommand
    SliderQuestionType
    SpecialContentToken
    StoredParallelExecutionInfo
    StoredPromptRunMessages
    SubAgentChange
    SubAgentSpec
    SystemPlaceholder
    SystemPlaceholderCategory
    TaskListChanges
    TemplateDataObjectShape
    TemplateDataShape
    TextQuestionType
    TimeQuestionType
    UnknownRealtimeSessionEvent
    UserEntityPermissionCeiling
    UserInfo
    ValidationAttempt
    WhileOperation

    Type Aliases

    ActionableCommand
    ActionChangeMode
    ActionChangeScope
    AgentAction
    AgentAudienceMode
    AgentChatMessage
    AgentChatMessageMetadata
    AgentClientToolInvocation
    AgentConfiguration
    AgentContextData
    AgentDecisionQuestion
    AgentEntityCrudOperation
    AgentExecutionProgressCallback
    AgentExecutionStreamingCallback
    AgentFailureDisposition
    AgentFailureSource
    AgentPayloadChangeRequest
    AgentPolicyTimeWindow
    AgentPolicyVerdict
    AgentRunStepInsertPrerequisites
    AgentRunStepType
    AgentRunTreeNode
    AgentRunTreeNodeType
    AgentRunTreeResult
    AgentRunTreeRow
    AgentRunTreeStatus
    AgentRunTreeTotals
    AgentSkillActivationRequest
    AgentSkillInvocation
    AgentSkillInvocationProvenance
    AgentSubAgentRequest
    AgentTaskStatus
    AIPromptExecutionScope
    ArtifactDirective
    AttachmentType
    AutomaticCommand
    BaseAgentNextStep
    CacheName
    CancellationReason
    ClientToolMediaParse
    ConditionHold
    ConditionHoldCheck
    CycleDetectionResult
    DecisionChoiceTest
    DecisionReference
    DecisionReferenceRewrite
    DecisionReferenceScan
    DecisionStepAnswers
    DecisionStepRun
    DecisionValueComparison
    EdgeConditionOutcome
    EdgeRejection
    EdgeSelection
    EntityInvocationType
    EvaluatedEdge
    ExclusiveGroupResolution
    ExecuteAgentParams
    ExecuteAgentResult
    ExecutionProgressCallback
    ExecutionStatus
    ExecutionStreamingCallback
    FileOutputVisibility
    FlowCompileError
    FlowCompileResult
    FlowCompilerOptions
    FlowCompilerPath
    FlowCompilerStep
    FlowDecisionKeys
    FlowDecisionKeyStep
    FlowDecisionStepConfiguration
    FormQuestionType
    GraphDecisions
    GraphEdge
    GraphLayoutBox
    GraphLayoutEdge
    GraphLayoutOptions
    GraphNode
    GraphNodePosition
    HeldDecisionAnswer
    IConditionEvaluator
    IGraphRepository
    JoinMode
    JsonSchemaSubset
    ListAssignmentMode
    MappedSpecialFields
    MediaModality
    MessageExpirationOverride
    MessageLifecycleCallback
    MessageLifecycleEvent
    MessageLifecycleEventType
    NextStepDecision
    NextStepDetails
    NodeExecutionPolicy
    NodeLayout
    OutputMappingResult
    ParentRollup
    PayloadMapping
    PayloadMappingContext
    RealtimeChannelActor
    RealtimeChannelAvailability
    RealtimeChannelDisplayPolicy
    RealtimeChannelExclusionReason
    RealtimeChannelExposure
    RealtimeChannelInvoker
    RealtimeChannelRegistryState
    RealtimeChannelSchema
    RealtimeChannelScopeSource
    RealtimeExposureLimitSource
    RealtimeSessionEvent
    RealtimeSessionEventPayload
    RealtimeSessionEventType
    RealtimeSessionJSONObject
    RealtimeSessionJSONPrimitive
    RealtimeSessionJSONValue
    RealtimeZeroDataRetentionLevel
    ResourceType
    RoutedTaskGraphEdge
    RoutingAgent
    RoutingCatalogAgent
    RoutingDecisionVerdict
    RoutingHistoryRow
    RoutingStructuredState
    SanitizedInvocation
    SanitizedValue
    SaveAsWorkflowLoss
    SaveAsWorkflowOptions
    SaveAsWorkflowResult
    SecondaryScopeValue
    SkillAvailabilityPurpose
    SpecialContent
    StopContinuationMode
    SystemPlaceholderFunction
    SystemPlaceholderRequirement
    TaskGraphDecisionAnswer
    TaskGraphDecisionQuestion
    TaskGraphDependency
    TaskGraphEdge
    TaskGraphInvocationEnvelope
    TaskGraphNode
    TaskGraphNodeConfigMap
    TaskGraphNodeKind
    TaskGraphNodeStatus
    TaskGraphSpec
    TaskGraphSpecNode
    TaskGraphStartDebug
    TaskGraphSubmitOutcome
    TaskGraphSubmitRequest
    TaskGraphValidationError
    TaskGraphValidationResult
    TaskNodeBase
    TaskRunEdge
    TaskRunProjection
    TaskRunRow
    TemplateDataCaptureMode
    TemplateMessageRole
    TerminalTaskGraphStatus
    TraversalContext
    TraversalMode
    TraversalState
    WorkflowEntityEventTrigger
    WorkflowNotifications
    WorkflowOnDemandTrigger
    WorkflowScheduleTrigger
    WorkflowSpec
    WorkflowSpecValidationError
    WorkflowSpecValidationResult
    WorkflowTrigger
    WorkflowTriggerInvocationType

    Variables

    AttachmentBlobStoreUnavailableError
    CLIENT_TOOL_MEDIA_LIMITS
    CONDITION_ROOTS
    DECISION_ANSWER_FIELDS
    DECISION_ROUTING_MIN_CONFIDENCE
    DECISION_ROUTING_TIMEOUT_MS
    DEFAULT_ATTACHMENT_LIMITS
    DEFAULT_INLINE_STORAGE_THRESHOLD_BYTES
    DEFAULT_REALTIME_CHANNEL_CANDIDATE_LIMITS
    DEFAULT_SYSTEM_PLACEHOLDERS
    ENTITY_INVOCATION_TYPES
    FLOW_DECISION_KEY_PATTERN
    HOST_ONLY_AGENT_RUN_DATA_KEY_PREFIXES
    HOST_ONLY_AGENT_RUN_DATA_KEYS
    MAILTO_MAX_URL_LENGTH
    MAX_AGENT_RUN_TREE_DEPTH
    MAX_ROUTING_ARTIFACT_VERSIONS
    MAX_TASKS_PER_GRAPH
    MAX_TEMPLATE_DATA_SHAPE_KEYS
    NO_DECISIONS
    REALTIME_CHANNEL_AVAILABILITIES
    REALTIME_CHANNEL_CONTRACT_VERSION
    REALTIME_CHANNEL_DISPLAY_POLICIES
    REALTIME_CHANNEL_EXPOSURES
    REALTIME_CHANNEL_LEGACY_CONTRACT_VERSION
    REALTIME_EXPOSURE_ORDER
    REALTIME_SESSION_EVENT_TYPES
    RECORDING_FRAME_SAMPLES
    RECORDING_MAX_OPUS_PACKET_BYTES
    RECORDING_PACKET_LENGTH_PREFIX_BYTES
    RECORDING_SAMPLE_RATE
    RECORDING_SHARD_FORMAT_VERSION
    RECORDING_SHARD_HEADER_BYTES
    RECORDING_SHARD_MAGIC
    RECORDING_SHARD_MAX_BYTES
    RECORDING_SHARD_MAX_PACKETS
    RECORDING_SHARD_WINDOW_PACKETS
    RECORDING_TERMINAL_MAX_BYTES
    RESERVED_AGENT_RUN_DATA_KEYS
    ROUTING_ARTIFACT_QUESTION
    ROUTING_CONTINUES_CALIBRATION
    ROUTING_CONTINUES_QUESTION
    ROUTING_NO_ARTIFACT
    ROUTING_ROUTE_QUESTION
    SYSTEM_PLACEHOLDER_CATEGORIES
    TASK_GRAPH_SUBMITTER_KEY
    TaskNode
    TEMPLATE_DATA_CAPTURE_MODES
    TERMINAL_TASK_GRAPH_STATUSES
    WORKFLOW_TRIGGER_INVOCATION_TYPES

    Functions

    AccumulateRealtimeChannelsConfig
    AdvanceFrontier
    agentFailureDisposition
    agentFailureMessage
    AgentFailureMessage
    ApplyOutputMapping
    ApplyResolvedPayloadAtEnd
    ApplyResolvedPayloadAtStart
    BuildAgentRunTree
    BuildAppContextSnapshot
    BuildMailtoURL
    BuildMappedInput
    BuildRecentTurnParts
    BuildRecentTurns
    BuildRoutingArtifactVersions
    BuildRoutingQuestions
    BuildRoutingState
    BuildRoutingStateStructured
    CalibratedContinuesProbability
    CanAskRoutingDecision
    ClientToolMetadataFromDefinition
    coerceFailedExecuteAgentResult
    CoerceFailedExecuteAgentResult
    CollectDecisionStepKeys
    CollectRoutingParticipants
    CompareEdgePrecedence
    CompareExposure
    CompileFlowToTaskGraph
    ComputeCertainlyRun
    ComputeDownstream
    ComputeEligibleTasks
    ComputeParentRollup
    ComputeSkipCascade
    ComputeTasksToBlock
    ComputeUpstream
    ConfigOf
    ConfirmSkipSeeds
    ConvertTaskGraphToAgentSpec
    CreateTraversalState
    DecisionAnswerConfidence
    DecisionChoiceTestOf
    DecisionConditionLiteral
    DecisionConfigurationProblems
    DecisionHoldReason
    DecisionReferencesIn
    DecisionReferenceText
    DecisionsReadAsProperty
    DecisionValueComparisonsIn
    DeclaresNativeTools
    DescribeAnsweringModel
    DescribeExposureLimit
    DescribeWithheldVerb
    DetectCycle
    EncodeRecordingShard
    ExtractPromptResultText
    finalizeAgentRunStep
    FinalizeAgentRunStep
    FindAgentRunTreeNodes
    FindDecisionCalibration
    FindUnknownDependencyRefs
    FlowDecisionKeyProblem
    FormatAgentRunTree
    FormatAppContextNote
    FormatSaveAsWorkflowLosses
    FormatValidationErrors
    FormatWorkflowValidationErrors
    GetNodeResult
    GetTaskGraphSubmitter
    GetValueFromPath
    GraphLayoutBounds
    initAgentRunStep
    InitAgentRunStep
    InterpretRoutingAnswers
    IsAfterInvocationType
    IsAgentAllowed
    IsAgentRunTreeTruncated
    IsDecisionPrompt
    isDisconnectWhileAgentMayStillBeRunning
    IsDisconnectWhileAgentMayStillBeRunning
    IsExposureLevel
    IsGraphSettled
    IsGraphStalled
    IsHostOnlyAgentRunDataKey
    IsIdentityVerifiedEventPayload
    IsJoinSatisfied
    IsMailtoURLWithinLimit
    IsRealtimeChannelAvailability
    IsRealtimeChannelDisplayPolicy
    IsRealtimeChannelExposure
    IsRealtimeSessionEventOfType
    IsRoutableAgent
    IsTemplateDataCaptureMode
    IsTraversalSettled
    IsValidRealtimeToolDefinition
    IsVerbWithheld
    IsWorkflowLive
    KeptContinuityOutcome
    LayoutGraphNodes
    LayoutTaskGraph
    LoadAgentRunTree
    MarkNodeCompleted
    MarkNodeStarted
    mergeAssignmentStrategies
    MergeAssignmentStrategies
    MinExposure
    NormalizeChannelKey
    NormalizeDependency
    NormalizeInvocationType
    NormalizeRealtimeChannelsConfig
    NormalizeTriggers
    ParseAgentSettings
    parseAssignmentStrategy
    ParseAssignmentStrategy
    ParseClientToolMedia
    ParseFileOutputRef
    ParseRealtimeChannelCandidates
    ParseRealtimeSessionClientPolicy
    ParseRealtimeSessionEvent
    ParseRecordingShard
    PickPromptExecutionScope
    ProjectTaskRowsToSpec
    RankGraphNodes
    ReadConfiguredMaxExposure
    ReadFlowDecisionStepConfiguration
    ResolveAppClientToolMetadata
    ResolveChannelExposure
    ResolveClientTools
    ResolveDecisionState
    ResolveDecisionStepAnswers
    ResolveExclusiveGroups
    ResolveMappedInput
    ResolveMappedOutput
    ResolvePayloadAtEnd
    ResolvePayloadAtStart
    ResolvePolicyExposure
    ResolvePromptRunUserID
    ResolveRealtimeChannelScope
    ResolveTaskGraphPositions
    RewriteDecisionChoiceValues
    RewriteDecisionQuestionReferences
    RewriteDecisionReferences
    SanitizeForPersistence
    SanitizeInvocationEnvelope
    SelectNativeChannelTools
    SelectOutgoingEdges
    SerializeRealtimeSessionEvent
    SetMappedValue
    StringifyForPersistence
    SumAgentRunTreeCost
    SummarizeDecisionAnswers
    SuppressTaskGraphSubmission
    TaskGraphSubmissionSuppressedBecause
    TriggerKey
    UnknownConditionRoots
    UserExposureReason
    ValidateJsonAgainstSchemaSubset
    ValidateTaskGraphSpec
    ValidateWorkflowSpec
    WalkAgentRunTree
    WithAgentRunDataTrustApplied
    WithheldVerbs
    WithoutHostOnlyAgentRunDataKeys
    WithoutReservedAgentRunDataKeys
    ZeroDataRetentionCeiling