Class: GalileoApiClient

Defined in: src/api-client/galileo-client.ts:52

Extends

  • BaseClient

Constructors

Constructor

new GalileoApiClient(): GalileoApiClient;

Returns

GalileoApiClient

Inherited from

BaseClient.constructor;

Properties

apiUrl

protected apiUrl: string = '';
Defined in: src/api-client/base-client.ts:32

Inherited from

BaseClient.apiUrl;

client

protected client: undefined | Client<paths, `${string}/${string}`> = undefined;
Defined in: src/api-client/base-client.ts:34

Inherited from

BaseClient.client;

datasetId

datasetId: string = "";
Defined in: src/api-client/galileo-client.ts:57

experimentId

experimentId: string = "";
Defined in: src/api-client/galileo-client.ts:58

logStreamId

logStreamId: string = "";
Defined in: src/api-client/galileo-client.ts:55

projectId

projectId: string = "";
Defined in: src/api-client/galileo-client.ts:54

projectScoped

projectScoped: boolean = true;
Defined in: src/api-client/galileo-client.ts:60

projectType

projectType: ProjectTypes = ProjectTypes.genAI;
Defined in: src/api-client/galileo-client.ts:53

runId

runId: string = "";
Defined in: src/api-client/galileo-client.ts:56

sessionId?

optional sessionId: string = undefined;
Defined in: src/api-client/galileo-client.ts:59

token

protected token: string = '';
Defined in: src/api-client/base-client.ts:33

Inherited from

BaseClient.token;

Methods

appendRowsToDatasetContent()

appendRowsToDatasetContent(
   datasetId: string,
   etag: string,
rows: object[]): Promise<void>;
Defined in: src/api-client/galileo-client.ts:294

Parameters

datasetId
string
etag
string
rows
object[]

Returns

Promise<void>

createDataset()

