Polyman Documentation - v3.1.0
    Preparing search index...

    Type Alias Item

    Item:
        | { kind: "user"; id: number; text: string }
        | { kind: "assistant"; id: number; text: string }
        | {
            kind: "tool";
            id: number;
            callId: string;
            name: string;
            args: string;
            ok: boolean;
            summary: string;
        }
        | {
            kind: "notice";
            id: number;
            text: string;
            level: "info"
            | "warn"
            | "error";
        }
        | {
            kind: "workflow";
            id: number;
            plan: Plan;
            tasks: Record<string, TaskView>;
            problem: string | null;
            ok: boolean;
            summary: string;
            costUsd: number;
            elapsedMs: number;
        }

    A finished line of the transcript. Printed once, never changed.

    Type Declaration

    • { kind: "user"; id: number; text: string }
    • { kind: "assistant"; id: number; text: string }
    • {
          kind: "tool";
          id: number;
          callId: string;
          name: string;
          args: string;
          ok: boolean;
          summary: string;
      }
    • { kind: "notice"; id: number; text: string; level: "info" | "warn" | "error" }
    • {
          kind: "workflow";
          id: number;
          plan: Plan;
          tasks: Record<string, TaskView>;
          problem: string | null;
          ok: boolean;
          summary: string;
          costUsd: number;
          elapsedMs: number;
      }
      • kind: "workflow"

        A finished workflow: the final task tree and the summary.

      • id: number
      • plan: Plan
      • tasks: Record<string, TaskView>
      • problem: string | null
      • ok: boolean
      • summary: string
      • costUsd: number
      • elapsedMs: number