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

    A worker backed by one model, the chat model by default.

    Implements

    Index
    sessions: Map<string, TaskSession> = ...
    • Parameters

      • input: { task: PlanTask; spec: string; attempt: number; note?: string; fresh: boolean }
      • signal: AbortSignal

      Returns Promise<WorkerOutcome>

    • Builds a new session with the tools, sandbox and gate of this task.

      Parameters

      Returns TaskSession

    • Reads the session's events: usage, tool events (sent on with the task id), written files, the end of a task.

      Parameters

      • e: SeqEvent
      • entry: TaskSession
      • taskId: string

      Returns void