Member Junction
    Preparing search index...
    Index

    Constructors

    • Parameters

      • pubSub: PubSubEngine
      • userPayload: UserPayload
      • sessionId: string = userPayload.sessionId

        Session stamped on the message body. Defaults to the payload's session. The push itself is always addressed to userPayload.sessionId, matching the resolver.

      • OptionalconversationDetailId: string

        The run's reply row. When set, every message carries it as conversationDetailId, not only the completion, so a client that reconnects mid-run can find its row. When omitted, messages are as before.

      Returns AgentRunStatusPublisher

    Accessors

    Methods

    • Completion for a failure that has no run result. executeAIAgent sends it when the run throws (the agent could not start, the run failed, or its reply could not be saved), so a fire-and-forget client learns the reason. A host uses it the same way: when the turn throws instead of returning a result, call PublishFailure with the reply row's id and the error. That completion is what tells the chat the reply finished.

      Parameters

      • conversationDetailId: string
      • errorMessage: string

      Returns void