Function mission

  • Create a new MissionBuilder for the named mission.

    Parameters

    • name: string

      Human-readable mission name; used as the compiled graph's display name and as a stable slug prefix for run ids and checkpoint keys.

    Returns MissionBuilder

    A fresh MissionBuilder instance ready to be configured.

    Example

    const m = mission('summarise-article')
    .input(inputSchema)
    .goal('Summarise {{url}} in three bullet points')
    .returns(outputSchema)
    .planner({ strategy: 'linear', maxSteps: 4 })
    .compile();