Member Junction
    Preparing search index...

    Angular DI service for conversation-level agent orchestration.

    After PR 2 of the conversations-runtime extraction, the core processMessage flow and the conversation-manager-agent resolution are delegated to @memberjunction/conversations-runtime. This service is primarily a shim for those operations PLUS the holder of the helpers that haven't been ported yet:

    • invokeSubAgent(...) — used by Sage's routing decisions in message-input.component.
    • checkAgentContinuityIntent(...) — fast intent classification when the user replies to a previous-agent thread.
    • findConfigurationPresetFromHistory(...) — locates an agent's preset from prior

    in the conversation.

    • clearSession(...) — per-conversation session-id bookkeeping.

    These can move to the runtime in a follow-up; they aren't strictly needed to invoke an agent end-to-end and stay here so the shim has zero behavior difference vs. the original.

    Index

    Constructors

    Properties

    isProcessing$: Observable<boolean>

    Observable indicating if the ambient agent is currently processing — delegated to the runtime's AgentRunner.

    Accessors

    Methods

    • Invoke a sub-agent based on Sage Agent's payload. This is called when Sage decides to delegate to a specialist agent.

      Stays on the Angular shim because it directly uses AgentClientService. Could move to the runtime in a follow-up if needed.

      Parameters

      • agentName: string
      • conversationId: string
      • message: MJConversationDetailEntity
      • conversationHistory: MJConversationDetailEntity[]
      • reasoning: string
      • conversationDetailId: string
      • Optionalpayload: unknown
      • OptionalonProgress: AgentExecutionProgressCallback
      • OptionalsourceArtifactId: string
      • OptionalsourceArtifactVersionId: string
      • OptionalagentConfigurationPresetId: string
      • OptionalappContext: Record<string, unknown> | null
      • OptionalplanMode: boolean
      • OptionalrequestedSkillIDs: string[]

      Returns Promise<ExecuteAgentResult | null>