Member Junction
    Preparing search index...

    Function beginBrowserGoalStep

    • Creates the parent Tool step ("Browser goal: …") on the realtime co-agent run for a goal-driven browser run — a single top-level timeline node the computer-use prompt steps then nest under. Best-effort: returns null (so the goal still runs, just unlinked) when there's no co-agent run to attach to, or on any error. Uses the shared initAgentRunStep helper so the field shape matches every other agent-run step.

      Parameters

      • provider: IMetadataProvider

        The metadata provider.

      • contextUser: UserInfo

        The acting user.

      • coAgentRunID: string

        The realtime co-agent run id (the parent run), or undefined.

      • goal: string

        The natural-language goal (becomes the step name).

      Returns Promise<MJAIAgentRunStepEntity>

      The saved parent step (to finalize + nest under), or null.