Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Class Playground

    Index
    • Parameters

      • Optionalexecutor: (
            prompt: PlaygroundPrompt,
            variables: Record<string, string>,
        ) => Promise<{ latencyMs: number; output: string; tokens?: number }>

      Returns Playground

    • Create a new session

      Parameters

      • name: string
      • Optionalmetadata: Record<string, unknown>

      Returns PlaygroundSession

    • Get a session

      Parameters

      • sessionId: string

      Returns PlaygroundSession | undefined

    • Run all prompts against all testcases

      Parameters

      • sessionId: string
      • Optionaloptions: { metricGroupId?: string; runJudge?: boolean }

      Returns Promise<PlaygroundRun[]>

    • Run all prompts against a single testcase

      Parameters

      • sessionId: string
      • testcaseId: string
      • Optionaloptions: { metricGroupId?: string; runJudge?: boolean }

      Returns Promise<PlaygroundRun | undefined>