createDataset(
   name: string,
   filePath: string,
   format: any): Promise<{
  column_names: null | string[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  current_version_index: number;
  draft: boolean;
  id: string;
  name: string;
  num_rows: null | number;
  permissions?: object[];
  project_count: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:279

Parameters

name
string
filePath
string
format
any

Returns

Promise<{ column_names: null | string[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; current_version_index: number; draft: boolean; id: string; name: string; num_rows: null | number; permissions?: object[]; project_count: number; updated_at: string; }>

createExperiment()

createExperiment(name: string): Promise<Experiment>;
Defined in: src/api-client/galileo-client.ts:425

Parameters

name
string

Returns

Promise<Experiment>

createGlobalPromptTemplate()

createGlobalPromptTemplate(template: Message[], name: string): Promise<{
  all_available_versions: number[];
  all_versions?: object[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  max_version: number;
  name: string;
  permissions?: object[];
  selected_version: {
     content_changed: boolean;
     created_at: string;
     created_by_user:   | null
        | {
        email: string;
        first_name?: null | string;
        id: string;
        last_name?: null | string;
      };
     id: string;
     lines_added?: number;
     lines_edited?: number;
     lines_removed?: number;
     model_changed: boolean;
     output_type?: null | string;
     raw?: boolean;
     settings: {
        deployment_name?: null | string;
        echo?: boolean;
        frequency_penalty?: number;
        known_models?: object[];
        logprobs?: boolean;
        max_tokens?: number;
        model_alias?: string;
        n?: number;
        presence_penalty?: number;
        response_format?:   | null
           | {
         [key: string]: string;
         };
        stop_sequences?: null | string[];
        temperature?: number;
        tool_choice?:   | null
           | string
           | {
           function: {
              name: string;
           };
           type?: string;
         };
        tools?: null | object[];
        top_k?: number;
        top_logprobs?: number;
        top_p?: number;
     };
     settings_changed: boolean;
     template: string | object & object[];
     updated_at: string;
     version: number;
  };
  selected_version_id: string;
  template: string;
  total_versions: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:375

Parameters

template
Message[]
name
string

Returns

Promise<{ all_available_versions: number[]; all_versions?: object[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; max_version: number; name: string; permissions?: object[]; selected_version: { content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }; selected_version_id: string; template: string; total_versions: number; updated_at: string; }>

createLlmScorerVersion()

createLlmScorerVersion(
   scorerId: string,
   instructions?: string,
   chainPollTemplate?: object,
   userPrompt?: string,
   scoreableNodeTypes?: StepType[],
   cotEnabled?: boolean,
   modelName?: string,
   numJudges?: number,
   outputType?: OutputType): Promise<{
  cot_enabled?: null | boolean;
  generated_scorer?:   | null
     | {
     chain_poll_template: {
        explanation_field_name?: string;
        metric_description?: null | string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: null | string;
        template: string;
        value_field_name?: string;
     };
     id: string;
     instructions?: null | string;
     name: string;
     user_prompt?: null | string;
   };
  id: string;
  input_type?:   | null
     | "basic"
     | "llm_spans"
     | "retriever_spans"
     | "sessions_normalized"
     | "sessions_trace_io_only"
     | "tool_spans"
     | "trace_input_only"
     | "trace_io_only"
     | "trace_normalized"
     | "trace_output_only";
  model_name?: null | string;
  num_judges?: null | number;
  output_type?:   | null
     | "boolean"
     | "categorical"
     | "count"
     | "discrete"
     | "freeform"
     | "percentage";
  registered_scorer?:   | null
     | {
     id: string;
     name: string;
   };
  scoreable_node_types?: null | string[];
  version: number;
}>;
Defined in: src/api-client/galileo-client.ts:499

Parameters

scorerId
string
instructions?
string
chainPollTemplate?
explanation_field_name?
string Explanation Field Name Description Field name to look for in the chainpoll response, for the explanation. Default
explanation;
metric_description?
null | string Metric Description Description Description of what the metric should do.
metric_few_shot_examples?
object[] Metric Few Shot Examples Description Few-shot examples for the metric.
metric_system_prompt?
null | string Metric System Prompt Description System prompt for the metric.
template
string Template Description Chainpoll prompt template.
value_field_name?
string Value Field Name Description Field name to look for in the chainpoll response, for the rating. Default
rating;
userPrompt?
string
scoreableNodeTypes?
StepType[]
cotEnabled?
boolean
modelName?
string
numJudges?
number
outputType?
OutputType

Returns

Promise<{ cot_enabled?: null | boolean; generated_scorer?: | null | { chain_poll_template: { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: object[]; metric_system_prompt?: null | string; template: string; value_field_name?: string; }; id: string; instructions?: null | string; name: string; user_prompt?: null | string; }; id: string; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; model_name?: null | string; num_judges?: null | number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; registered_scorer?: | null | { id: string; name: string; }; scoreable_node_types?: null | string[]; version: number; }>

createLogStream()

createLogStream(name: string): Promise<LogStream>;
Defined in: src/api-client/galileo-client.ts:253

Parameters

name
string

Returns

Promise<LogStream>

createProject()

createProject(name: string): Promise<Project>;
Defined in: src/api-client/galileo-client.ts:232

Parameters

name
string

Returns

Promise<Project>

createPromptRunJob()

createPromptRunJob(
   experimentId: string,
   projectId: string,
   promptTemplateVersionId: string,
   datasetId: string,
   scorers?: object[],
   promptSettings?: PromptRunSettings): Promise<{
  dataset_id?: null | string;
  dataset_version_index?: null | number;
  epoch?: number;
  feature_names?: null | string[];
  job_id?: null | string;
  job_name?: string;
  labels?: string[] | string[][];
  link: string;
  message: string;
  metric_critique_configuration?:   | null
     | {
     critique_ids: string[];
     metric_name: string;
     project_type: "prompt_evaluation" | "llm_monitor" | "gen_ai";
     recompute_settings?:   | null
        | {
        mode: "runs";
        run_ids: string[];
      }
        | {
        mode: "project";
      }
        | {
        filters: unknown[];
        mode: "observe_filters";
      }
        | {
        filters: unknown[];
        mode: "log_stream_filters";
        run_id: string;
      };
     scorer_id?: null | string;
   };
  migration_name?: null | string;
  monitor_batch_id?: null | string;
  ner_labels?: null | string[];
  non_inference_logged?: boolean;
  process_existing_inference_runs?: boolean;
  project_id: string;
  prompt_customized_scorers_configuration?:   | null
     | (
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "agentic_session_success";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_agentic_session_success";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "agentic_workflow_success";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_agentic_workflow_success";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: null | string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: null | string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "chunk_attribution_utilization";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_chunk_attribution_utilization_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: null | string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: null | string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "completeness";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_completeness_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: null | string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     function_explanation_param_name?: string;
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "correctness";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_factuality";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "context_adherence";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_groundedness";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     function_explanation_param_name?: string;
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "instruction_adherence";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_instruction_adherence";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "ground_truth_adherence";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_ground_truth_adherence";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "prompt_injection";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_prompt_injection_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "output_sexist";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_sexist_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "input_sexist";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_input_sexist_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "tool_selection_quality";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_tool_selection_quality";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "tool_error_rate";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_tool_error_rate";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "output_toxicity";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_toxicity_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   }
     | {
     aggregate_keys?: string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?: {
        explanation_field_name?: string;
        metric_description?: string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: string;
        template?: string;
        value_field_name?: string;
     };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: string;
     name?: "input_toxicity";
     num_judges?: number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name: "_customized_input_toxicity_gpt";
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   })[];
  prompt_dataset_id?: null | string;
  prompt_finetuned_scorers_configuration?: null | object[];
  prompt_generated_scorers_configuration?: null | string[];
  prompt_optimization_configuration?:   | null
     | {
     evaluation_criteria: string;
     evaluation_model_alias: string;
     generation_model_alias: string;
     includes_target: boolean;
     integration_name?:   | "custom"
        | "anthropic"
        | "aws_bedrock"
        | "aws_sagemaker"
        | "azure"
        | "databricks"
        | "mistral"
        | "nvidia"
        | "openai"
        | "vegas_gateway"
        | "vertex_ai"
        | "writer";
     iterations: number;
     max_tokens: number;
     num_rows: number;
     prompt: string;
     task_description: string;
     temperature: number;
   };
  prompt_registered_scorers_configuration?: null | object[];
  prompt_scorer_settings?:   | null
     | {
     aggregate_keys?: null | string[];
     aggregates?:   | null
        | {
      [key: string]: unknown;
      };
     chainpoll_template?:   | null
        | {
        explanation_field_name?: string;
        metric_description?: null | string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: null | string;
        template: string;
        value_field_name?: string;
      };
     cot_enabled?: null | boolean;
     description?: null | string;
     extra?:   | null
        | {
      [key: string]: unknown;
      };
     filters?:   | null
        | (
        | {
        case_sensitive?: boolean;
        filter_type?: "string";
        name: "node_name";
        operator: "eq" | "ne" | "contains";
        value: string;
      }
        | {
        filter_type?: "map";
        key: string;
        name: "metadata";
        operator: "eq" | "ne" | "one_of" | "not_in";
        value: string | string[];
      })[];
     generated_scorer_id?: null | string;
     indices?: null | number[];
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     lora_task_id?: null | number;
     metric_name?: null | string;
     model_alias?: null | string;
     name?: string;
     num_judges?: null | number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     prompt?: null | string;
     regex_field?: string;
     registered_scorer_id?: null | string;
     scoreable_node_types?:   | null
        | (
        | "agent"
        | "llm"
        | "retriever"
        | "tool"
        | "workflow"
        | "trace"
        | "session"
        | "chain"
        | "chat")[];
     scorer_name?: string;
     scores?: null | unknown[];
     sub_scorers?: (
        | "_completeness_gpt"
        | "_context_adherence_luna"
        | "_context_relevance"
        | "_chunk_attribution_utilization_gpt"
        | "_factuality"
        | "_groundedness"
        | "_latency"
        | "_prompt_perplexity"
        | "_protect_status"
        | "_pii"
        | "_input_pii"
        | "_sexist"
        | "_input_sexist"
        | "_sexist_gpt"
        | "_input_sexist_gpt"
        | "_tone"
        | "_input_tone"
        | "_toxicity"
        | "_toxicity_gpt"
        | "_input_toxicity"
        | "_input_toxicity_gpt"
        | "_user_registered"
        | "_user_submitted"
        | "_user_generated"
        | "_user_finetuned"
        | "_uncertainty"
        | "_bleu"
        | "_cost"
        | "_rouge"
        | "_prompt_injection_gpt"
        | "_prompt_injection"
        | "_rag_nli"
        | "_adherence_nli"
        | "_completeness_nli"
        | "_chunk_attribution_utilization_nli"
        | "_instruction_adherence"
        | "_ground_truth_adherence"
        | "_tool_selection_quality"
        | "_tool_selection_quality_luna"
        | "_tool_error_rate"
        | "_tool_error_rate_luna"
        | "_action_completion_luna"
        | "_agentic_session_success"
        | "_action_advancement_luna"
        | "_agentic_workflow_success"
        | "_generic_wizard"
        | "_customized_completeness_gpt"
        | "_customized_factuality"
        | "_customized_groundedness"
        | "_customized_chunk_attribution_utilization_gpt"
        | "_customized_instruction_adherence"
        | "_customized_ground_truth_adherence"
        | "_customized_prompt_injection_gpt"
        | "_customized_tool_selection_quality"
        | "_customized_tool_error_rate"
        | "_customized_agentic_session_success"
        | "_customized_agentic_workflow_success"
        | "_customized_sexist_gpt"
        | "_customized_input_sexist_gpt"
        | "_customized_toxicity_gpt"
       | "_customized_input_toxicity_gpt")[];
   };
  prompt_scorers_configuration?:   | null
     | {
     action_advancement_luna?: boolean;
     action_completion_luna?: boolean;
     adherence_nli?: boolean;
     agentic_session_success?: boolean;
     agentic_workflow_success?: boolean;
     bleu?: boolean;
     chunk_attribution_utilization_gpt?: boolean;
     chunk_attribution_utilization_nli?: boolean;
     completeness_gpt?: boolean;
     completeness_nli?: boolean;
     context_adherence_luna?: boolean;
     context_relevance?: boolean;
     cost?: boolean;
     factuality?: boolean;
     ground_truth_adherence?: boolean;
     groundedness?: boolean;
     input_pii?: boolean;
     input_sexist?: boolean;
     input_sexist_gpt?: boolean;
     input_tone?: boolean;
     input_toxicity?: boolean;
     input_toxicity_gpt?: boolean;
     instruction_adherence?: boolean;
     latency?: boolean;
     pii?: boolean;
     prompt_injection?: boolean;
     prompt_injection_gpt?: boolean;
     prompt_perplexity?: boolean;
     protect_status?: boolean;
     rouge?: boolean;
     sexist?: boolean;
     sexist_gpt?: boolean;
     tone?: boolean;
     tool_error_rate?: boolean;
     tool_error_rate_luna?: boolean;
     tool_selection_quality?: boolean;
     tool_selection_quality_luna?: boolean;
     toxicity?: boolean;
     toxicity_gpt?: boolean;
     uncertainty?: boolean;
   };
  prompt_settings?:   | null
     | {
     deployment_name?: null | string;
     echo?: boolean;
     frequency_penalty?: number;
     known_models?: object[];
     logprobs?: boolean;
     max_tokens?: number;
     model_alias?: string;
     n?: number;
     presence_penalty?: number;
     response_format?:   | null
        | {
      [key: string]: string;
      };
     stop_sequences?: null | string[];
     temperature?: number;
     tool_choice?:   | null
        | string
        | {
        function: {
           name: string;
        };
        type?: string;
      };
     tools?: null | object[];
     top_k?: number;
     top_logprobs?: number;
     top_p?: number;
   };
  prompt_template_version_id?: null | string;
  protect_scorer_payload?: null | string;
  protect_trace_id?: null | string;
  resource_limits?:   | null
     | {
     cpu_time?: number;
     memory_mb?: number;
   };
  run_id: string;
  scorer_config?:   | null
     | {
     cot_enabled?: null | boolean;
     filters?:   | null
        | (
        | {
        case_sensitive?: boolean;
        filter_type?: "string";
        name: "node_name";
        operator: "eq" | "ne" | "contains";
        value: string;
      }
        | {
        filter_type?: "map";
        key: string;
        name: "metadata";
        operator: "eq" | "ne" | "one_of" | "not_in";
        value: string | string[];
      })[];
     id: string;
     input_type?:   | null
        | "basic"
        | "llm_spans"
        | "retriever_spans"
        | "sessions_normalized"
        | "sessions_trace_io_only"
        | "tool_spans"
        | "trace_input_only"
        | "trace_io_only"
        | "trace_normalized"
        | "trace_output_only";
     model_name?: null | string;
     model_type?: null | "llm" | "code" | "slm";
     name?: null | string;
     num_judges?: null | number;
     output_type?:   | null
        | "boolean"
        | "categorical"
        | "count"
        | "discrete"
        | "freeform"
        | "percentage";
     scoreable_node_types?: null | string[];
     scorer_type: "llm" | "code" | "preset";
     scorer_version?:   | null
        | {
        cot_enabled?: null | boolean;
        generated_scorer?:   | null
           | {
           chain_poll_template: {
              explanation_field_name?: string;
              metric_description?: null | string;
              metric_few_shot_examples?: ...[];
              metric_system_prompt?: null | string;
              template: string;
              value_field_name?: string;
           };
           id: string;
           instructions?: null | string;
           name: string;
           user_prompt?: null | string;
         };
        id: string;
        input_type?:   | null
           | "basic"
           | "llm_spans"
           | "retriever_spans"
           | "sessions_normalized"
           | "sessions_trace_io_only"
           | "tool_spans"
           | "trace_input_only"
           | "trace_io_only"
           | "trace_normalized"
           | "trace_output_only";
        model_name?: null | string;
        num_judges?: null | number;
        output_type?:   | null
           | "boolean"
           | "categorical"
           | "count"
           | "discrete"
           | "freeform"
           | "percentage";
        registered_scorer?:   | null
           | {
           id: string;
           name: string;
         };
        scoreable_node_types?: null | string[];
        version: number;
      };
   };
  scorers?:   | null
     | object[]
     | (
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "agentic_session_success";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "agentic_workflow_success";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "bleu";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "chunk_attribution_utilization";
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "completeness";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "context_adherence";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "context_relevance";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "correctness";
     num_judges?: null | number;
     type?: "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "ground_truth_adherence";
     num_judges?: null | number;
     type?: "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "input_pii";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "input_sexist";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "input_tone";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "input_toxicity";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "instruction_adherence";
     num_judges?: null | number;
     type?: "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "output_pii";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "output_sexist";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "output_tone";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "output_toxicity";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "prompt_injection";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "prompt_perplexity";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "rouge";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "tool_error_rate";
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     model_name?: null | string;
     name: "tool_selection_quality";
     num_judges?: null | number;
     type?: "luna" | "plus";
   }
     | {
     filters?:   | null
        | (
        | {
        case_sensitive?: ... | ... | ...;
        filter_type?: ... | ...;
        name: "node_name";
        operator: ... | ... | ...;
        value: string;
      }
        | {
        filter_type?: ... | ...;
        key: string;
        name: "metadata";
        operator: ... | ... | ... | ...;
        value: ... | ...;
      })[];
     name: "uncertainty";
   })[];
  segment_filters?: null | object[];
  should_retry?: boolean;
  sub_scorers?: (
     | "_completeness_gpt"
     | "_context_adherence_luna"
     | "_context_relevance"
     | "_chunk_attribution_utilization_gpt"
     | "_factuality"
     | "_groundedness"
     | "_latency"
     | "_prompt_perplexity"
     | "_protect_status"
     | "_pii"
     | "_input_pii"
     | "_sexist"
     | "_input_sexist"
     | "_sexist_gpt"
     | "_input_sexist_gpt"
     | "_tone"
     | "_input_tone"
     | "_toxicity"
     | "_toxicity_gpt"
     | "_input_toxicity"
     | "_input_toxicity_gpt"
     | "_user_registered"
     | "_user_submitted"
     | "_user_generated"
     | "_user_finetuned"
     | "_uncertainty"
     | "_bleu"
     | "_cost"
     | "_rouge"
     | "_prompt_injection_gpt"
     | "_prompt_injection"
     | "_rag_nli"
     | "_adherence_nli"
     | "_completeness_nli"
     | "_chunk_attribution_utilization_nli"
     | "_instruction_adherence"
     | "_ground_truth_adherence"
     | "_tool_selection_quality"
     | "_tool_selection_quality_luna"
     | "_tool_error_rate"
     | "_tool_error_rate_luna"
     | "_action_completion_luna"
     | "_agentic_session_success"
     | "_action_advancement_luna"
     | "_agentic_workflow_success"
     | "_generic_wizard"
     | "_customized_completeness_gpt"
     | "_customized_factuality"
     | "_customized_groundedness"
     | "_customized_chunk_attribution_utilization_gpt"
     | "_customized_instruction_adherence"
     | "_customized_ground_truth_adherence"
     | "_customized_prompt_injection_gpt"
     | "_customized_tool_selection_quality"
     | "_customized_tool_error_rate"
     | "_customized_agentic_session_success"
     | "_customized_agentic_workflow_success"
     | "_customized_sexist_gpt"
     | "_customized_input_sexist_gpt"
     | "_customized_toxicity_gpt"
    | "_customized_input_toxicity_gpt")[];
  task_type?: null | 0 | 1 | 2 | 4 | 6 | 3 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17;
  tasks?: null | string[];
  upload_data_in_separate_task?: boolean;
  user_id?: null | string;
  xray?: boolean;
}>;
Defined in: src/api-client/galileo-client.ts:459

Parameters

experimentId
string
projectId
string
promptTemplateVersionId
string
datasetId
string
scorers?
object[]
promptSettings?
PromptRunSettings

Returns

Promise<{ dataset_id?: null | string; dataset_version_index?: null | number; epoch?: number; feature_names?: null | string[]; job_id?: null | string; job_name?: string; labels?: string[] | string[][]; link: string; message: string; metric_critique_configuration?: | null | { critique_ids: string[]; metric_name: string; project_type: "prompt_evaluation" | "llm_monitor" | "gen_ai"; recompute_settings?: | null | { mode: "runs"; run_ids: string[]; } | { mode: "project"; } | { filters: unknown[]; mode: "observe_filters"; } | { filters: unknown[]; mode: "log_stream_filters"; run_id: string; }; scorer_id?: null | string; }; migration_name?: null | string; monitor_batch_id?: null | string; ner_labels?: null | string[]; non_inference_logged?: boolean; process_existing_inference_runs?: boolean; project_id: string; prompt_customized_scorers_configuration?: | null | ( | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "agentic_session_success"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_agentic_session_success"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "agentic_workflow_success"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_agentic_workflow_success"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: object[]; metric_system_prompt?: null | string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "chunk_attribution_utilization"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_chunk_attribution_utilization_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: object[]; metric_system_prompt?: null | string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "completeness"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_completeness_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; function_explanation_param_name?: string; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "correctness"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_factuality"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "context_adherence"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_groundedness"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; function_explanation_param_name?: string; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "instruction_adherence"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_instruction_adherence"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "ground_truth_adherence"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_ground_truth_adherence"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "prompt_injection"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_prompt_injection_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "output_sexist"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_sexist_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "input_sexist"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_input_sexist_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "tool_selection_quality"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_tool_selection_quality"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "tool_error_rate"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_tool_error_rate"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "output_toxicity"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_toxicity_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; } | { aggregate_keys?: string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: { explanation_field_name?: string; metric_description?: string; metric_few_shot_examples?: object[]; metric_system_prompt?: string; template?: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: string; name?: "input_toxicity"; num_judges?: number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name: "_customized_input_toxicity_gpt"; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; })[]; prompt_dataset_id?: null | string; prompt_finetuned_scorers_configuration?: null | object[]; prompt_generated_scorers_configuration?: null | string[]; prompt_optimization_configuration?: | null | { evaluation_criteria: string; evaluation_model_alias: string; generation_model_alias: string; includes_target: boolean; integration_name?: | "custom" | "anthropic" | "aws_bedrock" | "aws_sagemaker" | "azure" | "databricks" | "mistral" | "nvidia" | "openai" | "vegas_gateway" | "vertex_ai" | "writer"; iterations: number; max_tokens: number; num_rows: number; prompt: string; task_description: string; temperature: number; }; prompt_registered_scorers_configuration?: null | object[]; prompt_scorer_settings?: | null | { aggregate_keys?: null | string[]; aggregates?: | null | { [key: string]: unknown; }; chainpoll_template?: | null | { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: object[]; metric_system_prompt?: null | string; template: string; value_field_name?: string; }; cot_enabled?: null | boolean; description?: null | string; extra?: | null | { [key: string]: unknown; }; filters?: | null | ( | { case_sensitive?: boolean; filter_type?: "string"; name: "node_name"; operator: "eq" | "ne" | "contains"; value: string; } | { filter_type?: "map"; key: string; name: "metadata"; operator: "eq" | "ne" | "one_of" | "not_in"; value: string | string[]; })[]; generated_scorer_id?: null | string; indices?: null | number[]; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; lora_task_id?: null | number; metric_name?: null | string; model_alias?: null | string; name?: string; num_judges?: null | number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; prompt?: null | string; regex_field?: string; registered_scorer_id?: null | string; scoreable_node_types?: | null | ( | "agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session" | "chain" | "chat")[]; scorer_name?: string; scores?: null | unknown[]; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; }; prompt_scorers_configuration?: | null | { action_advancement_luna?: boolean; action_completion_luna?: boolean; adherence_nli?: boolean; agentic_session_success?: boolean; agentic_workflow_success?: boolean; bleu?: boolean; chunk_attribution_utilization_gpt?: boolean; chunk_attribution_utilization_nli?: boolean; completeness_gpt?: boolean; completeness_nli?: boolean; context_adherence_luna?: boolean; context_relevance?: boolean; cost?: boolean; factuality?: boolean; ground_truth_adherence?: boolean; groundedness?: boolean; input_pii?: boolean; input_sexist?: boolean; input_sexist_gpt?: boolean; input_tone?: boolean; input_toxicity?: boolean; input_toxicity_gpt?: boolean; instruction_adherence?: boolean; latency?: boolean; pii?: boolean; prompt_injection?: boolean; prompt_injection_gpt?: boolean; prompt_perplexity?: boolean; protect_status?: boolean; rouge?: boolean; sexist?: boolean; sexist_gpt?: boolean; tone?: boolean; tool_error_rate?: boolean; tool_error_rate_luna?: boolean; tool_selection_quality?: boolean; tool_selection_quality_luna?: boolean; toxicity?: boolean; toxicity_gpt?: boolean; uncertainty?: boolean; }; prompt_settings?: | null | { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; prompt_template_version_id?: null | string; protect_scorer_payload?: null | string; protect_trace_id?: null | string; resource_limits?: | null | { cpu_time?: number; memory_mb?: number; }; run_id: string; scorer_config?: | null | { cot_enabled?: null | boolean; filters?: | null | ( | { case_sensitive?: boolean; filter_type?: "string"; name: "node_name"; operator: "eq" | "ne" | "contains"; value: string; } | { filter_type?: "map"; key: string; name: "metadata"; operator: "eq" | "ne" | "one_of" | "not_in"; value: string | string[]; })[]; id: string; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; model_name?: null | string; model_type?: null | "llm" | "code" | "slm"; name?: null | string; num_judges?: null | number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; scoreable_node_types?: null | string[]; scorer_type: "llm" | "code" | "preset"; scorer_version?: | null | { cot_enabled?: null | boolean; generated_scorer?: | null | { chain_poll_template: { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: …[]; metric_system_prompt?: null | string; template: string; value_field_name?: string; }; id: string; instructions?: null | string; name: string; user_prompt?: null | string; }; id: string; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; model_name?: null | string; num_judges?: null | number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; registered_scorer?: | null | { id: string; name: string; }; scoreable_node_types?: null | string[]; version: number; }; }; scorers?: | null | object[] | ( | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "agentic_session_success"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "agentic_workflow_success"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "bleu"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "chunk_attribution_utilization"; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "completeness"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "context_adherence"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "context_relevance"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "correctness"; num_judges?: null | number; type?: "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "ground_truth_adherence"; num_judges?: null | number; type?: "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "input_pii"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "input_sexist"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "input_tone"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "input_toxicity"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "instruction_adherence"; num_judges?: null | number; type?: "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "output_pii"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "output_sexist"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "output_tone"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "output_toxicity"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "prompt_injection"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "prompt_perplexity"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "rouge"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "tool_error_rate"; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; model_name?: null | string; name: "tool_selection_quality"; num_judges?: null | number; type?: "luna" | "plus"; } | { filters?: | null | ( | { case_sensitive?: … | … | …; filter_type?: … | …; name: "node_name"; operator: … | … | …; value: string; } | { filter_type?: … | …; key: string; name: "metadata"; operator: … | … | … | …; value: … | …; })[]; name: "uncertainty"; })[]; segment_filters?: null | object[]; should_retry?: boolean; sub_scorers?: ( | "_completeness_gpt" | "_context_adherence_luna" | "_context_relevance" | "_chunk_attribution_utilization_gpt" | "_factuality" | "_groundedness" | "_latency" | "_prompt_perplexity" | "_protect_status" | "_pii" | "_input_pii" | "_sexist" | "_input_sexist" | "_sexist_gpt" | "_input_sexist_gpt" | "_tone" | "_input_tone" | "_toxicity" | "_toxicity_gpt" | "_input_toxicity" | "_input_toxicity_gpt" | "_user_registered" | "_user_submitted" | "_user_generated" | "_user_finetuned" | "_uncertainty" | "_bleu" | "_cost" | "_rouge" | "_prompt_injection_gpt" | "_prompt_injection" | "_rag_nli" | "_adherence_nli" | "_completeness_nli" | "_chunk_attribution_utilization_nli" | "_instruction_adherence" | "_ground_truth_adherence" | "_tool_selection_quality" | "_tool_selection_quality_luna" | "_tool_error_rate" | "_tool_error_rate_luna" | "_action_completion_luna" | "_agentic_session_success" | "_action_advancement_luna" | "_agentic_workflow_success" | "_generic_wizard" | "_customized_completeness_gpt" | "_customized_factuality" | "_customized_groundedness" | "_customized_chunk_attribution_utilization_gpt" | "_customized_instruction_adherence" | "_customized_ground_truth_adherence" | "_customized_prompt_injection_gpt" | "_customized_tool_selection_quality" | "_customized_tool_error_rate" | "_customized_agentic_session_success" | "_customized_agentic_workflow_success" | "_customized_sexist_gpt" | "_customized_input_sexist_gpt" | "_customized_toxicity_gpt" | "_customized_input_toxicity_gpt")[]; task_type?: null | 0 | 1 | 2 | 4 | 6 | 3 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17; tasks?: null | string[]; upload_data_in_separate_task?: boolean; user_id?: null | string; xray?: boolean; }>

createPromptTemplate()

createPromptTemplate(template: Message[], name: string): Promise<{
  all_available_versions: number[];
  all_versions?: object[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  max_version: number;
  name: string;
  permissions?: object[];
  selected_version: {
     content_changed: boolean;
     created_at: string;
     created_by_user:   | null
        | {
        email: string;
        first_name?: null | string;
        id: string;
        last_name?: null | string;
      };
     id: string;
     lines_added?: number;
     lines_edited?: number;
     lines_removed?: number;
     model_changed: boolean;
     output_type?: null | string;
     raw?: boolean;
     settings: {
        deployment_name?: null | string;
        echo?: boolean;
        frequency_penalty?: number;
        known_models?: object[];
        logprobs?: boolean;
        max_tokens?: number;
        model_alias?: string;
        n?: number;
        presence_penalty?: number;
        response_format?:   | null
           | {
         [key: string]: string;
         };
        stop_sequences?: null | string[];
        temperature?: number;
        tool_choice?:   | null
           | string
           | {
           function: {
              name: string;
           };
           type?: string;
         };
        tools?: null | object[];
        top_k?: number;
        top_logprobs?: number;
        top_p?: number;
     };
     settings_changed: boolean;
     template: string | object & object[];
     updated_at: string;
     version: number;
  };
  selected_version_id: string;
  template: string;
  total_versions: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:366

Parameters

template
Message[]
name
string

Returns

Promise<{ all_available_versions: number[]; all_versions?: object[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; max_version: number; name: string; permissions?: object[]; selected_version: { content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }; selected_version_id: string; template: string; total_versions: number; updated_at: string; }>

createRunScorerSettings()

createRunScorerSettings(
   experimentId: string,
   projectId: string,
scorers: object[]): Promise<void>;
Defined in: src/api-client/galileo-client.ts:446

Parameters

experimentId
string
projectId
string
scorers
object[]

Returns

Promise<void>

createScorer()

createScorer(
   name: string,
   scorerType: ScorerTypes,
   description?: string,
   tags?: string[],
   defaults?: object,
   modelType?: "llm" | "code" | "slm",
defaultVersionId?: string): Promise<Scorer>;
Defined in: src/api-client/galileo-client.ts:478

Parameters

name
string
scorerType
ScorerTypes
description?
string
tags?
string[]
defaults?
cot_enabled?
null | boolean Cot Enabled Description Whether to enable chain of thought for this scorer. Defaults to False for llm scorers.
filters?
| null | ( | { case_sensitive?: boolean; filter_type?: "string"; name: "node_name"; operator: "eq" | "ne" | "contains"; value: string; } | { filter_type?: "map"; key: string; name: "metadata"; operator: "eq" | "ne" | "one_of" | "not_in"; value: string | string[]; })[] Filters Description List of filters to apply to the scorer.
input_type?
| null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only" Description What type of input to use for model-based scorers (sessions_normalized, trace_io_only, etc..).
model_name?
null | string Model Name
num_judges?
null | number Num Judges
output_type?
| null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage" Description What type of output to use for model-based scorers (boolean, categorical, etc.).
scoreable_node_types?
null | string[] Scoreable Node Types Description List of node types that can be scored by this scorer. Defaults to llm/chat.
modelType?
"llm" | "code" | "slm"
defaultVersionId?
string

Returns

Promise<Scorer>

createSession()

createSession(__namedParameters: object): Promise<{
  external_id?: null | string;
  id: string;
  name: null | string;
  previous_session_id?: null | string;
  project_id: string;
  project_name: string;
}>;
Defined in: src/api-client/galileo-client.ts:325

Parameters

__namedParameters
externalId?
string
name?
string
previousSessionId?
string

Returns

Promise<{ external_id?: null | string; id: string; name: null | string; previous_session_id?: null | string; project_id: string; project_name: string; }>

deleteDataset()

deleteDataset(id: string): Promise<void>;
Defined in: src/api-client/galileo-client.ts:289

Parameters

id
string

Returns

Promise<void>

deleteGlobalPromptTemplate()

deleteGlobalPromptTemplate(id: string): Promise<void>;
Defined in: src/api-client/galileo-client.ts:409

Parameters

id
string

Returns

Promise<void>

deleteScorer()

deleteScorer(scorerId: string): Promise<void>;
Defined in: src/api-client/galileo-client.ts:524

Parameters

scorerId
string

Returns

Promise<void>

extendDataset()

extendDataset(params: object): Promise<{
  dataset_id: string;
}>;
Defined in: src/api-client/galileo-client.ts:307

Parameters

params
count?
number Count Default
10;
data_types?
| null | ( | "General Query" | "Prompt Injection" | "Off-Topic Query" | "Toxic Content in Query" | "Multiple Questions in Query" | "Sexist Content in Query")[] Data Types
examples?
string[] Examples
instructions?
null | string Instructions
prompt?
null | string Prompt
prompt_settings?
{ deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; } Description Only the model is used.
prompt_settings.deployment_name?
null | string Deployment Name
prompt_settings.echo?
boolean Echo Default
false;
prompt_settings.frequency_penalty?
number Frequency Penalty Default
0;
prompt_settings.known_models?
object[] Known Models
prompt_settings.logprobs?
boolean Logprobs Default
true;
prompt_settings.max_tokens?
number Max Tokens Default
1024;
prompt_settings.model_alias?
string Model Alias Default
gpt - 4.1 - mini;
prompt_settings.n?
number N Default
1;
prompt_settings.presence_penalty?
number Presence Penalty Default
0;
prompt_settings.response_format?
| null | { [key: string]: string; } Response Format
prompt_settings.stop_sequences?
null | string[] Stop Sequences
prompt_settings.temperature?
number Temperature Default
1;
prompt_settings.tool_choice?
| null | string | { function: { name: string; }; type?: string; } Tool Choice
prompt_settings.tools?
null | object[] Tools
prompt_settings.top_k?
number Top K Default
40;
prompt_settings.top_logprobs?
number Top Logprobs Default
5;
prompt_settings.top_p?
number Top P Default
1;
source_dataset?
| null | { dataset_id: string; dataset_version_index?: null | number; row_ids?: null | string[]; }

Returns

Promise<{ dataset_id: string; }>

getApiUrl()

protected getApiUrl(projectType: string): string;
Defined in: src/api-client/base-client.ts:48

Parameters

projectType
string

Returns

string

Inherited from

BaseClient.getApiUrl;

getAuthHeader()

protected getAuthHeader(token: string): object;
Defined in: src/api-client/base-client.ts:101

Parameters

token
string

Returns

object
Authorization
Authorization: string;

Inherited from

BaseClient.getAuthHeader;

getDataset()

getDataset(id: string): Promise<{
  column_names: null | string[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  current_version_index: number;
  draft: boolean;
  id: string;
  name: string;
  num_rows: null | number;
  permissions?: object[];
  project_count: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:264

Parameters

id
string

Returns

Promise<{ column_names: null | string[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; current_version_index: number; draft: boolean; id: string; name: string; num_rows: null | number; permissions?: object[]; project_count: number; updated_at: string; }>

getDatasetByName()

getDatasetByName(name: string): Promise<{
  column_names: null | string[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  current_version_index: number;
  draft: boolean;
  id: string;
  name: string;
  num_rows: null | number;
  permissions?: object[];
  project_count: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:274

Parameters

name
string

Returns

Promise<{ column_names: null | string[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; current_version_index: number; draft: boolean; id: string; name: string; num_rows: null | number; permissions?: object[]; project_count: number; updated_at: string; }>

getDatasetContent()

getDatasetContent(datasetId: string): Promise<object[]>;
Defined in: src/api-client/galileo-client.ts:284

Parameters

datasetId
string

Returns

Promise<object[]>

getDatasetEtag()

getDatasetEtag(id: string): Promise<string>;
Defined in: src/api-client/galileo-client.ts:269

Parameters

id
string

Returns

Promise<string>

getDatasets()

getDatasets(): Promise<object[]>;
Defined in: src/api-client/galileo-client.ts:259

Returns

Promise<object[]>

getExperiment()

getExperiment(id: string): Promise<Experiment>;
Defined in: src/api-client/galileo-client.ts:420

Parameters

id
string

Returns

Promise<Experiment>

getExperiments()

getExperiments(): Promise<Experiment[]>;
Defined in: src/api-client/galileo-client.ts:415

Returns

Promise<Experiment[]>

getExtendDatasetStatus()

getExtendDatasetStatus(datasetId: string): Promise<{
  progress_message?: null | string;
  steps_completed?: null | number;
  steps_total?: null | number;
}>;
Defined in: src/api-client/galileo-client.ts:314

Parameters

datasetId
string

Returns

Promise<{ progress_message?: null | string; steps_completed?: null | number; steps_total?: null | number; }>

getGlobalPromptTemplate()

getGlobalPromptTemplate(id: string): Promise<{
  all_available_versions: number[];
  all_versions?: object[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  max_version: number;
  name: string;
  permissions?: object[];
  selected_version: {
     content_changed: boolean;
     created_at: string;
     created_by_user:   | null
        | {
        email: string;
        first_name?: null | string;
        id: string;
        last_name?: null | string;
      };
     id: string;
     lines_added?: number;
     lines_edited?: number;
     lines_removed?: number;
     model_changed: boolean;
     output_type?: null | string;
     raw?: boolean;
     settings: {
        deployment_name?: null | string;
        echo?: boolean;
        frequency_penalty?: number;
        known_models?: object[];
        logprobs?: boolean;
        max_tokens?: number;
        model_alias?: string;
        n?: number;
        presence_penalty?: number;
        response_format?:   | null
           | {
         [key: string]: string;
         };
        stop_sequences?: null | string[];
        temperature?: number;
        tool_choice?:   | null
           | string
           | {
           function: {
              name: string;
           };
           type?: string;
         };
        tools?: null | object[];
        top_k?: number;
        top_logprobs?: number;
        top_p?: number;
     };
     settings_changed: boolean;
     template: string | object & object[];
     updated_at: string;
     version: number;
  };
  selected_version_id: string;
  template: string;
  total_versions: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:396

Parameters

id
string

Returns

Promise<{ all_available_versions: number[]; all_versions?: object[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; max_version: number; name: string; permissions?: object[]; selected_version: { content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }; selected_version_id: string; template: string; total_versions: number; updated_at: string; }>

getGlobalPromptTemplateVersion()

getGlobalPromptTemplateVersion(id: string, version: number): Promise<{
  content_changed: boolean;
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  lines_added?: number;
  lines_edited?: number;
  lines_removed?: number;
  model_changed: boolean;
  output_type?: null | string;
  raw?: boolean;
  settings: {
     deployment_name?: null | string;
     echo?: boolean;
     frequency_penalty?: number;
     known_models?: object[];
     logprobs?: boolean;
     max_tokens?: number;
     model_alias?: string;
     n?: number;
     presence_penalty?: number;
     response_format?:   | null
        | {
      [key: string]: string;
      };
     stop_sequences?: null | string[];
     temperature?: number;
     tool_choice?:   | null
        | string
        | {
        function: {
           name: string;
        };
        type?: string;
      };
     tools?: null | object[];
     top_k?: number;
     top_logprobs?: number;
     top_p?: number;
  };
  settings_changed: boolean;
  template: string | object & object[];
  updated_at: string;
  version: number;
}>;
Defined in: src/api-client/galileo-client.ts:401

Parameters

id
string
version
number

Returns

Promise<{ content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }>

getLogStream()

getLogStream(id: string): Promise<LogStream>;
Defined in: src/api-client/galileo-client.ts:243

Parameters

id
string

Returns

Promise<LogStream>

getLogStreamByName()

getLogStreamByName(name: string): Promise<LogStream>;
Defined in: src/api-client/galileo-client.ts:248

Parameters

name
string

Returns

Promise<LogStream>

getLogStreams()

getLogStreams(): Promise<LogStream[]>;
Defined in: src/api-client/galileo-client.ts:238

Returns

Promise<LogStream[]>

getProject()

getProject(id: string): Promise<Project>;
Defined in: src/api-client/galileo-client.ts:217

Parameters

id
string

Returns

Promise<Project>

getProjectByName()

getProjectByName(name: string): Promise<Project>;
Defined in: src/api-client/galileo-client.ts:222

Parameters

name
string

Returns

Promise<Project>

getProjectIdByName()

getProjectIdByName(name: string): Promise<string>;
Defined in: src/api-client/galileo-client.ts:227

Parameters

name
string

Returns

Promise<string>

getProjects()

getProjects(): Promise<Project[]>;
Defined in: src/api-client/galileo-client.ts:212

Returns

Promise<Project[]>

getPromptTemplate()

getPromptTemplate(id: string): Promise<{
  all_available_versions: number[];
  all_versions?: object[];
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  max_version: number;
  name: string;
  permissions?: object[];
  selected_version: {
     content_changed: boolean;
     created_at: string;
     created_by_user:   | null
        | {
        email: string;
        first_name?: null | string;
        id: string;
        last_name?: null | string;
      };
     id: string;
     lines_added?: number;
     lines_edited?: number;
     lines_removed?: number;
     model_changed: boolean;
     output_type?: null | string;
     raw?: boolean;
     settings: {
        deployment_name?: null | string;
        echo?: boolean;
        frequency_penalty?: number;
        known_models?: object[];
        logprobs?: boolean;
        max_tokens?: number;
        model_alias?: string;
        n?: number;
        presence_penalty?: number;
        response_format?:   | null
           | {
         [key: string]: string;
         };
        stop_sequences?: null | string[];
        temperature?: number;
        tool_choice?:   | null
           | string
           | {
           function: {
              name: string;
           };
           type?: string;
         };
        tools?: null | object[];
        top_k?: number;
        top_logprobs?: number;
        top_p?: number;
     };
     settings_changed: boolean;
     template: string | object & object[];
     updated_at: string;
     version: number;
  };
  selected_version_id: string;
  template: string;
  total_versions: number;
  updated_at: string;
}>;
Defined in: src/api-client/galileo-client.ts:348

Parameters

id
string

Returns

Promise<{ all_available_versions: number[]; all_versions?: object[]; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; max_version: number; name: string; permissions?: object[]; selected_version: { content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }; selected_version_id: string; template: string; total_versions: number; updated_at: string; }>

getPromptTemplates()

getPromptTemplates(): Promise<object[]>;
Defined in: src/api-client/galileo-client.ts:343

Returns

Promise<object[]>

getPromptTemplateVersion()

getPromptTemplateVersion(id: string, version: number): Promise<{
  content_changed: boolean;
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  lines_added?: number;
  lines_edited?: number;
  lines_removed?: number;
  model_changed: boolean;
  output_type?: null | string;
  raw?: boolean;
  settings: {
     deployment_name?: null | string;
     echo?: boolean;
     frequency_penalty?: number;
     known_models?: object[];
     logprobs?: boolean;
     max_tokens?: number;
     model_alias?: string;
     n?: number;
     presence_penalty?: number;
     response_format?:   | null
        | {
      [key: string]: string;
      };
     stop_sequences?: null | string[];
     temperature?: number;
     tool_choice?:   | null
        | string
        | {
        function: {
           name: string;
        };
        type?: string;
      };
     tools?: null | object[];
     top_k?: number;
     top_logprobs?: number;
     top_p?: number;
  };
  settings_changed: boolean;
  template: string | object & object[];
  updated_at: string;
  version: number;
}>;
Defined in: src/api-client/galileo-client.ts:353

Parameters

id
string
version
number

Returns

Promise<{ content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }>

getPromptTemplateVersionByName()

getPromptTemplateVersionByName(name: string, version?: number): Promise<{
  content_changed: boolean;
  created_at: string;
  created_by_user:   | null
     | {
     email: string;
     first_name?: null | string;
     id: string;
     last_name?: null | string;
   };
  id: string;
  lines_added?: number;
  lines_edited?: number;
  lines_removed?: number;
  model_changed: boolean;
  output_type?: null | string;
  raw?: boolean;
  settings: {
     deployment_name?: null | string;
     echo?: boolean;
     frequency_penalty?: number;
     known_models?: object[];
     logprobs?: boolean;
     max_tokens?: number;
     model_alias?: string;
     n?: number;
     presence_penalty?: number;
     response_format?:   | null
        | {
      [key: string]: string;
      };
     stop_sequences?: null | string[];
     temperature?: number;
     tool_choice?:   | null
        | string
        | {
        function: {
           name: string;
        };
        type?: string;
      };
     tools?: null | object[];
     top_k?: number;
     top_logprobs?: number;
     top_p?: number;
  };
  settings_changed: boolean;
  template: string | object & object[];
  updated_at: string;
  version: number;
}>;
Defined in: src/api-client/galileo-client.ts:358

Parameters

name
string
version?
number

Returns

Promise<{ content_changed: boolean; created_at: string; created_by_user: | null | { email: string; first_name?: null | string; id: string; last_name?: null | string; }; id: string; lines_added?: number; lines_edited?: number; lines_removed?: number; model_changed: boolean; output_type?: null | string; raw?: boolean; settings: { deployment_name?: null | string; echo?: boolean; frequency_penalty?: number; known_models?: object[]; logprobs?: boolean; max_tokens?: number; model_alias?: string; n?: number; presence_penalty?: number; response_format?: | null | { [key: string]: string; }; stop_sequences?: null | string[]; temperature?: number; tool_choice?: | null | string | { function: { name: string; }; type?: string; }; tools?: null | object[]; top_k?: number; top_logprobs?: number; top_p?: number; }; settings_changed: boolean; template: string | object & object[]; updated_at: string; version: number; }>

getScorers()

getScorers(options?: object): Promise<Scorer[]>;
Defined in: src/api-client/galileo-client.ts:430

Parameters

options?
names?
string[]
type?
ScorerTypes

Returns

Promise<Scorer[]>

getScorerVersion()

getScorerVersion(scorer_id: string, version: number): Promise<{
  cot_enabled?: null | boolean;
  generated_scorer?:   | null
     | {
     chain_poll_template: {
        explanation_field_name?: string;
        metric_description?: null | string;
        metric_few_shot_examples?: object[];
        metric_system_prompt?: null | string;
        template: string;
        value_field_name?: string;
     };
     id: string;
     instructions?: null | string;
     name: string;
     user_prompt?: null | string;
   };
  id: string;
  input_type?:   | null
     | "basic"
     | "llm_spans"
     | "retriever_spans"
     | "sessions_normalized"
     | "sessions_trace_io_only"
     | "tool_spans"
     | "trace_input_only"
     | "trace_io_only"
     | "trace_normalized"
     | "trace_output_only";
  model_name?: null | string;
  num_judges?: null | number;
  output_type?:   | null
     | "boolean"
     | "categorical"
     | "count"
     | "discrete"
     | "freeform"
     | "percentage";
  registered_scorer?:   | null
     | {
     id: string;
     name: string;
   };
  scoreable_node_types?: null | string[];
  version: number;
}>;
Defined in: src/api-client/galileo-client.ts:438

Parameters

scorer_id
string
version
number

Returns

Promise<{ cot_enabled?: null | boolean; generated_scorer?: | null | { chain_poll_template: { explanation_field_name?: string; metric_description?: null | string; metric_few_shot_examples?: object[]; metric_system_prompt?: null | string; template: string; value_field_name?: string; }; id: string; instructions?: null | string; name: string; user_prompt?: null | string; }; id: string; input_type?: | null | "basic" | "llm_spans" | "retriever_spans" | "sessions_normalized" | "sessions_trace_io_only" | "tool_spans" | "trace_input_only" | "trace_io_only" | "trace_normalized" | "trace_output_only"; model_name?: null | string; num_judges?: null | number; output_type?: | null | "boolean" | "categorical" | "count" | "discrete" | "freeform" | "percentage"; registered_scorer?: | null | { id: string; name: string; }; scoreable_node_types?: null | string[]; version: number; }>

healthCheck()

protected healthCheck(): Promise<boolean>;
Defined in: src/api-client/base-client.ts:75

Returns

Promise<boolean>

Inherited from

BaseClient.healthCheck;

ingestTraces()

ingestTraces(traces: any[]): Promise<void>;
Defined in: src/api-client/galileo-client.ts:320

Parameters

traces
any[]

Returns

Promise<void>

init()

init(params: Partial<GalileoApiClientParams>): Promise<void>;
Defined in: src/api-client/galileo-client.ts:73

Parameters

params
Partial<GalileoApiClientParams> = {}

Returns

Promise<void>

initializeClient()

protected initializeClient(): void;
Defined in: src/api-client/base-client.ts:36

Returns

void

Inherited from

BaseClient.initializeClient;

listGlobalPromptTemplates()

listGlobalPromptTemplates(
   name_filter: string,
   limit: number,
starting_token: number): Promise<object[]>;
Defined in: src/api-client/galileo-client.ts:383

Parameters

name_filter
string
limit
number
starting_token
number

Returns

Promise<object[]>

makeRequest()

makeRequest<T>(
   request_method: Method,
   endpoint: Routes,
   data?: null | string | Record<string, any>,
   params?: Record<string, unknown>,
extraHeaders?: Record<string, string>): Promise<T>;
Defined in: src/api-client/base-client.ts:193

Type Parameters

T
T

Parameters

request_method
Method
endpoint
Routes
data?
null | string | Record<string, any>
params?
Record<string, unknown>
extraHeaders?
Record<string, string>

Returns

Promise<T>

Inherited from

BaseClient.makeRequest;

makeRequestRaw()

makeRequestRaw<T>(
   request_method: Method,
   endpoint: Routes,
   data?: null | string | Record<string, any>,
   params?: Record<string, unknown>,
extraHeaders?: Record<string, string>): Promise<AxiosResponse<T, any>>;
Defined in: src/api-client/base-client.ts:128 Make an HTTP request to the Galileo API and return the raw Axios response.

Type Parameters

T
T

Parameters

request_method
Method
endpoint
Routes
data?
null | string | Record<string, any>
params?
Record<string, unknown>
extraHeaders?
Record<string, string>

Returns

Promise<AxiosResponse<T, any>>

Inherited from

BaseClient.makeRequestRaw;

processResponse()

protected processResponse<T>(data: undefined | T, error: unknown): T;
Defined in: src/api-client/base-client.ts:82

Type Parameters

T
T

Parameters

data
undefined | T
error
unknown

Returns

T

Inherited from

BaseClient.processResponse;

refreshTokenIfNeeded()

protected refreshTokenIfNeeded(endpoint: Routes): Promise<void>;
Defined in: src/api-client/base-client.ts:113

Parameters

endpoint
Routes

Returns

Promise<void>

Inherited from

BaseClient.refreshTokenIfNeeded;

validateResponse()

protected validateResponse(response: AxiosResponse): void;
Defined in: src/api-client/base-client.ts:105

Parameters

response
AxiosResponse

Returns

void

Inherited from

BaseClient.validateResponse;