// This file is auto-generated by @hey-api/openapi-ts export type ClientOptions = { baseUrl: 'https://api.galileo.ai' | string; }; /** * ActionResult */ export type ActionResult = { /** * Type of action that was taken. */ type: ActionType; /** * Value * * Value of the action that was taken. */ value: string; }; /** * ActionType */ export const ActionType = { OVERRIDE: 'OVERRIDE', PASSTHROUGH: 'PASSTHROUGH' } as const; /** * ActionType */ export type ActionType = (typeof ActionType)[keyof typeof ActionType]; /** * AgentSpan */ export type AgentSpan = { /** * Type * * Type of the trace, span or session. */ type?: 'agent'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Spans * * Child spans. */ spans?: Array< | ({ type: 'agent'; } & AgentSpan) | ({ type: 'workflow'; } & WorkflowSpan) | ({ type: 'llm'; } & LlmSpan) | ({ type: 'retriever'; } & RetrieverSpan) | ({ type: 'tool'; } & ToolSpan) | ({ type: 'control'; } & ControlSpan) >; /** * Agent type. */ agent_type?: AgentType; }; /** * AgentType */ export const AgentType = { DEFAULT: 'default', PLANNER: 'planner', REACT: 'react', REFLECTION: 'reflection', ROUTER: 'router', CLASSIFIER: 'classifier', SUPERVISOR: 'supervisor', JUDGE: 'judge' } as const; /** * AgentType */ export type AgentType = (typeof AgentType)[keyof typeof AgentType]; /** * AgenticSessionSuccessScorer */ export type AgenticSessionSuccessScorer = { /** * Name */ name?: 'agentic_session_success'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * AgenticSessionSuccessTemplate * * Template for the agentic session success metric, * containing all the info necessary to send the agentic session success prompt. */ export type AgenticSessionSuccessTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * AgenticWorkflowSuccessScorer */ export type AgenticWorkflowSuccessScorer = { /** * Name */ name?: 'agentic_workflow_success'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * AgenticWorkflowSuccessTemplate * * Template for the agentic workflow success metric, * containing all the info necessary to send the agentic workflow success prompt. */ export type AgenticWorkflowSuccessTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * AggregatedTraceViewEdge */ export type AggregatedTraceViewEdge = { /** * Source */ source: string; /** * Target */ target: string; /** * Weight */ weight: number; /** * Occurrences */ occurrences: number; /** * Trace Count */ trace_count: number; /** * Trace Ids */ trace_ids: Array; }; /** * AggregatedTraceViewGraph */ export type AggregatedTraceViewGraph = { /** * Nodes */ nodes: Array; /** * Edges */ edges: Array; /** * Histogram of edge occurrence counts across the graph */ edge_occurrences_histogram?: Histogram | null; }; /** * AggregatedTraceViewNode */ export type AggregatedTraceViewNode = { /** * Id */ id: string; /** * Name */ name: string | null; type: StepType; /** * Occurrences */ occurrences: number; /** * Parent Id */ parent_id?: string | null; /** * Has Children */ has_children: boolean; /** * Metrics */ metrics: { [key: string]: SystemMetricInfo; }; /** * Trace Count */ trace_count: number; /** * Weight */ weight: number; /** * Insights */ insights?: Array; }; /** * AggregatedTraceViewRequest */ export type AggregatedTraceViewRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id: string; /** * Filters * * Filters to apply on the traces. Note: Only trace-level filters are supported. */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; }; /** * AggregatedTraceViewResponse */ export type AggregatedTraceViewResponse = { graph: AggregatedTraceViewGraph; /** * Num Traces * * Number of traces in the aggregated view */ num_traces: number; /** * Num Sessions * * Number of sessions in the aggregated view */ num_sessions: number; /** * Start Time * * created_at of earliest record of the aggregated view */ start_time?: string | null; /** * End Time * * created_at of latest record of the aggregated view */ end_time?: string | null; /** * Has All Traces * * Whether all traces were returned */ has_all_traces: boolean; }; /** * AndNode[Annotated[Union[LogRecordsIDFilter, LogRecordsDateFilter, LogRecordsNumberFilter, LogRecordsBooleanFilter, LogRecordsCollectionFilter, LogRecordsTextFilter, LogRecordsFullyAnnotatedFilter], FieldInfo(annotation=NoneType, required=True, discriminator='type')]] */ export type AndNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType = { /** * And */ and: Array< | FilterLeafAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | AndNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | OrNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | NotNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType >; }; /** * AnnotationAggregate */ export type AnnotationAggregate = { /** * Aggregate */ aggregate: | ({ annotation_type: 'like_dislike'; } & AnnotationLikeDislikeAggregate) | ({ annotation_type: 'star'; } & AnnotationStarAggregate) | ({ annotation_type: 'score'; } & AnnotationScoreAggregate) | ({ annotation_type: 'tags'; } & AnnotationTagsAggregate) | ({ annotation_type: 'text'; } & AnnotationTextAggregate); }; /** * AnnotationLikeDislikeAggregate */ export type AnnotationLikeDislikeAggregate = { /** * Annotation Type */ annotation_type?: 'like_dislike'; /** * Like Count */ like_count: number; /** * Dislike Count */ dislike_count: number; /** * Unrated Count */ unrated_count: number; /** * Tie Count */ tie_count?: number | null; }; /** * AnnotationQueueAction */ export const AnnotationQueueAction = { UPDATE: 'update', DELETE: 'delete', SHARE: 'share', RECORD_ANNOTATION: 'record_annotation' } as const; /** * AnnotationQueueAction */ export type AnnotationQueueAction = (typeof AnnotationQueueAction)[keyof typeof AnnotationQueueAction]; /** * AnnotationRatingInfo */ export type AnnotationRatingInfo = { annotation_type: AnnotationType; /** * Value */ value: boolean | number | string | Array; /** * Explanation */ explanation: string | null; }; /** * AnnotationScoreAggregate */ export type AnnotationScoreAggregate = { /** * Annotation Type */ annotation_type?: 'score'; /** * Buckets */ buckets: Array; /** * Average */ average: number; /** * Unrated Count */ unrated_count: number; }; /** * AnnotationStarAggregate */ export type AnnotationStarAggregate = { /** * Annotation Type */ annotation_type?: 'star'; /** * Average */ average: number; /** * Counts */ counts: { [key: string]: number; }; /** * Unrated Count */ unrated_count: number; }; /** * AnnotationTagsAggregate */ export type AnnotationTagsAggregate = { /** * Annotation Type */ annotation_type?: 'tags'; /** * Counts */ counts: { [key: string]: number; }; /** * Unrated Count */ unrated_count: number; }; /** * AnnotationTextAggregate */ export type AnnotationTextAggregate = { /** * Annotation Type */ annotation_type?: 'text'; /** * Count */ count: number; /** * Unrated Count */ unrated_count: number; }; /** * AnnotationType */ export const AnnotationType = { LIKE_DISLIKE: 'like_dislike', STAR: 'star', SCORE: 'score', TAGS: 'tags', TEXT: 'text' } as const; /** * AnnotationType */ export type AnnotationType = (typeof AnnotationType)[keyof typeof AnnotationType]; /** * AnthropicAuthenticationType */ export const AnthropicAuthenticationType = { API_KEY: 'api_key', CUSTOM_OAUTH2: 'custom_oauth2' } as const; /** * AnthropicAuthenticationType */ export type AnthropicAuthenticationType = (typeof AnthropicAuthenticationType)[keyof typeof AnthropicAuthenticationType]; /** * AnthropicIntegration */ export type AnthropicIntegration = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; authentication_type?: AnthropicAuthenticationType; /** * Endpoint * * Custom base URL for the Anthropic API. Required if `proxy` is True. */ endpoint?: string | null; /** * Authentication Scope */ authentication_scope?: string | null; /** * Oauth2 Token Url * * OAuth2 token URL for custom OAuth2 authentication */ oauth2_token_url?: string | null; /** * Custom Header Mapping * * Custom header mapping from internal fields to be included in the LLM request. */ custom_header_mapping?: { [key: string]: string; } | null; /** * Id */ id?: string | null; /** * Name */ name?: 'anthropic'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * AnthropicIntegrationCreate */ export type AnthropicIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; authentication_type?: AnthropicAuthenticationType; /** * Endpoint * * Custom base URL for the Anthropic API. Required if `proxy` is True. */ endpoint?: string | null; /** * Authentication Scope */ authentication_scope?: string | null; /** * Oauth2 Token Url * * OAuth2 token URL for custom OAuth2 authentication */ oauth2_token_url?: string | null; /** * Custom Header Mapping * * Custom header mapping from internal fields to be included in the LLM request. */ custom_header_mapping?: { [key: string]: string; } | null; /** * Token */ token: string; }; /** * ApiKeyAction */ export const ApiKeyAction = { UPDATE: 'update', DELETE: 'delete' } as const; /** * ApiKeyAction */ export type ApiKeyAction = (typeof ApiKeyAction)[keyof typeof ApiKeyAction]; /** * ApiKeyLoginRequest */ export type ApiKeyLoginRequest = { /** * Api Key */ api_key: string; }; /** * AuthMethod */ export const AuthMethod = { EMAIL: 'email', GOOGLE: 'google', GITHUB: 'github', OKTA: 'okta', AZURE_AD: 'azure-ad', CUSTOM: 'custom', SAML: 'saml', INVITE: 'invite' } as const; /** * AuthMethod */ export type AuthMethod = (typeof AuthMethod)[keyof typeof AuthMethod]; /** * AvailableIntegrations */ export type AvailableIntegrations = { /** * Integrations */ integrations: Array; }; /** * AwsBedrockIntegration */ export type AwsBedrockIntegration = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; credential_type?: AwsCredentialType; /** * Region */ region?: string; /** * Inference Profiles * * Mapping from model name (Foundation model ID) to inference profile ARN or ID */ inference_profiles?: { [key: string]: string; }; /** * Id */ id?: string | null; /** * Name */ name?: 'aws_bedrock'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * AwsCredentialType */ export const AwsCredentialType = { ASSUMED_ROLE: 'assumed_role', KEY_SECRET: 'key_secret' } as const; /** * AwsCredentialType */ export type AwsCredentialType = (typeof AwsCredentialType)[keyof typeof AwsCredentialType]; /** * AwsSageMakerIntegration */ export type AwsSageMakerIntegration = { credential_type?: AwsCredentialType; /** * Region */ region?: string; /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; /** * Models */ models?: Array; /** * Id */ id?: string | null; /** * Name */ name?: 'aws_sagemaker'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * AwsSageMakerIntegrationCreate */ export type AwsSageMakerIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; /** * Models */ models?: Array; credential_type?: AwsCredentialType; /** * Region */ region?: string; /** * Inference Profiles * * Mapping from model name (Foundation model ID) to inference profile ARN or ID */ inference_profiles?: { [key: string]: string; }; /** * Token */ token: { [key: string]: string; }; }; /** * AzureAuthenticationType */ export const AzureAuthenticationType = { API_KEY: 'api_key', CLIENT_SECRET: 'client_secret', USERNAME_PASSWORD: 'username_password', CUSTOM_OAUTH2: 'custom_oauth2' } as const; /** * AzureAuthenticationType */ export type AzureAuthenticationType = (typeof AzureAuthenticationType)[keyof typeof AzureAuthenticationType]; /** * AzureIntegration */ export type AzureIntegration = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; /** * Proxy */ proxy?: boolean; /** * Endpoint */ endpoint: string; /** * Api Version */ api_version?: string; /** * Azure Deployment */ azure_deployment?: string | null; authentication_type?: AzureAuthenticationType; /** * Authentication Scope */ authentication_scope?: string | null; /** * Default Headers */ default_headers?: { [key: string]: string; } | null; /** * Deployments */ deployments?: { [key: string]: string; }; /** * Oauth2 Token Url * * OAuth2 token URL for custom OAuth2 authentication */ oauth2_token_url?: string | null; /** * Custom Header Mapping * * Custom header mapping from internal fields to be included in the LLM request. */ custom_header_mapping?: { [key: string]: string; } | null; /** * Available Deployments * * The available deployments for this integration. If provided, we will not try to get this list from Azure. */ available_deployments?: Array | null; /** * Id */ id?: string | null; /** * Name */ name?: 'azure'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * AzureIntegrationCreate */ export type AzureIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; /** * Proxy */ proxy?: boolean; /** * Endpoint */ endpoint: string; /** * Api Version */ api_version?: string; /** * Azure Deployment */ azure_deployment?: string | null; authentication_type?: AzureAuthenticationType; /** * Authentication Scope */ authentication_scope?: string | null; /** * Default Headers */ default_headers?: { [key: string]: string; } | null; /** * Deployments */ deployments?: { [key: string]: string; }; /** * Oauth2 Token Url * * OAuth2 token URL for custom OAuth2 authentication */ oauth2_token_url?: string | null; /** * Custom Header Mapping * * Custom header mapping from internal fields to be included in the LLM request. */ custom_header_mapping?: { [key: string]: string; } | null; /** * Available Deployments * * The available deployments for this integration. If provided, we will not try to get this list from Azure. */ available_deployments?: Array | null; /** * Token */ token: string; }; /** * AzureModelDeployment */ export type AzureModelDeployment = { /** * Model * * The name of the model. */ model: string; /** * Id * * The ID of the deployment. */ id: string; }; /** * BaseAwsIntegrationCreate */ export type BaseAwsIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; credential_type?: AwsCredentialType; /** * Region */ region?: string; /** * Inference Profiles * * Mapping from model name (Foundation model ID) to inference profile ARN or ID */ inference_profiles?: { [key: string]: string; }; /** * Token */ token: { [key: string]: string; }; }; /** * BaseFinetunedScorerDB */ export type BaseFinetunedScorerDb = { /** * Id */ id: string; /** * Name */ name: string; /** * Lora Task Id */ lora_task_id: number; /** * Lora Weights Path */ lora_weights_path?: string | null; /** * Prompt */ prompt: string; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; /** * Executor pipeline. Defaults to finetuned scorer pipeline but can run custom galileo score pipelines. */ executor?: GalileoCoreSchemasSharedScorersScorerNameScorerName | null; }; /** * BaseGeneratedScorerDB */ export type BaseGeneratedScorerDb = { /** * Id */ id: string; /** * Name */ name: string; /** * Instructions */ instructions?: string | null; chain_poll_template: ChainPollTemplate; /** * User Prompt */ user_prompt?: string | null; }; /** * BaseMetricRollUpConfigDB * * Configuration for rolling up metrics to parent/trace/session. */ export type BaseMetricRollUpConfigDb = { /** * Roll Up Methods * * List of roll up methods to apply to the metric. For numeric scorers we support doing multiple roll up types per metric. */ roll_up_methods: Array | Array; }; /** * BasePromptTemplateResponse * * Response from API to get a prompt template version. */ export type BasePromptTemplateResponse = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; /** * Name */ name: string | Name; /** * Template */ template: string; selected_version: BasePromptTemplateVersionResponse; /** * Selected Version Id */ selected_version_id: string; /** * All Versions */ all_versions?: Array; /** * All Available Versions */ all_available_versions: Array; /** * Total Versions */ total_versions: number; /** * Max Version */ max_version: number; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; created_by_user: UserInfo | null; }; /** * BasePromptTemplateVersion */ export type BasePromptTemplateVersion = { /** * Template */ template: string | Messages; /** * Raw */ raw?: boolean; /** * Version */ version?: number | null; settings?: PromptRunSettings; /** * Output Type */ output_type?: string | null; }; /** * BasePromptTemplateVersionResponse * * Base response from API for a prompt template version. */ export type BasePromptTemplateVersionResponse = { /** * Template */ template: string | Messages; /** * Raw */ raw?: boolean; /** * Version */ version: number; settings: PromptRunSettings; /** * Output Type */ output_type?: string | null; /** * Id */ id: string; /** * Model Changed */ model_changed: boolean; /** * Lines Added * * @deprecated */ lines_added?: number; /** * Lines Edited * * @deprecated */ lines_edited?: number; /** * Lines Removed * * @deprecated */ lines_removed?: number; /** * Settings Changed */ settings_changed: boolean; /** * Content Changed */ content_changed: boolean; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; created_by_user: UserInfo | null; }; /** * BaseRegisteredScorerDB */ export type BaseRegisteredScorerDb = { /** * Id */ id: string; /** * Name */ name: string; /** * Score Type */ score_type?: string | null; }; /** * BaseScorer */ export type BaseScorer = { /** * Scorer Name */ scorer_name?: string; /** * Name */ name?: string; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array | null; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: ChainPollTemplate | null; /** * Model Alias */ model_alias?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * BaseScorerVersionDB * * Scorer version from the scorer_versions table. */ export type BaseScorerVersionDb = { /** * Id */ id: string; /** * Version */ version: number; /** * Scorer Id */ scorer_id: string; generated_scorer?: BaseGeneratedScorerDb | null; registered_scorer?: BaseRegisteredScorerDb | null; finetuned_scorer?: BaseFinetunedScorerDb | null; /** * Model Name */ model_name?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Scoreable Node Types * * List of node types that can be scored by this scorer. Defaults to llm/chat. */ scoreable_node_types?: Array | null; /** * Cot Enabled * * Whether to enable chain of thought for this scorer. Defaults to False for llm scorers. */ cot_enabled?: boolean | null; /** * What type of output to use for model-based scorers (sessions_normalized, trace_io_only, etc.). */ output_type?: OutputTypeEnum | null; /** * What type of input to use for model-based scorers (sessions_normalized, trace_io_only, etc.). */ input_type?: InputTypeEnum | null; }; /** * BaseScorerVersionResponse */ export type BaseScorerVersionResponse = { /** * Id */ id: string; /** * Version */ version: number; /** * Scorer Id */ scorer_id: string; generated_scorer?: GeneratedScorerResponse | null; registered_scorer?: CreateUpdateRegisteredScorerResponse | null; finetuned_scorer?: FineTunedScorerResponse | null; /** * Model Name */ model_name?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; /** * What type of input to use for model-based scorers (sessions_normalized, trace_io_only, etc.). */ input_type?: InputTypeEnum | null; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; chain_poll_template?: ChainPollTemplate | null; /** * Allowed Model */ allowed_model?: boolean | null; }; /** * BleuScorer */ export type BleuScorer = { /** * Name */ name?: 'bleu'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * Body_create_code_scorer_version_scorers__scorer_id__version_code_post */ export type BodyCreateCodeScorerVersionScorersScorerIdVersionCodePost = { /** * File */ file: Blob | File; /** * Validation Result * * Pre-validated result as JSON string to skip validation */ validation_result?: string | null; }; /** * Body_create_dataset_datasets_post */ export type BodyCreateDatasetDatasetsPost = { /** * Draft */ draft?: boolean; /** * Hidden */ hidden?: boolean; /** * Name */ name?: string | null; /** * Append Suffix If Duplicate */ append_suffix_if_duplicate?: boolean; /** * File */ file?: Blob | File | null; /** * Copy From Dataset Id */ copy_from_dataset_id?: string | null; /** * Copy From Dataset Version Index */ copy_from_dataset_version_index?: number | null; /** * Project Id */ project_id?: string | null; }; /** * Body_login_email_login_post */ export type BodyLoginEmailLoginPost = { /** * Grant Type */ grant_type?: string | null; /** * Username */ username: string; /** * Password */ password: string; /** * Scope */ scope?: string; /** * Client Id */ client_id?: string | null; /** * Client Secret */ client_secret?: string | null; }; /** * Body_update_prompt_dataset_projects__project_id__prompt_datasets__dataset_id__put */ export type BodyUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut = { /** * File */ file?: Blob | File | null; /** * Column Names */ column_names?: Array | null; }; /** * Body_upload_file_projects__project_id__upload_file_post */ export type BodyUploadFileProjectsProjectIdUploadFilePost = { /** * File */ file: Blob | File; /** * Upload Metadata */ upload_metadata: string; }; /** * Body_upload_prompt_evaluation_dataset_projects__project_id__prompt_datasets_post */ export type BodyUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost = { /** * File */ file: Blob | File; }; /** * Body_validate_code_scorer_dataset_scorers_code_validate_dataset_post */ export type BodyValidateCodeScorerDatasetScorersCodeValidateDatasetPost = { /** * File */ file: Blob | File; /** * Dataset Id */ dataset_id: string; /** * Dataset Version Index */ dataset_version_index?: number | null; /** * Limit */ limit?: number; /** * Starting Token */ starting_token?: number | null; /** * Required Scorers */ required_scorers?: string | Array | null; /** * Scoreable Node Types */ scoreable_node_types?: string | Array | null; /** * Score Type */ score_type?: string | null; }; /** * Body_validate_code_scorer_log_record_scorers_code_validate_log_record_post */ export type BodyValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost = { /** * File */ file: Blob | File; /** * Log Stream Id */ log_stream_id?: string | null; /** * Experiment Id */ experiment_id?: string | null; /** * Limit */ limit?: number; /** * Starting Token */ starting_token?: number | null; /** * Filters * * JSON string array of LogRecordsQueryFilter */ filters?: string | null; /** * Sort * * JSON string of LogRecordsSortClause */ sort?: string | null; /** * Required Scorers */ required_scorers?: string | Array | null; /** * Scoreable Node Types */ scoreable_node_types?: string | Array | null; }; /** * Body_validate_code_scorer_scorers_code_validate_post */ export type BodyValidateCodeScorerScorersCodeValidatePost = { /** * File */ file: Blob | File; /** * Test Input */ test_input?: string | null; /** * Test Output */ test_output?: string | null; /** * Required Scorers */ required_scorers?: string | Array | null; /** * Scoreable Node Types */ scoreable_node_types?: string | Array | null; }; /** * BooleanColorConstraint * * A color constraint for boolean metric values. * * Assigns a color when a boolean score equals the given value. * * Only the 'eq' operator is supported. * * Example: * {"color": "green", "operator": "eq", "value": true} * {"color": "red", "operator": "eq", "value": false} */ export type BooleanColorConstraint = { color: MetricColor; /** * Operator */ operator: 'eq'; /** * Value */ value: boolean; }; /** * BucketedMetric */ export type BucketedMetric = { /** * Name */ name: string; /** * Buckets */ buckets: { [key: string]: number; }; /** * Average */ average?: number | null; roll_up_method?: RollUpMethodDisplayOptions | null; data_type?: OutputTypeEnum | null; }; /** * BucketedMetrics */ export type BucketedMetrics = { /** * Start Bucket Time */ start_bucket_time: string; /** * End Bucket Time */ end_bucket_time: string; [key: string]: unknown | string; }; /** * BulkDeleteDatasetsRequest * * Request to delete multiple datasets. */ export type BulkDeleteDatasetsRequest = { /** * Dataset Ids */ dataset_ids: Array; }; /** * BulkDeleteDatasetsResponse * * Response from bulk deletion operation. */ export type BulkDeleteDatasetsResponse = { /** * Deleted Count */ deleted_count: number; /** * Failed Deletions */ failed_deletions?: Array; /** * Message */ message: string; }; /** * BulkDeletePromptTemplatesRequest * * Request to delete multiple prompt templates. */ export type BulkDeletePromptTemplatesRequest = { /** * Template Ids */ template_ids: Array; }; /** * BulkDeletePromptTemplatesResponse * * Response from bulk deletion operation. */ export type BulkDeletePromptTemplatesResponse = { /** * Deleted Count */ deleted_count: number; /** * Failed Deletions */ failed_deletions?: Array; /** * Message */ message: string; }; /** * CategoricalColorConstraint * * A color constraint for categorical or multi-label metric values. * * Assigns a color when a categorical score matches the given operator and value. * * Operators and expected value shapes: * - eq: value must be a single string. * - one_of: value must be a list of strings. * * Example: * {"color": "green", "operator": "eq", "value": "pass"} * {"color": "red", "operator": "one_of", "value": ["fail", "error"]} */ export type CategoricalColorConstraint = { color: MetricColor; /** * Operator */ operator: 'eq' | 'one_of'; /** * Value */ value: string | Array; }; /** * CategoricalRollUpMethod * * Roll up methods for aggregating categorical metrics up the session/trace/span hierarchy. */ export const CategoricalRollUpMethod = { CATEGORY_COUNT: 'category_count' } as const; /** * CategoricalRollUpMethod * * Roll up methods for aggregating categorical metrics up the session/trace/span hierarchy. */ export type CategoricalRollUpMethod = (typeof CategoricalRollUpMethod)[keyof typeof CategoricalRollUpMethod]; /** * ChainAggregationStrategy */ export const ChainAggregationStrategy = { SUM: 'sum', AVERAGE: 'average', FIRST: 'first', LAST: 'last' } as const; /** * ChainAggregationStrategy */ export type ChainAggregationStrategy = (typeof ChainAggregationStrategy)[keyof typeof ChainAggregationStrategy]; /** * ChainPollTemplate * * Template for a chainpoll metric prompt, * containing all the info necessary to send a chainpoll prompt. */ export type ChainPollTemplate = { /** * Metric System Prompt * * System prompt for the metric. */ metric_system_prompt?: string | null; /** * Metric Description * * Description of what the metric should do. */ metric_description?: string | null; /** * Value Field Name * * Field name to look for in the chainpoll response, for the rating. */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template * * Chainpoll prompt template. */ template: string; /** * Metric Few Shot Examples * * Few-shot examples for the metric. */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * ChunkAttributionUtilizationScorer */ export type ChunkAttributionUtilizationScorer = { /** * Name */ name?: 'chunk_attribution_utilization'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; }; /** * ChunkAttributionUtilizationTemplate */ export type ChunkAttributionUtilizationTemplate = { /** * Metric System Prompt * * System prompt for the metric. */ metric_system_prompt?: string | null; /** * Metric Description * * Description of what the metric should do. */ metric_description?: string | null; /** * Value Field Name * * Field name to look for in the chainpoll response, for the rating. */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples * * Few-shot examples for the metric. */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * CodeMetricGenerationStatus */ export const CodeMetricGenerationStatus = { GENERATING: 'generating', COMPLETED: 'completed', FAILED: 'failed' } as const; /** * CodeMetricGenerationStatus */ export type CodeMetricGenerationStatus = (typeof CodeMetricGenerationStatus)[keyof typeof CodeMetricGenerationStatus]; /** * CodeMetricGenerationStatusResponse * * Lightweight polling response. */ export type CodeMetricGenerationStatusResponse = { /** * Id */ id: string; status: CodeMetricGenerationStatus; /** * Generated Code */ generated_code?: string | null; /** * Error Message */ error_message?: string | null; }; /** * CollaboratorRole */ export const CollaboratorRole = { OWNER: 'owner', EDITOR: 'editor', ANNOTATOR: 'annotator', VIEWER: 'viewer' } as const; /** * CollaboratorRole */ export type CollaboratorRole = (typeof CollaboratorRole)[keyof typeof CollaboratorRole]; /** * CollaboratorRoleInfo */ export type CollaboratorRoleInfo = { name: CollaboratorRole; /** * Display Name */ display_name: string; /** * Description */ description: string; }; /** * CollaboratorUpdate */ export type CollaboratorUpdate = { role: CollaboratorRole; }; /** * ColumnCategory */ export const ColumnCategory = { STANDARD: 'standard', METRIC: 'metric', USER_METADATA: 'user_metadata', METRIC_STATUS: 'metric_status', DATASET_METADATA: 'dataset_metadata', DATASET: 'dataset', FEEDBACK: 'feedback', TAGS: 'tags' } as const; /** * ColumnCategory */ export type ColumnCategory = (typeof ColumnCategory)[keyof typeof ColumnCategory]; /** * ColumnInfo */ export type ColumnInfo = { /** * Id * * Column id. Must be universally unique. */ id: string; /** * Label * * Display label of the column in the UI. */ label?: string | null; /** * Category of the column. */ category: ColumnCategory; /** * Description * * Description of the column. */ description?: string | null; /** * Group Label * * Display label of the column group. */ group_label?: string | null; /** * Data type of the column. This is used to determine how to format the data on the UI. */ data_type: DataType | null; /** * Data unit of the column (optional). */ data_unit?: DataUnit | null; /** * Multi Valued * * Whether the column is multi-valued. */ multi_valued?: boolean; /** * Allowed Values * * Allowed values for this column. */ allowed_values?: Array | null; /** * Sortable * * Whether the column is sortable. */ sortable?: boolean; /** * Filterable * * Whether the column is filterable. */ filterable?: boolean; /** * Is Empty * * Indicates whether the column is empty and should be hidden. */ is_empty?: boolean; /** * Applicable Types * * List of types applicable for this column. */ applicable_types?: Array; /** * Complex * * Whether the column requires special handling in the UI. Setting this to True will hide the column in the UI until the UI adds support for it. */ complex?: boolean; /** * Is Optional * * Whether the column is optional. */ is_optional?: boolean; /** * Roll Up Method * * Default roll-up aggregation method for this metric (e.g., 'sum', 'average'). */ roll_up_method?: string | null; /** * Metric Key Alias * * Alternate metric key for this column. When scorer UUIDs are used as column IDs * (e.g. "metrics/{uuid}"), this holds the legacy snake_case metric name * (e.g. "correctness") for display and dual-key query fallback. * Patched manually — will be in generated types once SC-64064 merges to production. */ metric_key_alias?: string | null; }; /** * ColumnMapping */ export type ColumnMapping = { /** * Input */ input: ColumnMappingConfig | Array | null; /** * Output */ output: ColumnMappingConfig | Array | null; /** * Generated Output */ generated_output: ColumnMappingConfig | Array | null; /** * Metadata */ metadata: ColumnMappingConfig | Array | null; /** * Mgt */ mgt?: { [key: string]: ColumnMappingConfig; } | null; [key: string]: | unknown | ColumnMappingConfig | Array | null | ColumnMappingConfig | Array | null | ColumnMappingConfig | Array | null | ColumnMappingConfig | Array | null | { [key: string]: ColumnMappingConfig; } | null | undefined; }; /** * ColumnMappingConfig */ export type ColumnMappingConfig = { /** * Columns */ columns: Array; /** * Flatten */ flatten?: boolean; }; /** * CompletenessScorer */ export type CompletenessScorer = { /** * Name */ name?: 'completeness'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * CompletenessTemplate */ export type CompletenessTemplate = { /** * Metric System Prompt * * System prompt for the metric. */ metric_system_prompt?: string | null; /** * Metric Description * * Description of what the metric should do. */ metric_description?: string | null; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples * * Few-shot examples for the metric. */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * ContentModality * * Classification of content modality */ export const ContentModality = { TEXT: 'text', DOCUMENT: 'document', IMAGE: 'image', AUDIO: 'audio', VIDEO: 'video' } as const; /** * ContentModality * * Classification of content modality */ export type ContentModality = (typeof ContentModality)[keyof typeof ContentModality]; /** * ContextAdherenceScorer */ export type ContextAdherenceScorer = { /** * Name */ name?: 'context_adherence'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * ContextRelevanceScorer */ export type ContextRelevanceScorer = { /** * Name */ name?: 'context_relevance'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * ControlAction */ export const ControlAction = { DENY: 'deny', STEER: 'steer', OBSERVE: 'observe' } as const; /** * ControlAction */ export type ControlAction = (typeof ControlAction)[keyof typeof ControlAction]; /** * ControlAppliesTo */ export const ControlAppliesTo = { LLM_CALL: 'llm_call', TOOL_CALL: 'tool_call' } as const; /** * ControlAppliesTo */ export type ControlAppliesTo = (typeof ControlAppliesTo)[keyof typeof ControlAppliesTo]; /** * ControlCheckStage */ export const ControlCheckStage = { PRE: 'pre', POST: 'post' } as const; /** * ControlCheckStage */ export type ControlCheckStage = (typeof ControlCheckStage)[keyof typeof ControlCheckStage]; /** * ControlResult */ export type ControlResult = { /** * Decision/action produced by the control. */ action: ControlAction; /** * Matched * * Whether the control matched. False covers both non-match and error cases; use error_message to distinguish errors. */ matched: boolean; /** * Confidence * * Confidence score reported by the control evaluation result. */ confidence?: number | null; /** * Error Message * * Error text when control evaluation failed. This should be null for normal matches and non-matches. */ error_message?: string | null; }; /** * ControlSpan */ export type ControlSpan = { /** * Type * * Type of the trace, span or session. */ type?: 'control'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output of the trace or span. */ output?: ControlResult | null; /** * Redacted output of the trace or span. */ redacted_output?: ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Control Id * * Identifier of the control definition that produced this span. */ control_id?: number | null; /** * Agent Name * * Normalized agent name associated with this control execution. */ agent_name?: string | null; /** * Execution stage where the control ran, typically 'pre' or 'post'. */ check_stage?: ControlCheckStage | null; /** * Parent execution type the control applied to, for example 'llm_call' or 'tool_call'. */ applies_to?: ControlAppliesTo | null; /** * Evaluator Name * * Representative evaluator name for this control span. For composite controls, this is the primary evaluator chosen for observability identity. */ evaluator_name?: string | null; /** * Selector Path * * Representative selector path for this control span. For composite controls, this is the primary selector path chosen for observability identity. */ selector_path?: string | null; }; /** * CorrectnessScorer */ export type CorrectnessScorer = { /** * Name */ name?: 'correctness'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * CreateCodeMetricGenerationRequest * * Request to generate scorer code from a user message. */ export type CreateCodeMetricGenerationRequest = { /** * User Message * * Natural language, code, or combination */ user_message: string; /** * Node Type * * Selected scoreable node type (llm, retriever, trace, agent, workflow, tool, session) */ node_type?: string | null; /** * Model Name * * Model alias to use for generation. Defaults to best available. */ model_name?: string | null; }; /** * CreateCodeMetricGenerationResponse * * Response with generation ID for polling. */ export type CreateCodeMetricGenerationResponse = { /** * Id */ id: string; status: CodeMetricGenerationStatus; }; /** * CreateCustomLunaScorerVersionRequest */ export type CreateCustomLunaScorerVersionRequest = { /** * Lora Task Id */ lora_task_id: number; /** * Prompt */ prompt: string; /** * Lora Weights Path */ lora_weights_path?: string | null; /** * Executor pipeline. Defaults to finetuned scorer pipeline but can run custom galileo score pipelines. */ executor?: GalileoCoreSchemasSharedScorersScorerNameScorerName | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; }; /** * CreateJobRequest */ export type CreateJobRequest = { resource_limits?: TaskResourceLimits | null; /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; /** * Job Id */ job_id?: string | null; /** * Job Name */ job_name?: string; /** * Should Retry */ should_retry?: boolean; /** * User Id */ user_id?: string | null; task_type?: TaskType | null; /** * Labels */ labels?: Array> | Array; /** * Ner Labels */ ner_labels?: Array | null; /** * Tasks */ tasks?: Array | null; /** * Non Inference Logged */ non_inference_logged?: boolean; /** * Migration Name */ migration_name?: string | null; /** * Xray */ xray?: boolean; /** * Process Existing Inference Runs */ process_existing_inference_runs?: boolean; /** * Feature Names */ feature_names?: Array | null; /** * Prompt Dataset Id */ prompt_dataset_id?: string | null; /** * Dataset Id */ dataset_id?: string | null; /** * Dataset Version Index */ dataset_version_index?: number | null; /** * Prompt Template Version Id */ prompt_template_version_id?: string | null; /** * Monitor Batch Id */ monitor_batch_id?: string | null; /** * Protect Trace Id */ protect_trace_id?: string | null; /** * Protect Scorer Payload */ protect_scorer_payload?: Blob | File | null; prompt_settings?: PromptRunSettings | null; /** * Scorers * * For G2.0 we send all scorers as ScorerConfig, for G1.0 we send preset scorers as GalileoScorer */ scorers?: | Array | Array< | ({ name: 'agentic_workflow_success'; } & AgenticWorkflowSuccessScorer) | ({ name: 'agentic_session_success'; } & AgenticSessionSuccessScorer) | ({ name: 'bleu'; } & BleuScorer) | ({ name: 'chunk_attribution_utilization'; } & ChunkAttributionUtilizationScorer) | ({ name: 'completeness'; } & CompletenessScorer) | ({ name: 'context_adherence'; } & ContextAdherenceScorer) | ({ name: 'context_relevance'; } & ContextRelevanceScorer) | ({ name: 'correctness'; } & CorrectnessScorer) | ({ name: 'ground_truth_adherence'; } & GroundTruthAdherenceScorer) | ({ name: 'input_pii'; } & InputPiiScorer) | ({ name: 'input_sexist'; } & InputSexistScorer) | ({ name: 'input_tone'; } & InputToneScorer) | ({ name: 'input_toxicity'; } & InputToxicityScorer) | ({ name: 'instruction_adherence'; } & InstructionAdherenceScorer) | ({ name: 'output_pii'; } & OutputPiiScorer) | ({ name: 'output_sexist'; } & OutputSexistScorer) | ({ name: 'output_tone'; } & OutputToneScorer) | ({ name: 'output_toxicity'; } & OutputToxicityScorer) | ({ name: 'prompt_injection'; } & PromptInjectionScorer) | ({ name: 'prompt_perplexity'; } & PromptPerplexityScorer) | ({ name: 'rouge'; } & RougeScorer) | ({ name: 'tool_error_rate'; } & ToolErrorRateScorer) | ({ name: 'tool_selection_quality'; } & ToolSelectionQualityScorer) | ({ name: 'uncertainty'; } & UncertaintyScorer) > | null; /** * Prompt Registered Scorers Configuration */ prompt_registered_scorers_configuration?: Array | null; /** * Prompt Generated Scorers Configuration */ prompt_generated_scorers_configuration?: Array | null; /** * Prompt Finetuned Scorers Configuration */ prompt_finetuned_scorers_configuration?: Array | null; prompt_scorers_configuration?: ScorersConfiguration | null; /** * Prompt Customized Scorers Configuration */ prompt_customized_scorers_configuration?: Array< | ({ scorer_name: '_customized_agentic_session_success'; } & CustomizedAgenticSessionSuccessGptScorer) | ({ scorer_name: '_customized_agentic_workflow_success'; } & CustomizedAgenticWorkflowSuccessGptScorer) | ({ scorer_name: '_customized_chunk_attribution_utilization_gpt'; } & CustomizedChunkAttributionUtilizationGptScorer) | ({ scorer_name: '_customized_completeness_gpt'; } & CustomizedCompletenessGptScorer) | ({ scorer_name: '_customized_factuality'; } & CustomizedFactualityGptScorer) | ({ scorer_name: '_customized_groundedness'; } & CustomizedGroundednessGptScorer) | ({ scorer_name: '_customized_instruction_adherence'; } & CustomizedInstructionAdherenceGptScorer) | ({ scorer_name: '_customized_ground_truth_adherence'; } & CustomizedGroundTruthAdherenceGptScorer) | ({ scorer_name: '_customized_prompt_injection_gpt'; } & CustomizedPromptInjectionGptScorer) | ({ scorer_name: '_customized_sexist_gpt'; } & CustomizedSexistGptScorer) | ({ scorer_name: '_customized_input_sexist_gpt'; } & CustomizedInputSexistGptScorer) | ({ scorer_name: '_customized_tool_selection_quality'; } & CustomizedToolSelectionQualityGptScorer) | ({ scorer_name: '_customized_tool_error_rate'; } & CustomizedToolErrorRateGptScorer) | ({ scorer_name: '_customized_toxicity_gpt'; } & CustomizedToxicityGptScorer) | ({ scorer_name: '_customized_input_toxicity_gpt'; } & CustomizedInputToxicityGptScorer) > | null; prompt_scorer_settings?: BaseScorer | null; scorer_config?: ScorerConfig | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Luna Model */ luna_model?: string | null; /** * Segment Filters */ segment_filters?: Array | null; prompt_optimization_configuration?: PromptOptimizationConfiguration | null; /** * Epoch */ epoch?: number; metric_critique_configuration?: MetricCritiqueJobConfiguration | null; /** * Is Session */ is_session?: boolean | null; /** * Validation Config */ validation_config?: { [key: string]: unknown; } | null; /** * Upload Data In Separate Task */ upload_data_in_separate_task?: boolean; /** * Log Metric Computing Records */ log_metric_computing_records?: boolean; /** * Stream Metrics */ stream_metrics?: boolean; /** * Multijudge Average Boolean Metrics */ multijudge_average_boolean_metrics?: boolean; }; /** * CreateJobResponse */ export type CreateJobResponse = { resource_limits?: TaskResourceLimits | null; /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; /** * Job Id */ job_id?: string | null; /** * Job Name */ job_name?: string; /** * Should Retry */ should_retry?: boolean; /** * User Id */ user_id?: string | null; task_type?: TaskType | null; /** * Labels */ labels?: Array> | Array; /** * Ner Labels */ ner_labels?: Array | null; /** * Tasks */ tasks?: Array | null; /** * Non Inference Logged */ non_inference_logged?: boolean; /** * Migration Name */ migration_name?: string | null; /** * Xray */ xray?: boolean; /** * Process Existing Inference Runs */ process_existing_inference_runs?: boolean; /** * Feature Names */ feature_names?: Array | null; /** * Prompt Dataset Id */ prompt_dataset_id?: string | null; /** * Dataset Id */ dataset_id?: string | null; /** * Dataset Version Index */ dataset_version_index?: number | null; /** * Prompt Template Version Id */ prompt_template_version_id?: string | null; /** * Monitor Batch Id */ monitor_batch_id?: string | null; /** * Protect Trace Id */ protect_trace_id?: string | null; /** * Protect Scorer Payload */ protect_scorer_payload?: Blob | File | null; prompt_settings?: PromptRunSettings | null; /** * Scorers * * For G2.0 we send all scorers as ScorerConfig, for G1.0 we send preset scorers as GalileoScorer */ scorers?: | Array | Array< | ({ name: 'agentic_workflow_success'; } & AgenticWorkflowSuccessScorer) | ({ name: 'agentic_session_success'; } & AgenticSessionSuccessScorer) | ({ name: 'bleu'; } & BleuScorer) | ({ name: 'chunk_attribution_utilization'; } & ChunkAttributionUtilizationScorer) | ({ name: 'completeness'; } & CompletenessScorer) | ({ name: 'context_adherence'; } & ContextAdherenceScorer) | ({ name: 'context_relevance'; } & ContextRelevanceScorer) | ({ name: 'correctness'; } & CorrectnessScorer) | ({ name: 'ground_truth_adherence'; } & GroundTruthAdherenceScorer) | ({ name: 'input_pii'; } & InputPiiScorer) | ({ name: 'input_sexist'; } & InputSexistScorer) | ({ name: 'input_tone'; } & InputToneScorer) | ({ name: 'input_toxicity'; } & InputToxicityScorer) | ({ name: 'instruction_adherence'; } & InstructionAdherenceScorer) | ({ name: 'output_pii'; } & OutputPiiScorer) | ({ name: 'output_sexist'; } & OutputSexistScorer) | ({ name: 'output_tone'; } & OutputToneScorer) | ({ name: 'output_toxicity'; } & OutputToxicityScorer) | ({ name: 'prompt_injection'; } & PromptInjectionScorer) | ({ name: 'prompt_perplexity'; } & PromptPerplexityScorer) | ({ name: 'rouge'; } & RougeScorer) | ({ name: 'tool_error_rate'; } & ToolErrorRateScorer) | ({ name: 'tool_selection_quality'; } & ToolSelectionQualityScorer) | ({ name: 'uncertainty'; } & UncertaintyScorer) > | null; /** * Prompt Registered Scorers Configuration */ prompt_registered_scorers_configuration?: Array | null; /** * Prompt Generated Scorers Configuration */ prompt_generated_scorers_configuration?: Array | null; /** * Prompt Finetuned Scorers Configuration */ prompt_finetuned_scorers_configuration?: Array | null; prompt_scorers_configuration?: ScorersConfiguration | null; /** * Prompt Customized Scorers Configuration */ prompt_customized_scorers_configuration?: Array< | ({ scorer_name: '_customized_agentic_session_success'; } & CustomizedAgenticSessionSuccessGptScorer) | ({ scorer_name: '_customized_agentic_workflow_success'; } & CustomizedAgenticWorkflowSuccessGptScorer) | ({ scorer_name: '_customized_chunk_attribution_utilization_gpt'; } & CustomizedChunkAttributionUtilizationGptScorer) | ({ scorer_name: '_customized_completeness_gpt'; } & CustomizedCompletenessGptScorer) | ({ scorer_name: '_customized_factuality'; } & CustomizedFactualityGptScorer) | ({ scorer_name: '_customized_groundedness'; } & CustomizedGroundednessGptScorer) | ({ scorer_name: '_customized_instruction_adherence'; } & CustomizedInstructionAdherenceGptScorer) | ({ scorer_name: '_customized_ground_truth_adherence'; } & CustomizedGroundTruthAdherenceGptScorer) | ({ scorer_name: '_customized_prompt_injection_gpt'; } & CustomizedPromptInjectionGptScorer) | ({ scorer_name: '_customized_sexist_gpt'; } & CustomizedSexistGptScorer) | ({ scorer_name: '_customized_input_sexist_gpt'; } & CustomizedInputSexistGptScorer) | ({ scorer_name: '_customized_tool_selection_quality'; } & CustomizedToolSelectionQualityGptScorer) | ({ scorer_name: '_customized_tool_error_rate'; } & CustomizedToolErrorRateGptScorer) | ({ scorer_name: '_customized_toxicity_gpt'; } & CustomizedToxicityGptScorer) | ({ scorer_name: '_customized_input_toxicity_gpt'; } & CustomizedInputToxicityGptScorer) > | null; prompt_scorer_settings?: BaseScorer | null; scorer_config?: ScorerConfig | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Luna Model */ luna_model?: string | null; /** * Segment Filters */ segment_filters?: Array | null; prompt_optimization_configuration?: PromptOptimizationConfiguration | null; /** * Epoch */ epoch?: number; metric_critique_configuration?: MetricCritiqueJobConfiguration | null; /** * Is Session */ is_session?: boolean | null; /** * Validation Config */ validation_config?: { [key: string]: unknown; } | null; /** * Upload Data In Separate Task */ upload_data_in_separate_task?: boolean; /** * Log Metric Computing Records */ log_metric_computing_records?: boolean; /** * Stream Metrics */ stream_metrics?: boolean; /** * Multijudge Average Boolean Metrics */ multijudge_average_boolean_metrics?: boolean; /** * Message */ message: string; /** * Link */ link: string; }; /** * CreateLLMScorerAutogenRequest */ export type CreateLlmScorerAutogenRequest = { /** * Instructions */ instructions: string; /** * Model Name */ model_name: string; output_type: OutputTypeEnum; /** * Cot Enabled */ cot_enabled: boolean; /** * Scoreable Node Types */ scoreable_node_types: Array; }; /** * CreateLLMScorerVersionRequest */ export type CreateLlmScorerVersionRequest = { /** * Model Name */ model_name?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Instructions */ instructions?: string | null; chain_poll_template?: ChainPollTemplate | null; /** * User Prompt */ user_prompt?: string | null; }; /** * CreatePromptTemplateWithVersionRequestBody * * Body to create a new prompt template with version. * * This is only used for parsing the body from the request. */ export type CreatePromptTemplateWithVersionRequestBody = { /** * Template */ template: string | Messages; /** * Raw */ raw?: boolean; /** * Version */ version?: number | null; settings?: PromptRunSettings; /** * Output Type */ output_type?: string | null; /** * Name */ name: string | Name; /** * Hidden */ hidden?: boolean; }; /** * CreateScorerRequest */ export type CreateScorerRequest = { /** * Name */ name: string; /** * Description */ description?: string; /** * Tags */ tags?: Array; defaults?: ScorerDefaults | null; scorer_type: ScorerTypes; /** * Deprecated */ deprecated?: boolean | null; model_type?: ModelType | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Default Version Id */ default_version_id?: string | null; /** * User Prompt */ user_prompt?: string | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_method?: RollUpMethodDisplayOptions | null; /** * Metric Color Picker Config */ metric_color_picker_config?: | ({ type: 'numeric'; } & MetricColorPickerNumeric) | ({ type: 'boolean'; } & MetricColorPickerBoolean) | ({ type: 'categorical'; } & MetricColorPickerCategorical) | ({ type: 'multi_label'; } & MetricColorPickerMultiLabel) | null; }; /** * CreateScorerVersionRequest */ export type CreateScorerVersionRequest = { /** * Model Name */ model_name?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; }; /** * CreateUpdateRegisteredScorerResponse */ export type CreateUpdateRegisteredScorerResponse = { /** * Id */ id: string; /** * Name */ name: string; /** * Score Type */ score_type: string | null; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Created By */ created_by: string; data_type: DataTypeOptions | null; /** * Scoreable Node Types */ scoreable_node_types: Array | null; }; /** * CustomAuthenticationType * * Authentication types for custom integrations. * * Values: * - none: No authentication required * - oauth2: OAuth2 token-based authentication * - api_key: API key header-based authentication */ export const CustomAuthenticationType = { API_KEY: 'api_key', NONE: 'none', OAUTH2: 'oauth2' } as const; /** * CustomAuthenticationType * * Authentication types for custom integrations. * * Values: * - none: No authentication required * - oauth2: OAuth2 token-based authentication * - api_key: API key header-based authentication */ export type CustomAuthenticationType = (typeof CustomAuthenticationType)[keyof typeof CustomAuthenticationType]; /** * CustomIntegration * * Read model for custom integrations. * * api_key_value is not stored in extra (it's encrypted in the token column), * so we override the parent validator to skip requiring it on read. * Headers are not returned on read (they're encrypted and sensitive). */ export type CustomIntegration = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; authentication_type?: CustomAuthenticationType; /** * Models * * List of model names for the custom integration. Deprecated: use model_properties instead. */ models?: Array | null; /** * Model Properties * * List of model properties with name and alias for the custom integration. */ model_properties?: Array | null; /** * Is Legacy Format * * Internal: whether this config was created from the legacy 'models' field. */ is_legacy_format?: boolean; /** * Default Model * * Default model to use. If not provided, defaults to the first model. */ default_model?: string | null; /** * Endpoint * * Endpoint URL for the custom integration. */ endpoint: string; /** * Authentication Scope * * Optional scope for OAuth2 authentication. */ authentication_scope?: string | null; /** * Oauth2 Token Url * * OAuth2 token URL for custom OAuth2 authentication. If not provided, defaults to the endpoint. */ oauth2_token_url?: string | null; /** * Api Key Header * * HTTP header name to use for API key authentication (e.g., 'X-API-Key', 'Authorization'). */ api_key_header?: string | null; /** * Api Key Value * * API key value to send in the specified header for authentication. */ api_key_value?: string | null; /** * Optional configuration for a custom LiteLLM handler class. When specified, the handler's acompletion() method is used instead of the default litellm.acompletion(). */ custom_llm_config?: CustomLlmConfig | null; /** * Custom Header Mapping * * Custom header mapping from internal fields (job_id, user_id, project_id, run_id) to custom header names to be included in LLM requests. */ custom_header_mapping?: { [key: string]: string; } | null; /** * Headers */ headers?: { [key: string]: string; } | null; /** * Id */ id?: string | null; /** * Name */ name?: 'custom'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * CustomIntegrationCreate * * Schema for creating custom integrations. * * Inherits api_key field validation from CustomConfig: * - api_key_header and api_key_value are required when authentication_type is api_key * * Token field is only used for oauth2 authentication (contains OAuth2 client credentials). * For api_key auth, the api_key_value field is used instead. */ export type CustomIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; authentication_type?: CustomAuthenticationType; /** * Models * * List of model names for the custom integration. Deprecated: use model_properties instead. */ models?: Array | null; /** * Model Properties * * List of model properties with name and alias for the custom integration. */ model_properties?: Array | null; /** * Is Legacy Format * * Internal: whether this config was created from the legacy 'models' field. */ is_legacy_format?: boolean; /** * Default Model * * Default model to use. If not provided, defaults to the first model. */ default_model?: string | null; /** * Endpoint * * Endpoint URL for the custom integration. */ endpoint: string; /** * Authentication Scope * * Optional scope for OAuth2 authentication. */ authentication_scope?: string | null; /** * Oauth2 Token Url * * OAuth2 token URL for custom OAuth2 authentication. If not provided, defaults to the endpoint. */ oauth2_token_url?: string | null; /** * Api Key Header * * HTTP header name to use for API key authentication (e.g., 'X-API-Key', 'Authorization'). */ api_key_header?: string | null; /** * Api Key Value * * API key value to send in the specified header for authentication. */ api_key_value?: string | null; /** * Optional configuration for a custom LiteLLM handler class. When specified, the handler's acompletion() method is used instead of the default litellm.acompletion(). */ custom_llm_config?: CustomLlmConfig | null; /** * Custom Header Mapping * * Custom header mapping from internal fields (job_id, user_id, project_id, run_id) to custom header names to be included in LLM requests. */ custom_header_mapping?: { [key: string]: string; } | null; /** * Headers * * Optional custom HTTP headers to include in requests to the integration endpoint. Stored encrypted at rest. */ headers?: { [key: string]: string; } | null; /** * Token */ token?: string | null; }; /** * CustomLLMConfig * * Configuration for a custom LiteLLM handler class. * * Allows users to specify a custom implementation of litellm.CustomLLM * that handles acompletion() calls with custom request/response transformation. */ export type CustomLlmConfig = { /** * File Name * * Python file name containing the CustomLLM class (e.g., 'my_handler.py') */ file_name: string; /** * Class Name * * Class name within the module (must be a litellm.CustomLLM subclass) */ class_name: string; /** * Init Kwargs * * Optional keyword arguments to pass to the CustomLLM constructor */ init_kwargs?: { [key: string]: unknown; } | null; }; /** * CustomizedAgenticSessionSuccessGPTScorer */ export type CustomizedAgenticSessionSuccessGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_agentic_session_success'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'agentic_session_success'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: AgenticSessionSuccessTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedAgenticWorkflowSuccessGPTScorer */ export type CustomizedAgenticWorkflowSuccessGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_agentic_workflow_success'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'agentic_workflow_success'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: AgenticWorkflowSuccessTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedChunkAttributionUtilizationGPTScorer */ export type CustomizedChunkAttributionUtilizationGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_chunk_attribution_utilization_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'chunk_attribution_utilization'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: ChunkAttributionUtilizationTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedCompletenessGPTScorer */ export type CustomizedCompletenessGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_completeness_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'completeness'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: CompletenessTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedFactualityGPTScorer */ export type CustomizedFactualityGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_factuality'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'correctness'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: FactualityTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; /** * Function Explanation Param Name */ function_explanation_param_name?: string; }; /** * CustomizedGroundTruthAdherenceGPTScorer */ export type CustomizedGroundTruthAdherenceGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_ground_truth_adherence'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'ground_truth_adherence'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: GroundTruthAdherenceTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedGroundednessGPTScorer */ export type CustomizedGroundednessGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_groundedness'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'context_adherence'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: GroundednessTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedInputSexistGPTScorer */ export type CustomizedInputSexistGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_input_sexist_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'input_sexist'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: InputSexistTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedInputToxicityGPTScorer */ export type CustomizedInputToxicityGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_input_toxicity_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'input_toxicity'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: InputToxicityTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedInstructionAdherenceGPTScorer */ export type CustomizedInstructionAdherenceGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_instruction_adherence'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'instruction_adherence'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: InstructionAdherenceTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; /** * Function Explanation Param Name */ function_explanation_param_name?: string; }; /** * CustomizedPromptInjectionGPTScorer */ export type CustomizedPromptInjectionGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_prompt_injection_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'prompt_injection'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: PromptInjectionTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedSexistGPTScorer */ export type CustomizedSexistGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_sexist_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'output_sexist'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: SexistTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedToolErrorRateGPTScorer */ export type CustomizedToolErrorRateGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_tool_error_rate'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'tool_error_rate'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: ToolErrorRateTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedToolSelectionQualityGPTScorer */ export type CustomizedToolSelectionQualityGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_tool_selection_quality'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'tool_selection_quality'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: ToolSelectionQualityTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * CustomizedToxicityGPTScorer */ export type CustomizedToxicityGptScorer = { /** * Scorer Name */ scorer_name?: '_customized_toxicity_gpt'; /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Name */ name?: 'output_toxicity'; /** * Scores */ scores?: Array | null; /** * Indices */ indices?: Array | null; /** * Aggregates */ aggregates?: { [key: string]: unknown; } | null; /** * Aggregate Keys */ aggregate_keys?: Array; /** * Extra */ extra?: { [key: string]: unknown; } | null; /** * Sub Scorers */ sub_scorers?: Array; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Metric Name */ metric_name?: string | null; /** * Description */ description?: string | null; chainpoll_template?: ToxicityTemplate; /** * Default Model Alias */ default_model_alias?: string | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Regex Field */ regex_field?: string; /** * Registered Scorer Id */ registered_scorer_id?: string | null; /** * Generated Scorer Id */ generated_scorer_id?: string | null; /** * Scorer Version Id */ scorer_version_id?: string | null; /** * User Code */ user_code?: string | null; /** * Can Copy To Llm */ can_copy_to_llm?: boolean | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; /** * Cot Enabled */ cot_enabled?: boolean | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; roll_up_strategy?: RollUpStrategy | null; /** * Roll Up Methods */ roll_up_methods?: | Array | Array | null; /** * Prompt */ prompt?: string | null; /** * Lora Task Id */ lora_task_id?: number | null; /** * Lora Weights Path */ lora_weights_path?: string | null; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; }; /** * DataType */ export const DataType = { UUID: 'uuid', TEXT: 'text', INTEGER: 'integer', FLOATING_POINT: 'floating_point', BOOLEAN: 'boolean', TIMESTAMP: 'timestamp', STRING_LIST: 'string_list', TAG: 'tag', DATASET: 'dataset', PROMPT: 'prompt', PLAYGROUND: 'playground', RANK: 'rank', CATEGORY_COUNT: 'category_count', SCORE_RATING_AGGREGATE: 'score_rating_aggregate', STAR_RATING_AGGREGATE: 'star_rating_aggregate', THUMB_RATING_AGGREGATE: 'thumb_rating_aggregate', TAGS_RATING_AGGREGATE: 'tags_rating_aggregate', TEXT_RATING_AGGREGATE: 'text_rating_aggregate', ANNOTATION_AGREEMENT: 'annotation_agreement', FULLY_ANNOTATED: 'fully_annotated' } as const; /** * DataType */ export type DataType = (typeof DataType)[keyof typeof DataType]; /** * DataTypeOptions */ export const DataTypeOptions = { UNKNOWN: 'unknown', TEXT: 'text', LABEL: 'label', FLOATING_POINT: 'floating_point', INTEGER: 'integer', TIMESTAMP: 'timestamp', MILLI_SECONDS: 'milli_seconds', BOOLEAN: 'boolean', UUID: 'uuid', PERCENTAGE: 'percentage', DOLLARS: 'dollars', ARRAY: 'array', TEMPLATE_LABEL: 'template_label', THUMB_RATING_PERCENTAGE: 'thumb_rating_percentage', USER_ID: 'user_id', TEXT_OFFSETS: 'text_offsets', SEGMENTS: 'segments', HALLUCINATION_SEGMENTS: 'hallucination_segments', THUMB_RATING: 'thumb_rating', SCORE_RATING: 'score_rating', STAR_RATING: 'star_rating', TAGS_RATING: 'tags_rating', THUMB_RATING_AGGREGATE: 'thumb_rating_aggregate', SCORE_RATING_AGGREGATE: 'score_rating_aggregate', STAR_RATING_AGGREGATE: 'star_rating_aggregate', TAGS_RATING_AGGREGATE: 'tags_rating_aggregate' } as const; /** * DataTypeOptions */ export type DataTypeOptions = (typeof DataTypeOptions)[keyof typeof DataTypeOptions]; /** * DataUnit */ export const DataUnit = { PERCENTAGE: 'percentage', NANO_SECONDS: 'nano_seconds', MILLI_SECONDS: 'milli_seconds', DOLLARS: 'dollars', COUNT_AND_TOTAL: 'count_and_total' } as const; /** * DataUnit */ export type DataUnit = (typeof DataUnit)[keyof typeof DataUnit]; /** * DatabricksIntegration */ export type DatabricksIntegration = { /** * Id */ id?: string | null; /** * Name */ name?: 'databricks'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * DatabricksIntegrationCreate */ export type DatabricksIntegrationCreate = { /** * Token */ token: string; /** * Hostname */ hostname: string; /** * Default Catalog Name */ default_catalog_name?: string | null; /** * Path */ path?: string | null; /** * Llm */ llm?: boolean; /** * Storage */ storage?: boolean; }; /** * DatasetAction */ export const DatasetAction = { UPDATE: 'update', DELETE: 'delete', SHARE: 'share', EXPORT: 'export', RENAME: 'rename' } as const; /** * DatasetAction */ export type DatasetAction = (typeof DatasetAction)[keyof typeof DatasetAction]; /** * DatasetAppendRow */ export type DatasetAppendRow = { /** * Edit Type */ edit_type?: 'append_row'; /** * Values */ values: { [key: string]: | string | number | number | { [key: string]: string | number | number | null; } | null; }; /** * Row Id */ row_id?: string | null; }; /** * DatasetContent */ export type DatasetContent = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Column Names */ column_names?: Array; /** * Warning Message */ warning_message?: string | null; /** * Rows */ rows?: Array; }; /** * DatasetContentFilter */ export type DatasetContentFilter = { /** * Column Name */ column_name: string; /** * Value */ value: string; operator?: DatasetContentFilterOperator; }; /** * DatasetContentFilterOperator */ export const DatasetContentFilterOperator = { EQ: 'eq', NE: 'ne', CONTAINS: 'contains' } as const; /** * DatasetContentFilterOperator */ export type DatasetContentFilterOperator = (typeof DatasetContentFilterOperator)[keyof typeof DatasetContentFilterOperator]; /** * DatasetContentSortClause */ export type DatasetContentSortClause = { /** * Column Name */ column_name: string; /** * Ascending */ ascending?: boolean; }; /** * DatasetCopyRecordData * * Prepend or append trace or span data to dataset. */ export type DatasetCopyRecordData = { /** * Edit Type */ edit_type?: 'copy_record_data'; /** * Project Id */ project_id?: string | null; /** * Queue Id */ queue_id?: string | null; /** * Ids * * List of trace or span IDs to copy data from */ ids: Array; /** * Prepend * * A flag to control appending vs prepending */ prepend?: boolean; /** * Use Generated Output Column * * If True, write trace output to generated_output column; if False, write to output column (backward compatible) */ use_generated_output_column?: boolean; }; /** * DatasetCreatedAtSort */ export type DatasetCreatedAtSort = { /** * Name */ name?: 'created_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * DatasetDB */ export type DatasetDb = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; /** * Name */ name: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Project Count */ project_count: number; /** * Num Rows */ num_rows: number | null; /** * Column Names */ column_names: Array | null; created_by_user: UserInfo | null; /** * Current Version Index */ current_version_index: number; /** * Draft */ draft: boolean; }; /** * DatasetData */ export type DatasetData = { /** * Dataset Id */ dataset_id: string; /** * Dataset Version Index */ dataset_version_index?: number | null; }; /** * DatasetDeleteRow */ export type DatasetDeleteRow = { /** * Row Id */ row_id: string; /** * Edit Type */ edit_type?: 'delete_row'; }; /** * DatasetDraftFilter */ export type DatasetDraftFilter = { /** * Name */ name?: 'draft'; /** * Operator */ operator?: 'eq' | 'ne'; /** * Value */ value: boolean; }; /** * DatasetFilterRows * * This global operation filters a set of rows and discard the rest. */ export type DatasetFilterRows = { /** * Edit Type */ edit_type?: 'filter_rows'; /** * Row Ids */ row_ids: Array; }; /** * DatasetFormat */ export const DatasetFormat = { CSV: 'csv', FEATHER: 'feather', JSON: 'json', JSONL: 'jsonl' } as const; /** * DatasetFormat */ export type DatasetFormat = (typeof DatasetFormat)[keyof typeof DatasetFormat]; /** * DatasetIDFilter */ export type DatasetIdFilter = { /** * Name */ name?: 'id'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * DatasetInputJsonField */ export type DatasetInputJsonField = { /** * Key */ key: string; /** * Values */ values: Array; }; /** * DatasetLastEditedByUserAtSort */ export type DatasetLastEditedByUserAtSort = { /** * Name */ name?: 'last_edited_by_user_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom_uuid'; /** * Value */ value: string; }; /** * DatasetNameFilter */ export type DatasetNameFilter = { /** * Name */ name?: 'name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * DatasetNameSort */ export type DatasetNameSort = { /** * Name */ name?: 'name'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * DatasetNotInProjectFilter */ export type DatasetNotInProjectFilter = { /** * Name */ name?: 'not_in_project'; /** * Value */ value: string; }; /** * DatasetPrependRow */ export type DatasetPrependRow = { /** * Edit Type */ edit_type?: 'prepend_row'; /** * Values */ values: { [key: string]: | string | number | number | { [key: string]: string | number | number | null; } | null; }; /** * Row Id */ row_id?: string | null; }; /** * DatasetProject */ export type DatasetProject = { /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Name */ name: string; created_by_user: UserInfo | null; }; /** * DatasetProjectLastUsedAtSort */ export type DatasetProjectLastUsedAtSort = { /** * Name */ name?: 'project_last_used_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom_uuid'; /** * Value */ value: string; }; /** * DatasetProjectsSort */ export type DatasetProjectsSort = { /** * Name */ name?: 'project_count'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom'; }; /** * DatasetRow */ export type DatasetRow = { /** * Row Id */ row_id: string; /** * Index */ index: number; /** * Values */ values: Array< | string | number | number | { [key: string]: string | number | number | null; } | null >; /** * Values Dict */ values_dict: { [key: string]: | string | number | number | { [key: string]: string | number | number | null; } | null; }; metadata: DatasetRowMetadata | null; }; /** * DatasetRowMetadata */ export type DatasetRowMetadata = { /** * Created In Version */ created_in_version: number; /** * Created At */ created_at: string; created_by_user: UserInfo | null; /** * Updated In Version */ updated_in_version: number; /** * Updated At */ updated_at: string; updated_by_user: UserInfo | null; }; /** * DatasetRowsSort */ export type DatasetRowsSort = { /** * Name */ name?: 'num_rows'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * DatasetUpdateRow */ export type DatasetUpdateRow = { /** * Row Id */ row_id: string; /** * Edit Type */ edit_type?: 'update_row'; /** * Values */ values: { [key: string]: | string | number | number | { [key: string]: string | number | number | null; } | null; }; }; /** * DatasetUpdatedAtSort */ export type DatasetUpdatedAtSort = { /** * Name */ name?: 'updated_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * DatasetUsedInProjectFilter */ export type DatasetUsedInProjectFilter = { /** * Name */ name?: 'used_in_project'; /** * Value */ value: string; }; /** * DatasetVersionDB */ export type DatasetVersionDb = { /** * Version Index */ version_index: number; /** * Name */ name: string | null; /** * Created At */ created_at: string; created_by_user: UserInfo | null; /** * Num Rows */ num_rows: number; /** * Column Names */ column_names: Array; /** * Rows Added */ rows_added: number; /** * Rows Removed */ rows_removed: number; /** * Rows Edited */ rows_edited: number; /** * Columns Added */ columns_added: number; /** * Columns Removed */ columns_removed: number; /** * Columns Renamed */ columns_renamed: number; }; /** * DatasetVersionIndexSort */ export type DatasetVersionIndexSort = { /** * Name */ name?: 'version_index'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * DeletePromptResponse */ export type DeletePromptResponse = { /** * Message */ message: string; }; /** * DeleteRunResponse */ export type DeleteRunResponse = { /** * Message */ message: string; }; /** * DeleteScorerResponse */ export type DeleteScorerResponse = { /** * Message */ message: string; }; /** * Document */ export type Document = { /** * Page Content * * Content of the document. */ page_content: string; /** * Metadata */ metadata?: { [key: string]: boolean | string | number | number; }; }; /** * ErrorSeverity * * Error severity levels for catalog entries. */ export const ErrorSeverity = { LOW: 'low', MEDIUM: 'medium', HIGH: 'high', CRITICAL: 'critical' } as const; /** * ErrorSeverity * * Error severity levels for catalog entries. */ export type ErrorSeverity = (typeof ErrorSeverity)[keyof typeof ErrorSeverity]; /** * ErrorType */ export const ErrorType = { LLM_API_ERROR: 'llm_api_error', CREDENTIALS_ERROR: 'credentials_error', DATA_VALIDATION_ERROR: 'data_validation_error', CONFIGURATION_ERROR: 'configuration_error', PERMISSION_ERROR: 'permission_error', NOT_FOUND_ERROR: 'not_found_error', WORKFLOW_ERROR: 'workflow_error', SYSTEM_ERROR: 'system_error', NOT_APPLICABLE_REASON: 'not_applicable_reason', UNCATALOGED_ERROR: 'uncataloged_error' } as const; /** * ErrorType */ export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType]; /** * EventStatus * * Common status values for events. */ export const EventStatus = { IN_PROGRESS: 'in_progress', COMPLETED: 'completed', FAILED: 'failed', CANCELLED: 'cancelled', INCOMPLETE: 'incomplete' } as const; /** * EventStatus * * Common status values for events. */ export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus]; /** * ExecutionStatus * * Status of the execution. */ export const ExecutionStatus = { TRIGGERED: 'triggered', FAILED: 'failed', ERROR: 'error', TIMEOUT: 'timeout', PAUSED: 'paused', NOT_TRIGGERED: 'not_triggered', SKIPPED: 'skipped' } as const; /** * ExecutionStatus * * Status of the execution. */ export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus]; /** * ExperimentCreateRequest */ export type ExperimentCreateRequest = { /** * Name */ name: string; /** * Task Type */ task_type?: 16 | 17; /** * Playground Id */ playground_id?: string | null; /** * Prompt Template Version Id */ prompt_template_version_id?: string | null; dataset?: ExperimentDatasetRequest | null; /** * Playground Prompt Id */ playground_prompt_id?: string | null; prompt_settings?: PromptRunSettings | null; /** * Scorers */ scorers?: Array; /** * Trigger */ trigger?: boolean; }; /** * RunCreatedAtFilter */ export type ExperimentCreatedAtFilter = { /** * Name */ name?: 'created_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * RunCreatedAtSort */ export type ExperimentCreatedAtSort = { /** * Name */ name?: 'created_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * RunCreatedByFilter */ export type ExperimentCreatedByFilter = { /** * Name */ name?: 'created_by'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * ExperimentDataset */ export type ExperimentDataset = { /** * Dataset Id */ dataset_id?: string | null; /** * Version Index */ version_index?: number | null; /** * Name */ name?: string | null; }; /** * ExperimentDatasetRequest */ export type ExperimentDatasetRequest = { /** * Dataset Id */ dataset_id: string; /** * Version Index */ version_index: number; }; /** * RunIDFilter */ export type ExperimentIdFilter = { /** * Name */ name?: 'id'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * ExperimentMetricsRequest */ export type ExperimentMetricsRequest = { /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; }; /** * ExperimentMetricsResponse */ export type ExperimentMetricsResponse = { /** * Metrics * * List of metrics for the experiment, including categorical and quartile metrics. */ metrics?: Array; }; /** * RunNameFilter */ export type ExperimentNameFilter = { /** * Name */ name?: 'name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * RunNameSort */ export type ExperimentNameSort = { /** * Name */ name?: 'name'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ExperimentPhaseStatus */ export type ExperimentPhaseStatus = { /** * Progress Percent * * Progress percentage from 0.0 to 1.0 */ progress_percent?: number; }; /** * ExperimentPlayground */ export type ExperimentPlayground = { /** * Playground Id */ playground_id?: string | null; /** * Name */ name?: string | null; }; /** * ExperimentPrompt */ export type ExperimentPrompt = { /** * Prompt Template Id */ prompt_template_id?: string | null; /** * Version Index */ version_index?: number | null; /** * Name */ name?: string | null; /** * Content */ content?: string | null; }; /** * ExperimentResponse */ export type ExperimentResponse = { /** * ID * * Galileo ID of the experiment */ id: string; /** * Created * * Timestamp of the experiment's creation */ created_at?: string; /** * Last Updated * * Timestamp of the trace or span's last update */ updated_at?: string | null; /** * Name * * Name of the experiment */ name?: string; /** * Project ID * * Galileo ID of the project associated with this experiment */ project_id: string; /** * Created By */ created_by?: string | null; created_by_user?: UserInfo | null; /** * Num Spans */ num_spans?: number | null; /** * Num Traces */ num_traces?: number | null; task_type: TaskType; dataset?: ExperimentDataset | null; /** * Aggregate Metrics * @deprecated Use `metricAggregates` instead. */ aggregate_metrics?: { [key: string]: unknown; }; /** * Structured Aggregate Metrics * * Structured aggregate metrics keyed by raw metric name with full statistical aggregates. Present only when use_clickhouse_run_aggregates flag is enabled. */ structured_aggregate_metrics?: { [key: string]: MetricAggregates; } | null; /** * Aggregate Feedback * * Aggregate feedback information related to the experiment (traces only) * * @deprecated */ aggregate_feedback?: { [key: string]: FeedbackAggregate; }; /** * Rating Aggregates * * Annotation aggregates keyed by template ID and root type */ rating_aggregates?: { [key: string]: { [key in RootType]?: FeedbackAggregate; }; }; /** * Ranking Score */ ranking_score?: number | null; /** * Rank */ rank?: number | null; /** * Winner */ winner?: boolean | null; /** * Playground Id */ playground_id?: string | null; playground?: ExperimentPlayground | null; prompt_run_settings?: PromptRunSettings | null; /** * Prompt Model */ prompt_model?: string | null; prompt?: ExperimentPrompt | null; /** * Tags */ tags?: { [key: string]: Array; }; status?: ExperimentStatus; }; /** * ExperimentSearchRequest */ export type ExperimentSearchRequest = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Filters */ filters?: Array< | ({ name: 'id'; } & ExperimentIdFilter) | ({ name: 'name'; } & ExperimentNameFilter) | ({ name: 'created_by'; } & ExperimentCreatedByFilter) | ({ name: 'created_at'; } & ExperimentCreatedAtFilter) | ({ name: 'updated_at'; } & ExperimentUpdatedAtFilter) >; /** * Sort */ sort?: | ({ name: 'name'; } & ExperimentNameSort) | ({ name: 'created_at'; } & ExperimentCreatedAtSort) | ({ name: 'updated_at'; } & ExperimentUpdatedAtSort) | null; /** * Include Counts */ include_counts?: boolean; }; /** * ExperimentStatus */ export type ExperimentStatus = { log_generation?: ExperimentPhaseStatus; }; /** * ExperimentUpdateRequest */ export type ExperimentUpdateRequest = { /** * Name */ name: string; /** * Task Type */ task_type?: 16 | 17; }; /** * RunUpdatedAtFilter */ export type ExperimentUpdatedAtFilter = { /** * Name */ name?: 'updated_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * RunUpdatedAtSort */ export type ExperimentUpdatedAtSort = { /** * Name */ name?: 'updated_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ExperimentsAvailableColumnsResponse */ export type ExperimentsAvailableColumnsResponse = { /** * Columns */ columns?: Array; }; /** * ExtendedAgentSpanRecord */ export type ExtendedAgentSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'agent'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Agent type. */ agent_type?: AgentType; }; /** * ExtendedAgentSpanRecordWithChildren */ export type ExtendedAgentSpanRecordWithChildren = { /** * Spans */ spans?: Array< | ({ type: 'agent'; } & ExtendedAgentSpanRecordWithChildren) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecordWithChildren) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecordWithChildren) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecordWithChildren) | ({ type: 'control'; } & ExtendedControlSpanRecord) >; /** * Type * * Type of the trace, span or session. */ type?: 'agent'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Agent type. */ agent_type?: AgentType; }; /** * ExtendedControlSpanRecord */ export type ExtendedControlSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'control'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output of the trace or span. */ output?: ControlResult | null; /** * Redacted output of the trace or span. */ redacted_output?: ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Control Id * * Identifier of the control definition that produced this span. */ control_id?: number | null; /** * Agent Name * * Normalized agent name associated with this control execution. */ agent_name?: string | null; /** * Execution stage where the control ran, typically 'pre' or 'post'. */ check_stage?: ControlCheckStage | null; /** * Parent execution type the control applied to, for example 'llm_call' or 'tool_call'. */ applies_to?: ControlAppliesTo | null; /** * Evaluator Name * * Representative evaluator name for this control span. For composite controls, this is the primary evaluator chosen for observability identity. */ evaluator_name?: string | null; /** * Selector Path * * Representative selector path for this control span. For composite controls, this is the primary selector path chosen for observability identity. */ selector_path?: string | null; }; /** * ExtendedLlmSpanRecord */ export type ExtendedLlmSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'llm'; /** * Input * * Input to the trace or span. */ input?: Array; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: Array | null; /** * Output of the trace or span. */ output?: GalileoCoreSchemasLoggingLlmMessage; /** * Redacted output of the trace or span. */ redacted_output?: GalileoCoreSchemasLoggingLlmMessage | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: LlmMetrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Tools * * List of available tools passed to the LLM on invocation. */ tools?: Array<{ [key: string]: unknown; }> | null; /** * Events * * List of reasoning, internal tool call, or MCP events that occurred during the LLM span. */ events?: Array< | ({ type: 'message'; } & MessageEvent) | ({ type: 'reasoning'; } & ReasoningEvent) | ({ type: 'internal_tool_call'; } & InternalToolCall) | ({ type: 'web_search_call'; } & WebSearchCallEvent) | ({ type: 'image_generation'; } & ImageGenerationEvent) | ({ type: 'mcp_call'; } & McpCallEvent) | ({ type: 'mcp_list_tools'; } & McpListToolsEvent) | ({ type: 'mcp_approval_request'; } & McpApprovalRequestEvent) > | null; /** * Model * * Model used for this span. */ model?: string | null; /** * Temperature * * Temperature used for generation. */ temperature?: number | null; /** * Finish Reason * * Reason for finishing. */ finish_reason?: string | null; }; /** * ExtendedRetrieverSpanRecord */ export type ExtendedRetrieverSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'retriever'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: Array; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: Array | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; }; /** * ExtendedRetrieverSpanRecordWithChildren */ export type ExtendedRetrieverSpanRecordWithChildren = { /** * Spans */ spans?: Array< | ({ type: 'agent'; } & ExtendedAgentSpanRecordWithChildren) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecordWithChildren) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecordWithChildren) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecordWithChildren) | ({ type: 'control'; } & ExtendedControlSpanRecord) >; /** * Type * * Type of the trace, span or session. */ type?: 'retriever'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: Array; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: Array | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; }; /** * ExtendedSessionRecord */ export type ExtendedSessionRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'session'; /** * Input */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session */ id: string; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Previous Session Id */ previous_session_id?: string | null; /** * Num Traces */ num_traces?: number | null; }; /** * ExtendedSessionRecordWithChildren */ export type ExtendedSessionRecordWithChildren = { /** * Traces */ traces?: Array; /** * Type * * Type of the trace, span or session. */ type?: 'session'; /** * Input */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session */ id: string; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Previous Session Id */ previous_session_id?: string | null; /** * Num Traces */ num_traces?: number | null; }; /** * ExtendedToolSpanRecord */ export type ExtendedToolSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'tool'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: string | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: string | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Tool Call Id * * ID of the tool call. */ tool_call_id?: string | null; }; /** * ExtendedToolSpanRecordWithChildren */ export type ExtendedToolSpanRecordWithChildren = { /** * Spans */ spans?: Array< | ({ type: 'agent'; } & ExtendedAgentSpanRecordWithChildren) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecordWithChildren) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecordWithChildren) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecordWithChildren) | ({ type: 'control'; } & ExtendedControlSpanRecord) >; /** * Type * * Type of the trace, span or session. */ type?: 'tool'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: string | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: string | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Tool Call Id * * ID of the tool call. */ tool_call_id?: string | null; }; /** * ExtendedTraceRecord */ export type ExtendedTraceRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'trace'; /** * Input * * Input to the trace or span. */ input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the trace */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id: string; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Is Complete * * Whether the trace is complete or not */ is_complete?: boolean; /** * Num Spans */ num_spans?: number | null; }; /** * ExtendedTraceRecordWithChildren */ export type ExtendedTraceRecordWithChildren = { /** * Spans */ spans?: Array< | ({ type: 'agent'; } & ExtendedAgentSpanRecordWithChildren) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecordWithChildren) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecordWithChildren) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecordWithChildren) | ({ type: 'control'; } & ExtendedControlSpanRecord) >; /** * Type * * Type of the trace, span or session. */ type?: 'trace'; /** * Input * * Input to the trace or span. */ input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the trace */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id: string; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Is Complete * * Whether the trace is complete or not */ is_complete?: boolean; /** * Num Spans */ num_spans?: number | null; }; /** * ExtendedWorkflowSpanRecord */ export type ExtendedWorkflowSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'workflow'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; }; /** * ExtendedWorkflowSpanRecordWithChildren */ export type ExtendedWorkflowSpanRecordWithChildren = { /** * Spans */ spans?: Array< | ({ type: 'agent'; } & ExtendedAgentSpanRecordWithChildren) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecordWithChildren) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecordWithChildren) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecordWithChildren) | ({ type: 'control'; } & ExtendedControlSpanRecord) >; /** * Type * * Type of the trace, span or session. */ type?: 'workflow'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id: string; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id: string; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id: string; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id: string; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id: string; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; }; /** * FactualityTemplate */ export type FactualityTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description * * Description of what the metric should do. */ metric_description?: string | null; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * FeedbackAggregate */ export type FeedbackAggregate = { /** * Aggregate */ aggregate: | ({ feedback_type: 'like_dislike'; } & LikeDislikeAggregate) | ({ feedback_type: 'star'; } & StarAggregate) | ({ feedback_type: 'score'; } & ScoreAggregate) | ({ feedback_type: 'tags'; } & TagsAggregate) | ({ feedback_type: 'text'; } & TextAggregate); }; /** * FeedbackRatingDB */ export type FeedbackRatingDb = { /** * Explanation */ explanation?: string | null; /** * Rating */ rating: | ({ feedback_type: 'like_dislike'; } & LikeDislikeRating) | ({ feedback_type: 'star'; } & StarRating) | ({ feedback_type: 'score'; } & ScoreRating) | ({ feedback_type: 'tags'; } & TagsRating) | ({ feedback_type: 'text'; } & TextRating); /** * Created At */ created_at: string; /** * Created By */ created_by: string | null; }; /** * FeedbackRatingInfo */ export type FeedbackRatingInfo = { feedback_type: FeedbackType; /** * Value */ value: boolean | number | string | Array; /** * Explanation */ explanation: string | null; }; /** * FeedbackType */ export const FeedbackType = { LIKE_DISLIKE: 'like_dislike', STAR: 'star', SCORE: 'score', TAGS: 'tags', TEXT: 'text' } as const; /** * FeedbackType */ export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType]; /** * FewShotExample * * Few-shot example for a chainpoll metric prompt. */ export type FewShotExample = { /** * Generation Prompt And Response */ generation_prompt_and_response: string; /** * Evaluating Response */ evaluating_response: string; }; /** * FileContentPart * * Reference to a file associated with this message. * * The file_id can be resolved via the ``files`` dict returned on * trace/span detail responses, which contains metadata such as * modality, MIME type, and a presigned download URL. */ export type FileContentPart = { /** * Type */ type?: 'file'; /** * File Id */ file_id: string; }; /** * FileMetadata * * Enriched file metadata returned to UI/SDK. * * Contains presigned URLs and properties for displaying multimodal * content in the Galileo console and SDKs. */ export type FileMetadata = { /** * File Id */ file_id: string; modality: ContentModality; /** * Content Type */ content_type?: string | null; /** * Url * * Presigned S3 URL or external URL */ url?: string | null; /** * Url Expires At * * Expiration time */ url_expires_at?: string | null; /** * Size Bytes */ size_bytes?: number | null; /** * Filename */ filename?: string | null; source: FileSource; status: FileStatus; }; /** * FileSource * * Source of the file data. */ export const FileSource = { DIRECT_UPLOAD: 'direct_upload', EXTERNAL_FILES_API: 'external_files_api', EXTERNAL_URL: 'external_url', ASSEMBLED_STREAM: 'assembled_stream' } as const; /** * FileSource * * Source of the file data. */ export type FileSource = (typeof FileSource)[keyof typeof FileSource]; /** * FileStatus * * Processing status of the file. */ export const FileStatus = { COMPLETE: 'complete', FAILED: 'failed', PENDING: 'pending', NOT_UPLOADED: 'not_uploaded' } as const; /** * FileStatus * * Processing status of the file. */ export type FileStatus = (typeof FileStatus)[keyof typeof FileStatus]; export type FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType = | FilterLeafAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | AndNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | OrNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | NotNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType; /** * FilterLeaf[Annotated[Union[LogRecordsIDFilter, LogRecordsDateFilter, LogRecordsNumberFilter, LogRecordsBooleanFilter, LogRecordsCollectionFilter, LogRecordsTextFilter, LogRecordsFullyAnnotatedFilter], FieldInfo(annotation=NoneType, required=True, discriminator='type')]] */ export type FilterLeafAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType = { /** * Filter */ filter: | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter); }; /** * FineTunedScorer */ export type FineTunedScorer = { /** * Id */ id?: string | null; /** * Name */ name?: string | null; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * FineTunedScorerAction */ export const FineTunedScorerAction = { UPDATE: 'update', DELETE: 'delete' } as const; /** * FineTunedScorerAction */ export type FineTunedScorerAction = (typeof FineTunedScorerAction)[keyof typeof FineTunedScorerAction]; /** * FineTunedScorerResponse */ export type FineTunedScorerResponse = { /** * Id */ id: string; /** * Name */ name: string; /** * Lora Task Id */ lora_task_id: number; /** * Lora Weights Path */ lora_weights_path?: string | null; /** * Prompt */ prompt: string; luna_input_type?: LunaInputTypeEnum | null; luna_output_type?: LunaOutputTypeEnum | null; /** * Class Name To Vocab Ix */ class_name_to_vocab_ix?: | { [key: string]: Array; } | { [key: string]: number; } | null; /** * Executor pipeline. Defaults to finetuned scorer pipeline but can run custom galileo score pipelines. */ executor?: GalileoCoreSchemasSharedScorersScorerNameScorerName | null; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Created By */ created_by: string; }; /** * GeneratedScorerAction */ export const GeneratedScorerAction = { UPDATE: 'update', DELETE: 'delete' } as const; /** * GeneratedScorerAction */ export type GeneratedScorerAction = (typeof GeneratedScorerAction)[keyof typeof GeneratedScorerAction]; /** * GeneratedScorerConfiguration */ export type GeneratedScorerConfiguration = { /** * Model Alias */ model_alias?: string; /** * Num Judges */ num_judges?: number; /** * Output type of the generated scorer. */ output_type?: OutputTypeEnum; /** * Scoreable Node Types * * Types of nodes that can be scored by this scorer. */ scoreable_node_types?: Array; /** * Cot Enabled * * Whether chain of thought is enabled for this scorer. */ cot_enabled?: boolean; /** * Ground Truth * * Whether ground truth is enabled for this scorer. */ ground_truth?: boolean; /** * Multimodal Capabilities * * Multimodal capabilities required by this scorer. */ multimodal_capabilities?: Array | null; }; /** * GeneratedScorerResponse */ export type GeneratedScorerResponse = { /** * Id */ id: string; /** * Name */ name: string; /** * Instructions */ instructions?: string | null; chain_poll_template: ChainPollTemplate; /** * User Prompt */ user_prompt?: string | null; /** * Created By */ created_by: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Scoreable Node Types */ scoreable_node_types: Array | null; scorer_configuration: GeneratedScorerConfiguration; }; /** * GeneratedScorerValidationResponse */ export type GeneratedScorerValidationResponse = { /** * Task Result Id */ task_result_id: string; }; /** * GenerationResponse */ export type GenerationResponse = { /** * Task Result Id */ task_result_id: string; }; /** * GroundTruthAdherenceScorer */ export type GroundTruthAdherenceScorer = { /** * Name */ name?: 'ground_truth_adherence'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * GroundTruthAdherenceTemplate */ export type GroundTruthAdherenceTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples * * Few-shot examples for the metric. */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * GroundednessTemplate * * Template for the groundedness metric, * containing all the info necessary to send the groundedness prompt. */ export type GroundednessTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * GroupAction */ export const GroupAction = { UPDATE: 'update', LIST_MEMBERS: 'list_members', JOIN: 'join', REQUEST_TO_JOIN: 'request_to_join' } as const; /** * GroupAction */ export type GroupAction = (typeof GroupAction)[keyof typeof GroupAction]; /** * GroupCollaborator */ export type GroupCollaborator = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; role: CollaboratorRole; /** * Created At */ created_at: string; /** * Group Id */ group_id: string; /** * Group Name */ group_name: string; }; /** * GroupCollaboratorCreate */ export type GroupCollaboratorCreate = { role?: CollaboratorRole; /** * Group Id */ group_id: string; }; /** * GroupMemberAction */ export const GroupMemberAction = { UPDATE_ROLE: 'update_role', DELETE: 'delete' } as const; /** * GroupMemberAction */ export type GroupMemberAction = (typeof GroupMemberAction)[keyof typeof GroupMemberAction]; /** * HTTPValidationError */ export type HttpValidationError = { /** * Detail */ detail?: Array; }; /** * HallucinationSegment */ export type HallucinationSegment = { /** * Hallucination Severity */ hallucination_severity?: number; /** * Start */ start: number; /** * End */ end: number; /** * Hallucination */ hallucination: number; }; /** * HealthcheckResponse */ export type HealthcheckResponse = { /** * Api Version */ api_version: string; /** * Message */ message: string; /** * Version */ version: string; }; /** * Histogram */ export type Histogram = { /** * The binning strategy used to create this histogram */ strategy: HistogramStrategy; /** * Edges * * List of bin edges (monotonically increasing, length = number of buckets + 1) */ edges: Array; /** * Buckets * * List of histogram buckets containing the binned data */ buckets: Array; /** * Total * * Total number of data points in the histogram */ total: number; }; /** * HistogramBucket */ export type HistogramBucket = { /** * Lower * * Lower bound of the histogram bucket (inclusive) */ lower: number; /** * Upper * * Upper bound of the histogram bucket (exclusive, but inclusive for the last bucket) */ upper: number; /** * Count * * Number of data points that fall within this bucket */ count: number; }; /** * HistogramStrategy */ export const HistogramStrategy = { FIXED: 'fixed', TRIMMED: 'trimmed', QUANTILE: 'quantile' } as const; /** * HistogramStrategy */ export type HistogramStrategy = (typeof HistogramStrategy)[keyof typeof HistogramStrategy]; /** * ImageGenerationEvent * * An image generation event from the model. */ export type ImageGenerationEvent = { /** * Type */ type?: 'image_generation'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Prompt * * The prompt used for image generation */ prompt?: string | null; /** * Images * * Generated images with URLs or base64 data */ images?: Array<{ [key: string]: unknown; }> | null; /** * Model * * Image generation model used */ model?: string | null; }; /** * InputMap */ export type InputMap = { /** * Prompt */ prompt: string; /** * Prefix */ prefix?: string; /** * Suffix */ suffix?: string; }; /** * InputPIIScorer */ export type InputPiiScorer = { /** * Name */ name?: 'input_pii'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * InputSexistScorer */ export type InputSexistScorer = { /** * Name */ name?: 'input_sexist'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * InputSexistTemplate * * Template for the sexism metric, * containing all the info necessary to send the sexism prompt. */ export type InputSexistTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * InputToneScorer */ export type InputToneScorer = { /** * Name */ name?: 'input_tone'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * InputToxicityScorer */ export type InputToxicityScorer = { /** * Name */ name?: 'input_toxicity'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * InputToxicityTemplate * * Template for the toxicity metric, * containing all the info necessary to send the toxicity prompt. */ export type InputToxicityTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * InputTypeEnum * * Enumeration of input types. */ export const InputTypeEnum = { BASIC: 'basic', LLM_SPANS: 'llm_spans', RETRIEVER_SPANS: 'retriever_spans', SESSIONS_NORMALIZED: 'sessions_normalized', SESSIONS_TRACE_IO_ONLY: 'sessions_trace_io_only', TOOL_SPANS: 'tool_spans', TRACE_INPUT_ONLY: 'trace_input_only', TRACE_IO_ONLY: 'trace_io_only', TRACE_NORMALIZED: 'trace_normalized', TRACE_OUTPUT_ONLY: 'trace_output_only', AGENT_SPANS: 'agent_spans', WORKFLOW_SPANS: 'workflow_spans' } as const; /** * InputTypeEnum * * Enumeration of input types. */ export type InputTypeEnum = (typeof InputTypeEnum)[keyof typeof InputTypeEnum]; /** * InsightSummary */ export type InsightSummary = { /** * Id */ id: string; /** * Title */ title: string; /** * Observation */ observation: string; /** * Details */ details: string; /** * Suggested Action */ suggested_action: string; /** * Priority */ priority: number; /** * Priority Category */ priority_category?: 'error' | 'warning' | 'info' | null; }; /** * InsightType */ export const InsightType = { VERTICAL_BAR: 'vertical_bar', HORIZONTAL_BAR: 'horizontal_bar' } as const; /** * InsightType */ export type InsightType = (typeof InsightType)[keyof typeof InsightType]; /** * InstructionAdherenceScorer */ export type InstructionAdherenceScorer = { /** * Name */ name?: 'instruction_adherence'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * InstructionAdherenceTemplate */ export type InstructionAdherenceTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * IntegrationAction */ export const IntegrationAction = { UPDATE: 'update', DELETE: 'delete', SHARE: 'share' } as const; /** * IntegrationAction */ export type IntegrationAction = (typeof IntegrationAction)[keyof typeof IntegrationAction]; /** * IntegrationDB */ export type IntegrationDb = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; name: IntegrationName; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Created By */ created_by: string; /** * Is Selected */ is_selected?: boolean; /** * Is Disabled */ is_disabled?: boolean; }; /** * IntegrationDisableRequest */ export type IntegrationDisableRequest = { integration_name: IntegrationName; }; /** * IntegrationModelsResponse */ export type IntegrationModelsResponse = { /** * Integration Name */ integration_name: string; /** * Models */ models: Array; /** * Scorer Models */ scorer_models: Array; /** * Recommended Models */ recommended_models?: { [key in RecommendedModelPurpose]?: Array; }; /** * Supports Num Judges */ supports_num_judges?: boolean; /** * Supports File Uploads */ supports_file_uploads?: boolean; /** * Model Properties */ model_properties?: Array; }; /** * IntegrationName */ export const IntegrationName = { ANTHROPIC: 'anthropic', AWS_BEDROCK: 'aws_bedrock', AWS_SAGEMAKER: 'aws_sagemaker', AZURE: 'azure', CUSTOM: 'custom', DATABRICKS: 'databricks', MISTRAL: 'mistral', NVIDIA: 'nvidia', OPENAI: 'openai', VEGAS_GATEWAY: 'vegas_gateway', VERTEX_AI: 'vertex_ai', WRITER: 'writer' } as const; /** * IntegrationName */ export type IntegrationName = (typeof IntegrationName)[keyof typeof IntegrationName]; /** * IntegrationSelectRequest */ export type IntegrationSelectRequest = { integration_name: IntegrationName; /** * Integration Id */ integration_id: string; }; /** * InternalToolCall * * A tool call executed internally by the model during reasoning. * * This represents internal tools like web search, code execution, file search, etc. * that the model invokes (not user-defined functions or MCP tools). */ export type InternalToolCall = { /** * Type */ type?: 'internal_tool_call'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Name * * Name of the internal tool (e.g., 'web_search', 'code_interpreter', 'file_search') */ name: string; /** * Input * * Input/arguments to the tool call */ input?: { [key: string]: unknown; } | null; /** * Output * * Output/results from the tool call */ output?: { [key: string]: unknown; } | null; }; /** * InvalidResult */ export type InvalidResult = { /** * Result Type */ result_type?: 'invalid'; /** * Error Message */ error_message: string; }; /** * InvokeResponse */ export type InvokeResponse = { status?: ExecutionStatus; /** * Api Version */ api_version?: string; /** * Text * * Text from the request after processing the rules. */ text: string; trace_metadata: TraceMetadata; stage_metadata: StageMetadata; /** * Ruleset Results * * Results of the rule execution. */ ruleset_results?: Array; /** * Metric Results * * Results of the metric computation. */ metric_results?: { [key: string]: MetricComputation; }; action_result: ActionResult; /** * Metadata * * Optional additional metadata. This being echoed back from the request. */ metadata?: { [key: string]: string; } | null; /** * Headers * * Optional additional HTTP headers that should be included in the response. */ headers?: { [key: string]: string; } | null; }; /** * JobDB */ export type JobDb = { /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Failed At */ failed_at?: string | null; /** * Completed At */ completed_at?: string | null; /** * Processing Started */ processing_started?: string | null; /** * Job Name */ job_name: string; /** * Migration Name */ migration_name?: string | null; /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; /** * Monitor Batch Id */ monitor_batch_id?: string | null; /** * Status */ status: string; /** * Retries */ retries: number; /** * Request Data */ request_data: { [key: string]: unknown; }; /** * Error Message */ error_message?: string | null; /** * Progress Message */ progress_message?: string | null; /** * Steps Completed */ steps_completed?: number; /** * Steps Total */ steps_total?: number; /** * Progress Percent */ progress_percent?: number; }; /** * JobProgress */ export type JobProgress = { /** * Progress Message */ progress_message?: string | null; /** * Steps Completed */ steps_completed?: number | null; /** * Steps Total */ steps_total?: number | null; }; export type JsonPrimitive = string | number | number | boolean | null; export type JsonValue = | JsonPrimitive | Array | { [key: string]: JsonValue; }; /** * LLMExportFormat */ export const LlmExportFormat = { CSV: 'csv', JSONL: 'jsonl' } as const; /** * LLMExportFormat */ export type LlmExportFormat = (typeof LlmExportFormat)[keyof typeof LlmExportFormat]; /** * LLMIntegration */ export const LlmIntegration = { ANTHROPIC: 'anthropic', AWS_BEDROCK: 'aws_bedrock', AWS_SAGEMAKER: 'aws_sagemaker', AZURE: 'azure', CUSTOM: 'custom', DATABRICKS: 'databricks', MISTRAL: 'mistral', NVIDIA: 'nvidia', OPENAI: 'openai', VEGAS_GATEWAY: 'vegas_gateway', VERTEX_AI: 'vertex_ai', WRITER: 'writer' } as const; /** * LLMIntegration */ export type LlmIntegration = (typeof LlmIntegration)[keyof typeof LlmIntegration]; /** * LikeDislikeAggregate */ export type LikeDislikeAggregate = { /** * Feedback Type */ feedback_type?: 'like_dislike'; /** * Like Count */ like_count: number; /** * Dislike Count */ dislike_count: number; /** * Unrated Count */ unrated_count: number; }; /** * LikeDislikeRating */ export type LikeDislikeRating = { /** * Feedback Type */ feedback_type?: 'like_dislike'; /** * Value */ value: boolean; }; /** * ListDatasetParams */ export type ListDatasetParams = { /** * Filters */ filters?: Array< | ({ name: 'name'; } & DatasetNameFilter) | ({ name: 'draft'; } & DatasetDraftFilter) | ({ name: 'used_in_project'; } & DatasetUsedInProjectFilter) | ({ name: 'id'; } & DatasetIdFilter) | ({ name: 'not_in_project'; } & DatasetNotInProjectFilter) >; /** * Sort */ sort?: | ({ name: 'name'; } & DatasetNameSort) | ({ name: 'created_at'; } & DatasetCreatedAtSort) | ({ name: 'updated_at'; } & DatasetUpdatedAtSort) | ({ name: 'project_last_used_at'; } & DatasetProjectLastUsedAtSort) | ({ name: 'project_count'; } & DatasetProjectsSort) | ({ name: 'num_rows'; } & DatasetRowsSort) | ({ name: 'last_edited_by_user_at'; } & DatasetLastEditedByUserAtSort) | null; }; /** * ListDatasetProjectsResponse */ export type ListDatasetProjectsResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Projects */ projects?: Array; }; /** * ListDatasetResponse */ export type ListDatasetResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Datasets */ datasets?: Array; }; /** * ListDatasetVersionParams */ export type ListDatasetVersionParams = { /** * Sort */ sort?: | ({ name: 'version_index'; } & DatasetVersionIndexSort) | null; }; /** * ListDatasetVersionResponse */ export type ListDatasetVersionResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Versions */ versions: Array; }; /** * ListExperimentResponse */ export type ListExperimentResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Experiments */ experiments?: Array; }; /** * ListGroupCollaboratorsResponse */ export type ListGroupCollaboratorsResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Collaborators */ collaborators: Array; }; /** * ListLogStreamResponse */ export type ListLogStreamResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Log Streams */ log_streams: Array; }; /** * ListPromptDatasetResponse */ export type ListPromptDatasetResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Datasets */ datasets?: Array; }; /** * ListPromptTemplateParams */ export type ListPromptTemplateParams = { /** * Filters */ filters?: Array< | ({ name: 'name'; } & PromptTemplateNameFilter) | ({ name: 'creator'; } & PromptTemplateCreatedByFilter) | ({ name: 'used_in_project'; } & PromptTemplateUsedInProjectFilter) | ({ name: 'not_in_project'; } & PromptTemplateNotInProjectFilter) >; /** * Sort */ sort?: | ({ name: 'name'; } & PromptTemplateNameSort) | ({ name: 'created_at'; } & PromptTemplateCreatedAtSort) | ({ name: 'updated_at'; } & PromptTemplateUpdatedAtSort) | null; }; /** * ListPromptTemplateResponse */ export type ListPromptTemplateResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Templates */ templates?: Array; }; /** * ListPromptTemplateVersionParams */ export type ListPromptTemplateVersionParams = { /** * Sort */ sort?: | ({ name: 'version'; } & PromptTemplateVersionNumberSort) | ({ name: 'created_at'; } & PromptTemplateVersionCreatedAtSort) | ({ name: 'updated_at'; } & PromptTemplateVersionUpdatedAtSort) | null; }; /** * ListPromptTemplateVersionResponse */ export type ListPromptTemplateVersionResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Versions */ versions?: Array; }; /** * ListScorerVersionsResponse */ export type ListScorerVersionsResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Versions */ versions?: Array; }; /** * ListScorersRequest */ export type ListScorersRequest = { /** * Filters */ filters?: Array< | ({ name: 'name'; } & ScorerNameFilter) | ({ name: 'scorer_type'; } & ScorerTypeFilter) | ({ name: 'model_type'; } & ScorerModelTypeFilter) | ({ name: 'exclude_slm_scorers'; } & ScorerExcludeSlmScorersFilter) | ({ name: 'exclude_multimodal_scorers'; } & ScorerExcludeMultimodalScorersFilter) | ({ name: 'tags'; } & ScorerTagsFilter) | ({ name: 'creator'; } & ScorerCreatorFilter) | ({ name: 'created_at'; } & ScorerCreatedAtFilter) | ({ name: 'updated_at'; } & ScorerUpdatedAtFilter) | ({ name: 'label'; } & ScorerLabelFilter) | ({ name: 'scoreable_node_types'; } & ScorerScoreableNodeTypesFilter) | ({ name: 'id'; } & ScorerIdFilter) >; /** * Sort */ sort?: | ({ name: 'name'; } & ScorerNameSort) | ({ name: 'enabled_in_run'; } & ScorerEnabledInRunSort) | ({ name: 'enabled_in_playground'; } & ScorerEnabledInPlaygroundSort) | null; }; /** * ListScorersResponse */ export type ListScorersResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Scorers */ scorers?: Array; }; /** * ListUserCollaboratorsResponse */ export type ListUserCollaboratorsResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Collaborators */ collaborators: Array; }; /** * LlmMetrics */ export type LlmMetrics = { /** * Duration Ns * * Duration of the trace or span in nanoseconds. Displayed as 'Latency' in Galileo. */ duration_ns?: number | null; /** * Num Input Tokens * * Number of input tokens. */ num_input_tokens?: number | null; /** * Num Output Tokens * * Number of output tokens. */ num_output_tokens?: number | null; /** * Num Total Tokens * * Total number of tokens. */ num_total_tokens?: number | null; /** * Time To First Token Ns * * Time until the first token was generated in nanoseconds. */ time_to_first_token_ns?: number | null; [key: string]: | unknown | number | null | number | null | number | null | number | null | number | null | undefined; }; /** * LlmSpan */ export type LlmSpan = { /** * Type * * Type of the trace, span or session. */ type?: 'llm'; /** * Input * * Input to the trace or span. */ input?: Array; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: Array | null; /** * Output of the trace or span. */ output?: GalileoCoreSchemasLoggingLlmMessage; /** * Redacted output of the trace or span. */ redacted_output?: GalileoCoreSchemasLoggingLlmMessage | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: LlmMetrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Tools * * List of available tools passed to the LLM on invocation. */ tools?: Array<{ [key: string]: unknown; }> | null; /** * Events * * List of reasoning, internal tool call, or MCP events that occurred during the LLM span. */ events?: Array< | ({ type: 'message'; } & MessageEvent) | ({ type: 'reasoning'; } & ReasoningEvent) | ({ type: 'internal_tool_call'; } & InternalToolCall) | ({ type: 'web_search_call'; } & WebSearchCallEvent) | ({ type: 'image_generation'; } & ImageGenerationEvent) | ({ type: 'mcp_call'; } & McpCallEvent) | ({ type: 'mcp_list_tools'; } & McpListToolsEvent) | ({ type: 'mcp_approval_request'; } & McpApprovalRequestEvent) > | null; /** * Model * * Model used for this span. */ model?: string | null; /** * Temperature * * Temperature used for generation. */ temperature?: number | null; /** * Finish Reason * * Reason for finishing. */ finish_reason?: string | null; }; /** * LogRecordsAvailableColumnsRequest */ export type LogRecordsAvailableColumnsRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Start Time */ start_time?: string | null; /** * End Time */ end_time?: string | null; }; /** * LogRecordsAvailableColumnsResponse */ export type LogRecordsAvailableColumnsResponse = { /** * Columns */ columns?: Array; }; /** * LogRecordsBooleanFilter */ export type LogRecordsBooleanFilter = { /** * Column Id * * ID of the column to filter. */ column_id: string; /** * Operator */ operator?: 'eq' | 'ne'; /** * Value */ value: boolean; /** * Type */ type?: 'boolean'; }; /** * LogRecordsCollectionFilter */ export type LogRecordsCollectionFilter = { /** * Column Id * * ID of the column to filter. */ column_id: string; /** * Operator */ operator: 'eq' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; /** * Type */ type?: 'collection'; }; /** * LogRecordsColumnInfo */ export type LogRecordsColumnInfo = { /** * Id * * Column id. Must be universally unique. */ id: string; /** * Label * * Display label of the column in the UI. */ label?: string | null; /** * Category of the column. */ category: ColumnCategory; /** * Description * * Description of the column. */ description?: string | null; /** * Group Label * * Display label of the column group. */ group_label?: string | null; /** * Data type of the column. This is used to determine how to format the data on the UI. */ data_type: DataType | null; /** * Data unit of the column (optional). */ data_unit?: DataUnit | null; /** * Multi Valued * * Whether the column is multi-valued. */ multi_valued?: boolean; /** * Allowed Values * * Allowed values for this column. */ allowed_values?: Array | null; /** * Sortable * * Whether the column is sortable. */ sortable?: boolean; /** * Filterable * * Whether the column is filterable. */ filterable?: boolean; /** * Is Empty * * Indicates whether the column is empty and should be hidden. */ is_empty?: boolean; /** * Applicable Types * * List of types applicable for this column. */ applicable_types?: Array; /** * Complex * * Whether the column requires special handling in the UI. Setting this to True will hide the column in the UI until the UI adds support for it. */ complex?: boolean; /** * Is Optional * * Whether the column is optional. */ is_optional?: boolean; /** * Roll Up Method * * Default roll-up aggregation method for this metric (e.g., 'sum', 'average'). */ roll_up_method?: string | null; /** * For metric columns only: Scorer config that produced the metric. */ scorer_config?: ScorerConfig | null; /** * Scorer Id * * For metric columns only: Scorer id that produced the metric. This is deprecated and will be removed in future versions. */ scorer_id?: string | null; /** * Insight type. */ insight_type?: InsightType | null; /** * Filter type. */ filter_type?: LogRecordsFilterType | null; /** * Thresholds for the column, if this is a metrics column. */ threshold?: MetricThreshold | null; /** * Label Color * * Type of label color for the column, if this is a multilabel metric column. */ label_color?: 'positive' | 'negative' | null; /** * Metric Key Alias * * Alternate metric key for this column. When store_metric_ids is ON, this holds the legacy metric_name string. Used for dual-key ClickHouse queries. */ metric_key_alias?: string | null; }; /** * LogRecordsCustomMetricsQueryRequest */ export type LogRecordsCustomMetricsQueryRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filter expression tree for complex filtering */ filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; /** * Start Time * * Include traces from this time onward. */ start_time: string; /** * End Time * * Include traces up to this time. */ end_time: string; /** * Interval Minutes * * Time interval in minutes for bucketing */ interval_minutes?: number; /** * Metric Details * * List of metrics to aggregate with their widget IDs and aggregation types (max 100) */ metric_details: Array; /** * Group By * * Column to group by */ group_by?: string | null; }; /** * LogRecordsDateFilter */ export type LogRecordsDateFilter = { /** * Column Id * * ID of the column to filter. */ column_id: string; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; /** * Type */ type?: 'date'; }; /** * LogRecordsDeleteRequest */ export type LogRecordsDeleteRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; }; /** * LogRecordsDeleteResponse */ export type LogRecordsDeleteResponse = { /** * Message * * Message */ message: string; }; /** * LogRecordsExportRequest * * Request schema for exporting log records (sessions, traces, spans). */ export type LogRecordsExportRequest = { /** * Column Ids * * Column IDs to include in the export. Applies only to CSV exports. */ column_ids?: Array | null; /** * Export format */ export_format?: LlmExportFormat; /** * Redact * * Redact sensitive data */ redact?: boolean; /** * File Name * * Optional filename for the exported file */ file_name?: string | null; /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters * * Filters to apply on the export */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; /** * Sort clause for the export. Defaults to native sort (created_at, id descending). */ sort?: LogRecordsSortClause | null; root_type: RootType; }; /** * LogRecordsFilterType */ export const LogRecordsFilterType = { ID: 'id', DATE: 'date', NUMBER: 'number', BOOLEAN: 'boolean', TEXT: 'text', COLLECTION: 'collection', FULLY_ANNOTATED: 'fully_annotated' } as const; /** * LogRecordsFilterType */ export type LogRecordsFilterType = (typeof LogRecordsFilterType)[keyof typeof LogRecordsFilterType]; /** * LogRecordsFullyAnnotatedFilter * * Queue-scoped filter for records rated across all queue templates. */ export type LogRecordsFullyAnnotatedFilter = { /** * Column Id * * Queue-scoped filter identifier. This filter only works for annotation-queue searches that provide queue context. */ column_id?: 'fully_annotated'; /** * Type */ type?: 'fully_annotated'; /** * User Ids * * Optional queue member IDs to require for full annotation in a queue-scoped search. If omitted, all tracked queue members visible to the requester are used. */ user_ids?: Array | null; }; /** * LogRecordsIDFilter */ export type LogRecordsIdFilter = { /** * Column Id * * ID of the column to filter. */ column_id: string; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; /** * Type */ type?: 'id'; }; /** * LogRecordsMetricsQueryRequest */ export type LogRecordsMetricsQueryRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; /** * Start Time * * Include traces from this time onward. */ start_time: string; /** * End Time * * Include traces up to this time. */ end_time: string; /** * Interval */ interval?: number; /** * Group By */ group_by?: string | null; }; /** * LogRecordsMetricsResponse */ export type LogRecordsMetricsResponse = { /** * Group By Columns */ group_by_columns: Array; /** * Aggregate Metrics */ aggregate_metrics: { [key: string]: | number | number | { [key: string]: number; }; }; /** * Bucketed Metrics */ bucketed_metrics: { [key: string]: Array; }; /** * Ems Captured Error * * Whether any EMS error codes were encountered in the queried metrics */ ems_captured_error?: boolean; /** * Standard Errors * * Structured EMS errors for each error code encountered, keyed by code */ standard_errors?: { [key: string]: StandardError; } | null; }; /** * LogRecordsNumberFilter */ export type LogRecordsNumberFilter = { /** * Column Id * * ID of the column to filter. */ column_id: string; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'between'; /** * Value */ value: number | number | Array | Array; /** * Type */ type?: 'number'; }; /** * LogRecordsPartialQueryRequest * * Request to query a genai project run (log stream or experiment) with partial results. */ export type LogRecordsPartialQueryRequest = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Previous Last Row Id */ previous_last_row_id?: string | null; /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; /** * Sort for the query. Defaults to native sort (created_at, id descending). */ sort?: LogRecordsSortClause | null; /** * Truncate Fields */ truncate_fields?: boolean; /** * Include Counts * * If True, include computed child counts (e.g., num_traces for sessions, num_spans for traces). */ include_counts?: boolean; select_columns: SelectColumns; }; /** * LogRecordsPartialQueryResponse */ export type LogRecordsPartialQueryResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Last Row Id */ last_row_id?: string | null; /** * Records * * records matching the query */ records?: Array< | ({ type: 'trace'; } & PartialExtendedTraceRecord) | ({ type: 'agent'; } & PartialExtendedAgentSpanRecord) | ({ type: 'workflow'; } & PartialExtendedWorkflowSpanRecord) | ({ type: 'llm'; } & PartialExtendedLlmSpanRecord) | ({ type: 'tool'; } & PartialExtendedToolSpanRecord) | ({ type: 'retriever'; } & PartialExtendedRetrieverSpanRecord) | ({ type: 'control'; } & PartialExtendedControlSpanRecord) | ({ type: 'session'; } & PartialExtendedSessionRecord) >; }; /** * LogRecordsQueryCountRequest */ export type LogRecordsQueryCountRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; }; /** * LogRecordsQueryCountResponse */ export type LogRecordsQueryCountResponse = { /** * Total Count * * Total number of records matching the query */ total_count: number; }; /** * LogRecordsQueryRequest */ export type LogRecordsQueryRequest = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Previous Last Row Id */ previous_last_row_id?: string | null; /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; /** * Sort for the query. Defaults to native sort (created_at, id descending). */ sort?: LogRecordsSortClause | null; /** * Truncate Fields */ truncate_fields?: boolean; /** * Include Counts * * If True, include computed child counts (e.g., num_traces for sessions, num_spans for traces). */ include_counts?: boolean; }; /** * LogRecordsQueryResponse */ export type LogRecordsQueryResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Last Row Id */ last_row_id?: string | null; /** * Records * * records matching the query */ records?: Array< | ({ type: 'trace'; } & ExtendedTraceRecord) | ({ type: 'agent'; } & ExtendedAgentSpanRecord) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecord) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecord) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecord) | ({ type: 'control'; } & ExtendedControlSpanRecord) | ({ type: 'session'; } & ExtendedSessionRecord) >; }; /** * LogRecordsSortClause */ export type LogRecordsSortClause = { /** * Column Id * * ID of the column to sort. */ column_id: string; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * LogRecordsTextFilter */ export type LogRecordsTextFilter = { /** * Column Id * * ID of the column to filter. */ column_id: string; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; /** * Type */ type?: 'text'; }; /** * LogSpanUpdateRequest * * Request model for updating a span. */ export type LogSpanUpdateRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; logging_method?: LoggingMethod; /** * Client Version */ client_version?: string | null; /** * Reliable * * Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be successfully ingested or return an error message if there is an ingestion failure. */ reliable?: boolean; /** * Span Id * * Span id to update. */ span_id: string; /** * Input * * Input of the span. Overwrites previous value if present. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the span. Overwrites previous value if present. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Tags * * Tags to add to the span. */ tags?: Array | null; /** * Status Code * * Status code of the span. Overwrites previous value if present. */ status_code?: number | null; /** * Duration Ns * * Duration in nanoseconds. Overwrites previous value if present. */ duration_ns?: number | null; }; /** * LogSpanUpdateResponse */ export type LogSpanUpdateResponse = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Project Id * * Project id associated with the traces. */ project_id: string; /** * Project Name * * Project name associated with the traces. */ project_name: string; /** * Session Id * * Session id associated with the traces. */ session_id?: string | null; /** * Records Count * * Total number of records ingested */ records_count: number; /** * Span Id * * Span id associated with the updated span. */ span_id: string; }; /** * LogSpansIngestRequest * * Request model for ingesting spans. */ export type LogSpansIngestRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; logging_method?: LoggingMethod; /** * Client Version */ client_version?: string | null; /** * Reliable * * Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be successfully ingested or return an error message if there is an ingestion failure. */ reliable?: boolean; /** * Spans * * List of spans to log. */ spans: Array< | ({ type: 'agent'; } & AgentSpan) | ({ type: 'workflow'; } & WorkflowSpan) | ({ type: 'llm'; } & LlmSpan) | ({ type: 'retriever'; } & RetrieverSpan) | ({ type: 'tool'; } & ToolSpan) | ({ type: 'control'; } & ControlSpan) >; /** * Trace Id * * Trace id associated with the spans. */ trace_id: string; /** * Parent Id * * Parent trace or span id. */ parent_id: string; }; /** * LogSpansIngestResponse */ export type LogSpansIngestResponse = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Project Id * * Project id associated with the traces. */ project_id: string; /** * Project Name * * Project name associated with the traces. */ project_name: string; /** * Session Id * * Session id associated with the traces. */ session_id?: string | null; /** * Records Count * * Total number of records ingested */ records_count: number; /** * Trace Id * * Trace id associated with the spans. */ trace_id: string; /** * Parent Id * * Parent trace or span id. */ parent_id: string; }; /** * LogStreamCreateRequest */ export type LogStreamCreateRequest = { /** * Name */ name: string; }; /** * RunCreatedAtFilter */ export type LogStreamCreatedAtFilter = { /** * Name */ name?: 'created_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * RunCreatedAtSort */ export type LogStreamCreatedAtSort = { /** * Name */ name?: 'created_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * RunCreatedByFilter */ export type LogStreamCreatedByFilter = { /** * Name */ name?: 'created_by'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * RunIDFilter */ export type LogStreamIdFilter = { /** * Name */ name?: 'id'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * LogStreamInfo * * Minimal log stream representation (id and name only). */ export type LogStreamInfo = { /** * Id */ id: string; /** * Name */ name: string; }; /** * RunNameFilter */ export type LogStreamNameFilter = { /** * Name */ name?: 'name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * RunNameSort */ export type LogStreamNameSort = { /** * Name */ name?: 'name'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * LogStreamResponse */ export type LogStreamResponse = { /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Name */ name: string; /** * Project Id */ project_id: string; /** * Created By */ created_by?: string | null; created_by_user?: UserInfo | null; /** * Num Spans */ num_spans?: number | null; /** * Num Traces */ num_traces?: number | null; /** * Has User Created Sessions */ has_user_created_sessions?: boolean; }; /** * LogStreamSearchRequest */ export type LogStreamSearchRequest = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Filters */ filters?: Array< | ({ name: 'id'; } & LogStreamIdFilter) | ({ name: 'name'; } & LogStreamNameFilter) | ({ name: 'created_by'; } & LogStreamCreatedByFilter) | ({ name: 'created_at'; } & LogStreamCreatedAtFilter) | ({ name: 'updated_at'; } & LogStreamUpdatedAtFilter) >; /** * Sort */ sort?: | ({ name: 'name'; } & LogStreamNameSort) | ({ name: 'created_at'; } & LogStreamCreatedAtSort) | ({ name: 'updated_at'; } & LogStreamUpdatedAtSort) | null; /** * Include Counts */ include_counts?: boolean; }; /** * LogStreamUpdateRequest */ export type LogStreamUpdateRequest = { /** * Name */ name: string; }; /** * RunUpdatedAtFilter */ export type LogStreamUpdatedAtFilter = { /** * Name */ name?: 'updated_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * RunUpdatedAtSort */ export type LogStreamUpdatedAtSort = { /** * Name */ name?: 'updated_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * LogTraceUpdateRequest * * Request model for updating a trace. */ export type LogTraceUpdateRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; logging_method?: LoggingMethod; /** * Client Version */ client_version?: string | null; /** * Reliable * * Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be successfully ingested or return an error message if there is an ingestion failure. */ reliable?: boolean; /** * Trace Id * * Trace id to update. */ trace_id: string; /** * Input * * Input of the trace. Overwrites previous value if present. */ input?: string | null; /** * Output * * Output of the trace. Overwrites previous value if present. */ output?: string | null; /** * Status Code * * Status code of the trace. Overwrites previous value if present. */ status_code?: number | null; /** * Tags * * Tags to add to the trace. */ tags?: Array | null; /** * Is Complete * * Whether or not the records in this request are complete. */ is_complete?: boolean | null; /** * Duration Ns * * Duration in nanoseconds. Overwrites previous value if present. */ duration_ns?: number | null; }; /** * LogTraceUpdateResponse */ export type LogTraceUpdateResponse = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Project Id * * Project id associated with the traces. */ project_id: string; /** * Project Name * * Project name associated with the traces. */ project_name: string; /** * Session Id * * Session id associated with the traces. */ session_id?: string | null; /** * Records Count * * Total number of records ingested */ records_count: number; /** * Trace Id * * Trace id associated with the updated trace. */ trace_id: string; }; /** * LogTracesIngestRequest * * Request model for ingesting traces. */ export type LogTracesIngestRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; logging_method?: LoggingMethod; /** * Client Version */ client_version?: string | null; /** * Reliable * * Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be successfully ingested or return an error message if there is an ingestion failure. */ reliable?: boolean; /** * Session Id * * Session id associated with the traces. */ session_id?: string | null; /** * Session External Id * * External id of the session (e.g., OTEL session.id from span attributes). */ session_external_id?: string | null; /** * Traces * * List of traces to log. */ traces: Array; /** * Is Complete * * Whether or not the records in this request are complete. */ is_complete?: boolean; /** * Include Trace Ids * * If True, include the list of ingested trace IDs in the response. */ include_trace_ids?: boolean; }; /** * LogTracesIngestResponse */ export type LogTracesIngestResponse = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Project Id * * Project id associated with the traces. */ project_id: string; /** * Project Name * * Project name associated with the traces. */ project_name: string; /** * Session Id * * Session id associated with the traces. */ session_id?: string | null; /** * Records Count * * Total number of records ingested */ records_count: number; /** * Traces Count * * total number of traces ingested */ traces_count: number; /** * Trace Ids * * List of trace IDs that were ingested. Only included if include_trace_ids=True in request. */ trace_ids?: Array | null; }; /** * LoggingMethod */ export const LoggingMethod = { PLAYGROUND: 'playground', PYTHON_CLIENT: 'python_client', TYPESCRIPT_CLIENT: 'typescript_client', API_DIRECT: 'api_direct' } as const; /** * LoggingMethod */ export type LoggingMethod = (typeof LoggingMethod)[keyof typeof LoggingMethod]; /** * LunaInputTypeEnum */ export const LunaInputTypeEnum = { SPAN: 'span', TRACE_OBJECT: 'trace_object', TRACE_INPUT_OUTPUT_ONLY: 'trace_input_output_only' } as const; /** * LunaInputTypeEnum */ export type LunaInputTypeEnum = (typeof LunaInputTypeEnum)[keyof typeof LunaInputTypeEnum]; /** * LunaOutputTypeEnum */ export const LunaOutputTypeEnum = { FLOAT: 'float', STRING: 'string', STRING_LIST: 'string_list', BOOL_LIST: 'bool_list' } as const; /** * LunaOutputTypeEnum */ export type LunaOutputTypeEnum = (typeof LunaOutputTypeEnum)[keyof typeof LunaOutputTypeEnum]; /** * MCPApprovalRequestEvent * * MCP approval request - when human approval is needed for an MCP tool call. */ export type McpApprovalRequestEvent = { /** * Type */ type?: 'mcp_approval_request'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Tool Name * * Name of the MCP tool requiring approval */ tool_name?: string | null; /** * Tool Invocation * * Details of the tool invocation requiring approval */ tool_invocation?: { [key: string]: unknown; } | null; /** * Approved * * Whether the request was approved */ approved?: boolean | null; }; /** * MCPCallEvent * * A Model Context Protocol (MCP) tool call. * * MCP is a protocol for connecting LLMs to external tools/data sources. * This is distinct from internal tools because it involves external integrations. */ export type McpCallEvent = { /** * Type */ type?: 'mcp_call'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Tool Name * * Name of the MCP tool being called */ tool_name?: string | null; /** * Server Name * * Name of the MCP server */ server_name?: string | null; /** * Arguments * * Arguments for the MCP tool call */ arguments?: { [key: string]: unknown; } | null; /** * Result * * Result from the MCP tool call */ result?: { [key: string]: unknown; } | null; }; /** * MCPListToolsEvent * * MCP list tools event - when the model queries available MCP tools. */ export type McpListToolsEvent = { /** * Type */ type?: 'mcp_list_tools'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Server Name * * Name of the MCP server */ server_name?: string | null; /** * Tools * * List of available MCP tools */ tools?: Array<{ [key: string]: unknown; }> | null; }; /** * MessageEvent * * An output message from the model. */ export type MessageEvent = { /** * Type */ type?: 'message'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Role of the message sender */ role: GalileoCoreSchemasLoggingLlmMessageRole; /** * Content * * Text content of the message */ content?: string | null; /** * Content Parts * * Structured content items (text, audio, images, etc.) */ content_parts?: Array<{ [key: string]: unknown; }> | null; }; /** * Messages */ export type Messages = Array; /** * MetadataFilter * * Filters on metadata key-value pairs in scorer jobs. */ export type MetadataFilter = { /** * Name */ name?: 'metadata'; /** * Operator */ operator: 'one_of' | 'not_in' | 'eq' | 'ne'; /** * Key */ key: string; /** * Value */ value: string | Array; }; /** * MetricAggregates * * Structured aggregate values for a single metric, computed from ClickHouse row-level data. */ export type MetricAggregates = { /** * Avg */ avg?: number | null; /** * Sum */ sum?: number | null; /** * Min */ min?: number | null; /** * Max */ max?: number | null; /** * Count */ count?: number | null; /** * Pct */ pct?: number | null; /** * P50 */ p50?: number | null; /** * P90 */ p90?: number | null; /** * P95 */ p95?: number | null; /** * P99 */ p99?: number | null; /** * Value Distribution * * Distribution of discrete values as {value: count}. For boolean metrics: {'0': 2, '1': 8}. For categorical metrics: {'low': 5, 'medium': 3, 'high': 2}. */ value_distribution?: { [key: string]: number; } | null; }; /** * MetricAggregation */ export const MetricAggregation = { COUNT: 'Count', SUM: 'Sum', AVERAGE: 'Average', MIN: 'Min', MAX: 'Max', P50: 'P50', P90: 'P90', P95: 'P95', P99: 'P99', PERCENTAGE_FALSE: 'PercentageFalse', PERCENTAGE_TRUE: 'PercentageTrue' } as const; /** * MetricAggregation */ export type MetricAggregation = (typeof MetricAggregation)[keyof typeof MetricAggregation]; /** * MetricAggregationDetail */ export type MetricAggregationDetail = { /** * Id * * Identifier for the metric in the response (e.g., 'w1', 'w2') */ id: string; /** * Metric Name * * Name of the metric to aggregate */ metric_name: string; /** * Aggregation type to apply */ aggregation: MetricAggregation; }; /** * MetricColor * * Allowed colors for metric threshold visualization in the UI. */ export const MetricColor = { RED: 'red', YELLOW: 'yellow', GREEN: 'green' } as const; /** * MetricColor * * Allowed colors for metric threshold visualization in the UI. */ export type MetricColor = (typeof MetricColor)[keyof typeof MetricColor]; /** * MetricColorPickerBoolean * * Color picker configuration for boolean metrics. * * Each constraint maps a boolean value to a color. * * Example: * { * "type": "boolean", * "constraints": [ * {"color": "green", "operator": "eq", "value": true}, * {"color": "red", "operator": "eq", "value": false} * ] * } */ export type MetricColorPickerBoolean = { /** * Type */ type?: 'boolean'; /** * Constraints */ constraints: Array; }; /** * MetricColorPickerCategorical * * Color picker configuration for categorical metrics. * * Each constraint maps one or more category values to a color. A category * value must not appear in more than one constraint. * * Example: * { * "type": "categorical", * "constraints": [ * {"color": "green", "operator": "eq", "value": "pass"}, * {"color": "red", "operator": "one_of", "value": ["fail", "error"]} * ] * } */ export type MetricColorPickerCategorical = { /** * Type */ type?: 'categorical'; /** * Constraints */ constraints: Array; }; /** * MetricColorPickerMultiLabel * * Color picker configuration for multi-label metrics. * * Behaves the same as categorical but intended for metrics that produce * multiple labels. A category value must not appear in more than one constraint. * * Example: * { * "type": "multi_label", * "constraints": [ * {"color": "green", "operator": "eq", "value": "relevant"}, * {"color": "yellow", "operator": "one_of", "value": ["partial", "related"]} * ] * } */ export type MetricColorPickerMultiLabel = { /** * Type */ type?: 'multi_label'; /** * Constraints */ constraints: Array; }; /** * MetricColorPickerNumeric * * Color picker configuration for numeric metrics. * * Each constraint maps a numeric condition to a color. The UI uses these * constraints to color-code metric values (e.g. green for high scores, * red for low scores). * * Example: * { * "type": "numeric", * "constraints": [ * {"color": "green", "operator": "gte", "value": 0.8}, * {"color": "yellow", "operator": "between", "value": [0.3, 0.8]}, * {"color": "red", "operator": "lt", "value": 0.3} * ] * } */ export type MetricColorPickerNumeric = { /** * Type */ type?: 'numeric'; /** * Constraints */ constraints: Array; }; /** * MetricComputation */ export type MetricComputation = { /** * Value */ value?: | number | number | string | Array | { [key: string]: number | number | string | null; } | null; /** * Execution Time */ execution_time?: number | null; status?: MetricComputationStatus | null; /** * Error Message */ error_message?: string | null; }; /** * MetricComputationStatus */ export const MetricComputationStatus = { SUCCESS: 'success', TIMEOUT: 'timeout', FAILED: 'failed', ERROR: 'error' } as const; /** * MetricComputationStatus */ export type MetricComputationStatus = (typeof MetricComputationStatus)[keyof typeof MetricComputationStatus]; /** * MetricComputing */ export type MetricComputing = { /** * Status Type */ status_type?: 'computing'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Message */ message?: string; }; /** * MetricCritiqueColumnar */ export type MetricCritiqueColumnar = { /** * Id */ id: string; /** * Is Computed */ is_computed: boolean; /** * Revised Explanation */ revised_explanation: string | null; critique_info: MetricCritiqueContent; }; /** * MetricCritiqueContent */ export type MetricCritiqueContent = { /** * Critique */ critique: string; /** * Intended Value */ intended_value: boolean; /** * Original Explanation */ original_explanation: string; }; /** * MetricCritiqueJobConfiguration * * Info necessary to execute a metric critique job. */ export type MetricCritiqueJobConfiguration = { /** * Project Type */ project_type: 'prompt_evaluation' | 'llm_monitor' | 'gen_ai'; /** * Metric Name */ metric_name: string; /** * Scorer Id */ scorer_id?: string | null; /** * Critique Ids */ critique_ids: Array; /** * Recompute Settings */ recompute_settings?: | ({ mode: 'runs'; } & RecomputeSettingsRuns) | ({ mode: 'project'; } & RecomputeSettingsProject) | ({ mode: 'observe_filters'; } & RecomputeSettingsObserve) | ({ mode: 'log_stream_filters'; } & RecomputeSettingsLogStream) | null; }; /** * MetricError */ export type MetricError = { /** * Status Type */ status_type?: 'error'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Message */ message?: string | null; /** * Ems Error Code * * EMS error code from errors.yaml catalog for this metric error */ ems_error_code?: number | null; /** * Structured EMS error resolved on-the-fly from errors.yaml catalog */ standard_error?: StandardError | null; }; /** * MetricFailed */ export type MetricFailed = { /** * Status Type */ status_type?: 'failed'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Message */ message?: string | null; /** * Ems Error Code * * EMS error code from errors.yaml catalog for this metric failure */ ems_error_code?: number | null; /** * Structured EMS error resolved on-the-fly from errors.yaml catalog */ standard_error?: StandardError | null; }; /** * MetricNotApplicable */ export type MetricNotApplicable = { /** * Status Type */ status_type?: 'not_applicable'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Message */ message?: string; /** * Ems Error Code * * EMS error code from errors.yaml catalog for this not-applicable reason */ ems_error_code?: number | null; /** * Structured EMS error resolved on-the-fly from errors.yaml catalog */ standard_error?: StandardError | null; }; /** * MetricNotComputed */ export type MetricNotComputed = { /** * Status Type */ status_type?: 'not_computed'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Message */ message?: string; }; /** * MetricPending */ export type MetricPending = { /** * Status Type */ status_type?: 'pending'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; }; /** * MetricRollUp */ export type MetricRollUp = { /** * Status Type */ status_type?: 'roll_up'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Value */ value: | string | number | number | boolean | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | Array< | string | number | number | boolean | string | string | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | null > | Array< Array< | string | number | number | boolean | string | string | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | null > > | Array< Array< Array< | string | number | number | boolean | string | string | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | null > > > | null; /** * Explanation */ explanation?: string | null; /** * Cost */ cost?: number | null; /** * Model Alias */ model_alias?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Input Tokens */ input_tokens?: number | null; /** * Output Tokens */ output_tokens?: number | null; /** * Total Tokens */ total_tokens?: number | null; critique?: MetricCritiqueColumnar | null; /** * Roll Up Metrics * * Roll up metrics e.g. sum, average, min, max for numeric, and category_count for categorical metrics. */ roll_up_metrics?: { [key: string]: | number | { [key: string]: number; }; }; }; /** * MetricSettingsRequest */ export type MetricSettingsRequest = { /** * Scorers * * List of Galileo scorers to enable. */ scorers?: Array | null; /** * Segment Filters * * List of segment filters to apply to the run. */ segment_filters?: Array | null; }; /** * MetricSettingsResponse */ export type MetricSettingsResponse = { /** * Scorers */ scorers: Array; /** * Segment Filters * * List of segment filters to apply to the run. */ segment_filters?: Array | null; }; /** * MetricSuccess */ export type MetricSuccess = { /** * Status Type */ status_type?: 'success'; scorer_type?: ScorerType | null; /** * Metric Key Alias */ metric_key_alias?: string | null; /** * Value */ value: | string | number | number | boolean | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | Array< | string | number | number | boolean | string | string | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | null > | Array< Array< | string | number | number | boolean | string | string | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | null > > | Array< Array< Array< | string | number | number | boolean | string | string | Segment | HallucinationSegment | Document | FeedbackRatingDb | FeedbackAggregate | null > > > | null; /** * Explanation */ explanation?: string | null; /** * Cost */ cost?: number | null; /** * Model Alias */ model_alias?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Input Tokens */ input_tokens?: number | null; /** * Output Tokens */ output_tokens?: number | null; /** * Total Tokens */ total_tokens?: number | null; critique?: MetricCritiqueColumnar | null; /** * Display Value */ display_value?: string | null; /** * Rationale */ rationale?: string | null; }; /** * MetricThreshold * * Threshold configuration for metrics. * * Defines how metric values are bucketed and displayed, including whether * lower or higher values are considered better. */ export type MetricThreshold = { /** * Inverted * * Whether the column should be inverted for thresholds, i.e. if True, lower is better. */ inverted?: boolean; /** * Buckets * * Threshold buckets for the column. If the column is a metric, these are the thresholds for the column. */ buckets?: Array; /** * Display Value Levels * * Ordered list of strings that raw values get transformed to for displaying. */ display_value_levels?: Array; }; /** * Metrics */ export type Metrics = { /** * Duration Ns * * Duration of the trace or span in nanoseconds. Displayed as 'Latency' in Galileo. */ duration_ns?: number | null; [key: string]: unknown | number | null | undefined; }; /** * MetricsTestingAvailableColumnsRequest * * Request to get the available columns for the metrics testing table. */ export type MetricsTestingAvailableColumnsRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Name * * Name of the metric that we are testing. */ name: string; /** * Output type of the metrics testing table. If not provided, all columns are returned. */ output_type?: OutputTypeEnum; /** * Cot Enabled * * Whether the metrics testing table is using chain of thought (CoT) enabled scorers. If True, the columns will be generated for CoT enabled scorers. */ cot_enabled?: boolean; /** * Metric Key * * The metric key to use for column generation (e.g., 'generated_scorer_validation' or 'registered_scorer_validation'). */ metric_key?: string; /** * Required Scorers * * List of required scorer names for composite scorers. Columns will be generated for these scorers. */ required_scorers?: Array | null; /** * Score Type * * The score type for registered scorers (e.g., 'bool', 'int', 'float', 'str'). Used to determine the correct data_type for the column. Provided by validation result. */ score_type?: string | null; }; /** * MistralIntegration */ export type MistralIntegration = { /** * Id */ id?: string | null; /** * Name */ name?: 'mistral'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * MistralIntegrationCreate */ export type MistralIntegrationCreate = { /** * Token */ token: string; }; /** * ModalityFilter * * Filters on content modalities in scorer jobs. * Matches if at least one of the specified modalities is present. */ export type ModalityFilter = { /** * Name */ name?: 'modality'; /** * Operator */ operator: 'eq' | 'ne' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; }; /** * Model */ export type Model = { /** * Name */ name: string; /** * Alias */ alias: string; integration?: LlmIntegration; /** * User Role */ user_role?: string | null; /** * Assistant Role */ assistant_role?: string | null; /** * System Supported */ system_supported?: boolean; /** * Input Modalities * * Input modalities that the model can accept. */ input_modalities?: Array; /** * Alternative Names * * Alternative names for the model, used for matching with various current, versioned or legacy names. */ alternative_names?: Array; /** * Input Token Limit */ input_token_limit?: number | null; /** * Output Token Limit */ output_token_limit?: number | null; /** * Token Limit */ token_limit?: number | null; /** * Output Price */ output_price?: number; /** * Input Price */ input_price?: number; cost_by?: ModelCostBy; /** * Is Chat */ is_chat?: boolean; /** * Provides Log Probs */ provides_log_probs?: boolean; /** * Formatting Tokens */ formatting_tokens?: number; /** * Response Prefix Tokens */ response_prefix_tokens?: number; /** * Api Version */ api_version?: string | null; /** * Legacy Mistral Prompt Format */ legacy_mistral_prompt_format?: boolean; /** * Requires Max Tokens */ requires_max_tokens?: boolean; /** * Max Top P */ max_top_p?: number | null; params_map?: RunParamsMap; output_map?: OutputMap | null; input_map?: InputMap | null; }; /** * ModelCostBy */ export const ModelCostBy = { TOKENS: 'tokens', CHARACTERS: 'characters' } as const; /** * ModelCostBy */ export type ModelCostBy = (typeof ModelCostBy)[keyof typeof ModelCostBy]; /** * ModelType */ export const ModelType = { SLM: 'slm', LLM: 'llm', CODE: 'code' } as const; /** * ModelType */ export type ModelType = (typeof ModelType)[keyof typeof ModelType]; /** * MultiModalModelIntegrationConfig * * Configuration for multi-modal capabilities (file uploads). */ export type MultiModalModelIntegrationConfig = { /** * Max Files * * Maximum number of files allowed per request. None means no limit. */ max_files?: number | null; /** * Max File Size Bytes * * Maximum file size in bytes per file. None means no limit. */ max_file_size_bytes?: number | null; }; /** * MultimodalCapability */ export const MultimodalCapability = { VISION: 'vision', AUDIO: 'audio' } as const; /** * MultimodalCapability */ export type MultimodalCapability = (typeof MultimodalCapability)[keyof typeof MultimodalCapability]; /** * Name * * Global name class for handling unique naming across the application. */ export type Name = { /** * Value */ value: string; /** * Append Suffix If Duplicate */ append_suffix_if_duplicate?: boolean; }; /** * NodeNameFilter * * Filters on node names in scorer jobs. */ export type NodeNameFilter = { /** * Name */ name?: 'node_name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * NodeType */ export const NodeType = { CHAIN: 'chain', CHAT: 'chat', LLM: 'llm', RETRIEVER: 'retriever', TOOL: 'tool', AGENT: 'agent', WORKFLOW: 'workflow', TRACE: 'trace', SESSION: 'session' } as const; /** * NodeType */ export type NodeType = (typeof NodeType)[keyof typeof NodeType]; /** * NotNode[Annotated[Union[LogRecordsIDFilter, LogRecordsDateFilter, LogRecordsNumberFilter, LogRecordsBooleanFilter, LogRecordsCollectionFilter, LogRecordsTextFilter, LogRecordsFullyAnnotatedFilter], FieldInfo(annotation=NoneType, required=True, discriminator='type')]] */ export type NotNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType = { /** * Not */ not: | FilterLeafAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | AndNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | OrNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | NotNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType; }; /** * NumericColorConstraint * * A color constraint for numeric metric values. * * Assigns a color when a numeric score matches the given operator and value. * * Operators and expected value shapes: * - eq, gt, gte, lt, lte: value must be a single float. * - between: value must be a list of exactly 2 floats [low, high] where low < high. * The range is inclusive on both ends. * * Example: * {"color": "green", "operator": "gte", "value": 0.8} * {"color": "yellow", "operator": "between", "value": [0.3, 0.7]} */ export type NumericColorConstraint = { color: MetricColor; /** * Operator */ operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'between'; /** * Value */ value: number | Array; }; /** * NumericRollUpMethod * * Roll up methods for aggregating numeric metrics up the session/trace/span hierarchy. */ export const NumericRollUpMethod = { AVERAGE: 'average', SUM: 'sum', MAX: 'max', MIN: 'min' } as const; /** * NumericRollUpMethod * * Roll up methods for aggregating numeric metrics up the session/trace/span hierarchy. */ export type NumericRollUpMethod = (typeof NumericRollUpMethod)[keyof typeof NumericRollUpMethod]; /** * NvidiaIntegration */ export type NvidiaIntegration = { /** * Id */ id?: string | null; /** * Name */ name?: 'nvidia'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * NvidiaIntegrationCreate */ export type NvidiaIntegrationCreate = { /** * Token */ token: string; /** * Hostname */ hostname: string; }; /** * OpenAIFunction */ export type OpenAiFunction = { /** * Name */ name: string; }; /** * OpenAIIntegration */ export type OpenAiIntegration = { /** * Organization Id */ organization_id?: string | null; /** * Id */ id?: string | null; /** * Name */ name?: 'openai'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * OpenAIIntegrationCreate */ export type OpenAiIntegrationCreate = { /** * Organization Id */ organization_id?: string | null; /** * Token */ token: string; }; /** * OpenAIToolChoice */ export type OpenAiToolChoice = { /** * Type */ type?: string; function: OpenAiFunction; }; /** * OrNode[Annotated[Union[LogRecordsIDFilter, LogRecordsDateFilter, LogRecordsNumberFilter, LogRecordsBooleanFilter, LogRecordsCollectionFilter, LogRecordsTextFilter, LogRecordsFullyAnnotatedFilter], FieldInfo(annotation=NoneType, required=True, discriminator='type')]] */ export type OrNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType = { /** * Or */ or: Array< | FilterLeafAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | AndNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | OrNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | NotNodeAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType >; }; /** * OrganizationAction */ export const OrganizationAction = { RENAME: 'rename', DELETE: 'delete', DELETE_LOG_DATA: 'delete_log_data', READ_SETTINGS: 'read_settings', UPDATE_SETTINGS: 'update_settings' } as const; /** * OrganizationAction */ export type OrganizationAction = (typeof OrganizationAction)[keyof typeof OrganizationAction]; /** * OutputMap */ export type OutputMap = { /** * Response */ response: string; /** * Token Count */ token_count?: string | null; /** * Input Token Count */ input_token_count?: string | null; /** * Output Token Count */ output_token_count?: string | null; /** * Completion Reason */ completion_reason?: string | null; }; /** * OutputPIIScorer */ export type OutputPiiScorer = { /** * Name */ name?: 'output_pii'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * OutputSexistScorer */ export type OutputSexistScorer = { /** * Name */ name?: 'output_sexist'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * OutputToneScorer */ export type OutputToneScorer = { /** * Name */ name?: 'output_tone'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * OutputToxicityScorer */ export type OutputToxicityScorer = { /** * Name */ name?: 'output_toxicity'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * OutputTypeEnum * * Enumeration of output types. */ export const OutputTypeEnum = { BOOLEAN: 'boolean', CATEGORICAL: 'categorical', COUNT: 'count', DISCRETE: 'discrete', FREEFORM: 'freeform', PERCENTAGE: 'percentage', MULTILABEL: 'multilabel', RETRIEVED_CHUNK_LIST_BOOLEAN: 'retrieved_chunk_list_boolean', BOOLEAN_MULTILABEL: 'boolean_multilabel' } as const; /** * OutputTypeEnum * * Enumeration of output types. */ export type OutputTypeEnum = (typeof OutputTypeEnum)[keyof typeof OutputTypeEnum]; /** * OverrideAction */ export type OverrideAction = { /** * Type */ type?: 'OVERRIDE'; /** * Subscriptions * * List of subscriptions to send a notification to when this action is applied and the ruleset status matches any of the configured statuses. */ subscriptions?: Array; /** * Choices * * List of choices to override the response with. If there are multiple choices, one will be chosen at random when applying this action. */ choices: Array; }; /** * PartialExtendedAgentSpanRecord */ export type PartialExtendedAgentSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'agent'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Agent type. */ agent_type?: AgentType; }; /** * PartialExtendedControlSpanRecord */ export type PartialExtendedControlSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'control'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output of the trace or span. */ output?: ControlResult | null; /** * Redacted output of the trace or span. */ redacted_output?: ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Control Id * * Identifier of the control definition that produced this span. */ control_id?: number | null; /** * Agent Name * * Normalized agent name associated with this control execution. */ agent_name?: string | null; /** * Execution stage where the control ran, typically 'pre' or 'post'. */ check_stage?: ControlCheckStage | null; /** * Parent execution type the control applied to, for example 'llm_call' or 'tool_call'. */ applies_to?: ControlAppliesTo | null; /** * Evaluator Name * * Representative evaluator name for this control span. For composite controls, this is the primary evaluator chosen for observability identity. */ evaluator_name?: string | null; /** * Selector Path * * Representative selector path for this control span. For composite controls, this is the primary selector path chosen for observability identity. */ selector_path?: string | null; }; /** * PartialExtendedLlmSpanRecord */ export type PartialExtendedLlmSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'llm'; /** * Input * * Input to the trace or span. */ input?: Array; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: Array | null; /** * Output of the trace or span. */ output?: GalileoCoreSchemasLoggingLlmMessage; /** * Redacted output of the trace or span. */ redacted_output?: GalileoCoreSchemasLoggingLlmMessage | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: LlmMetrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Tools * * List of available tools passed to the LLM on invocation. */ tools?: Array<{ [key: string]: unknown; }> | null; /** * Events * * List of reasoning, internal tool call, or MCP events that occurred during the LLM span. */ events?: Array< | ({ type: 'message'; } & MessageEvent) | ({ type: 'reasoning'; } & ReasoningEvent) | ({ type: 'internal_tool_call'; } & InternalToolCall) | ({ type: 'web_search_call'; } & WebSearchCallEvent) | ({ type: 'image_generation'; } & ImageGenerationEvent) | ({ type: 'mcp_call'; } & McpCallEvent) | ({ type: 'mcp_list_tools'; } & McpListToolsEvent) | ({ type: 'mcp_approval_request'; } & McpApprovalRequestEvent) > | null; /** * Model * * Model used for this span. */ model?: string | null; /** * Temperature * * Temperature used for generation. */ temperature?: number | null; /** * Finish Reason * * Reason for finishing. */ finish_reason?: string | null; }; /** * PartialExtendedRetrieverSpanRecord */ export type PartialExtendedRetrieverSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'retriever'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: Array; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: Array | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; }; /** * PartialExtendedSessionRecord */ export type PartialExtendedSessionRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'session'; /** * Input */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Previous Session Id */ previous_session_id?: string | null; }; /** * PartialExtendedToolSpanRecord */ export type PartialExtendedToolSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'tool'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: string | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: string | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Tool Call Id * * ID of the tool call. */ tool_call_id?: string | null; }; /** * PartialExtendedTraceRecord */ export type PartialExtendedTraceRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'trace'; /** * Input * * Input to the trace or span. */ input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the trace */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Is Complete * * Whether the trace is complete or not */ is_complete?: boolean; }; /** * PartialExtendedWorkflowSpanRecord */ export type PartialExtendedWorkflowSpanRecord = { /** * Type * * Type of the trace, span or session. */ type?: 'workflow'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace (or the same value as id for a trace) */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Project ID * * Galileo ID of the project associated with this trace or span */ project_id?: string | null; /** * Run ID * * Galileo ID of the run (log stream or experiment) associated with this trace or span */ run_id?: string | null; /** * Last Updated * * Timestamp of the session or trace or span's last update */ updated_at?: string | null; /** * Has Children * * Whether or not this trace or span has child spans */ has_children?: boolean | null; /** * Metrics Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ metrics_batch_id?: string | null; /** * Session Batch Id * * Galileo ID of the metrics batch associated with this trace or span */ session_batch_id?: string | null; /** * Feedback Rating Info * * Feedback information related to the record */ feedback_rating_info?: { [key: string]: FeedbackRatingInfo; }; /** * Annotations * * Annotations keyed by template ID and annotator ID */ annotations?: { [key: string]: { [key: string]: AnnotationRatingInfo; }; }; /** * File Ids * * IDs of files associated with this record */ file_ids?: Array; /** * File Modalities * * Modalities of files associated with this record */ file_modalities?: Array; /** * Annotation Aggregates * * Annotation aggregate information keyed by template ID */ annotation_aggregates?: { [key: string]: AnnotationAggregate; }; /** * Annotation Agreement * * Annotation agreement scores keyed by template ID */ annotation_agreement?: { [key: string]: number; }; /** * Overall Annotation Agreement * * Average annotation agreement across all templates in the queue */ overall_annotation_agreement?: number | null; /** * Annotation Queue Ids * * IDs of annotation queues this record is in */ annotation_queue_ids?: Array; /** * Fully Annotated * * Whether every field is annotated by every annotator in the queue */ fully_annotated?: boolean | null; /** * Metric Info * * Detailed information about the metrics associated with this trace or span */ metric_info?: { [key: string]: | ({ status_type: 'not_computed'; } & MetricNotComputed) | ({ status_type: 'pending'; } & MetricPending) | ({ status_type: 'computing'; } & MetricComputing) | ({ status_type: 'not_applicable'; } & MetricNotApplicable) | ({ status_type: 'success'; } & MetricSuccess) | ({ status_type: 'error'; } & MetricError) | ({ status_type: 'failed'; } & MetricFailed) | ({ status_type: 'roll_up'; } & MetricRollUp); } | null; /** * Files * * File metadata keyed by file ID for files associated with this record */ files?: { [key: string]: FileMetadata; } | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Is Complete * * Whether the parent trace is complete or not */ is_complete?: boolean; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; }; /** * PassthroughAction */ export type PassthroughAction = { /** * Type */ type?: 'PASSTHROUGH'; /** * Subscriptions * * List of subscriptions to send a notification to when this action is applied and the ruleset status matches any of the configured statuses. */ subscriptions?: Array; }; /** * Payload */ export type Payload = { /** * Input * * Input text to be processed. */ input?: string | null; /** * Output * * Output text to be processed. */ output?: string | null; }; /** * Permission */ export type Permission = { /** * Action */ action: | UserAction | GroupAction | GroupMemberAction | ProjectAction | RegisteredScorerAction | ApiKeyAction | GeneratedScorerAction | FineTunedScorerAction | DatasetAction | IntegrationAction | OrganizationAction | AnnotationQueueAction; /** * Allowed */ allowed: boolean; /** * Message */ message?: string | null; }; /** * PreviewDatasetRequest */ export type PreviewDatasetRequest = { column_mapping?: ColumnMapping | null; }; /** * ProjectAction */ export const ProjectAction = { UPDATE: 'update', DELETE: 'delete', RENAME: 'rename', SHARE: 'share', CREATE_RUN: 'create_run', DELETE_RUN: 'delete_run', RENAME_RUN: 'rename_run', MOVE_RUN: 'move_run', EXPORT_DATA: 'export_data', CONFIGURE_HUMAN_FEEDBACK: 'configure_human_feedback', RECORD_HUMAN_FEEDBACK: 'record_human_feedback', LOG_DATA: 'log_data', TOGGLE_METRIC: 'toggle_metric', EDIT_ALERT: 'edit_alert', CREATE_STAGE: 'create_stage', EDIT_STAGE: 'edit_stage', CONFIGURE_CROWN_LOGIC: 'configure_crown_logic', DELETE_DATA: 'delete_data', SET_METRIC: 'set_metric', EDIT_RUN_TAGS: 'edit_run_tags', DISMISS_ALERT: 'dismiss_alert', EDIT_SLICE: 'edit_slice', EDIT_EDIT: 'edit_edit' } as const; /** * ProjectAction */ export type ProjectAction = (typeof ProjectAction)[keyof typeof ProjectAction]; /** * ProjectBookmarkFilter */ export type ProjectBookmarkFilter = { /** * Name */ name?: 'bookmark'; /** * Value */ value: boolean; }; /** * ProjectBookmarkSort */ export type ProjectBookmarkSort = { /** * Name */ name?: 'bookmark'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom'; }; /** * ProjectCollectionParams */ export type ProjectCollectionParams = { /** * Filters */ filters?: Array< | ({ name: 'id'; } & ProjectIdFilter) | ({ name: 'name'; } & ProjectNameFilter) | ({ name: 'type'; } & ProjectTypeFilter) | ({ name: 'creator'; } & ProjectCreatorFilter) | ({ name: 'created_at'; } & ProjectCreatedAtFilter) | ({ name: 'updated_at'; } & ProjectUpdatedAtFilter) | ({ name: 'runs'; } & ProjectRunsFilter) | ({ name: 'bookmark'; } & ProjectBookmarkFilter) >; /** * Sort */ sort?: | ({ name: 'name'; } & ProjectNameSort) | ({ name: 'type'; } & ProjectTypeSort) | ({ name: 'created_at'; } & ProjectCreatedAtSort) | ({ name: 'updated_at'; } & ProjectUpdatedAtSort) | ({ name: 'runs'; } & ProjectRunsSort) | ({ name: 'bookmark'; } & ProjectBookmarkSort) | null; }; /** * ProjectCreate */ export type ProjectCreate = { /** * Name */ name: string; /** * Created By */ created_by?: string | null; type?: ProjectType; /** * Create Example Templates */ create_example_templates?: boolean; }; /** * ProjectCreateResponse */ export type ProjectCreateResponse = { /** * Name */ name?: string | null; /** * Created By */ created_by?: string | null; type?: ProjectType | null; /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; }; /** * ProjectCreatedAtFilter */ export type ProjectCreatedAtFilter = { /** * Name */ name?: 'created_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * ProjectCreatedAtSortV1 */ export type ProjectCreatedAtSort = { /** * Name */ name?: 'created_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ProjectCreatorFilter */ export type ProjectCreatorFilter = { /** * Name */ name?: 'creator'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * ProjectDB */ export type ProjectDb = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; /** * Name */ name?: string | null; /** * Created By */ created_by: string; type?: ProjectType | null; created_by_user: UserInfo; /** * Runs */ runs: Array; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Bookmark */ bookmark?: boolean; /** * Description */ description?: string | null; /** * Labels */ labels?: Array; }; /** * ProjectDBThin */ export type ProjectDbThin = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; /** * Name */ name?: string | null; /** * Created By */ created_by: string; type?: ProjectType | null; /** * Runs */ runs: Array; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Bookmark */ bookmark?: boolean; }; /** * ProjectDeleteResponse */ export type ProjectDeleteResponse = { /** * Message */ message: string; }; /** * ProjectIDFilter */ export type ProjectIdFilter = { /** * Name */ name?: 'id'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * ProjectItem * * Represents a single project item for the UI list. */ export type ProjectItem = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; /** * Name */ name: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Bookmark */ bookmark?: boolean; /** * Num Logstreams * * Count of runs with task_type=15 */ num_logstreams?: number | null; /** * Num Experiments * * Count of runs with task_type=16 */ num_experiments?: number | null; created_by_user?: UserInfo | null; /** * Description */ description?: string | null; /** * Labels * * List of labels associated with the project. */ labels?: Array; /** * Log Streams * * Log streams for this project. Only populated when include_logstreams=True. */ log_streams?: Array | null; }; /** * ProjectLabels * * Enum for project labels used in the UI. */ export const ProjectLabels = { SAMPLE: 'sample' } as const; /** * ProjectLabels * * Enum for project labels used in the UI. */ export type ProjectLabels = (typeof ProjectLabels)[keyof typeof ProjectLabels]; /** * ProjectNameFilter */ export type ProjectNameFilter = { /** * Name */ name?: 'name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * ProjectNameSortV1 */ export type ProjectNameSort = { /** * Name */ name?: 'name'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ProjectRunsFilter */ export type ProjectRunsFilter = { /** * Name */ name?: 'runs'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'between'; /** * Value */ value: number | number | Array | Array; }; /** * ProjectRunsSort */ export type ProjectRunsSort = { /** * Name */ name?: 'runs'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom'; }; /** * ProjectType */ export const ProjectType = { PROMPT_EVALUATION: 'prompt_evaluation', LLM_MONITOR: 'llm_monitor', PROTECT: 'protect', GEN_AI: 'gen_ai' } as const; /** * ProjectType */ export type ProjectType = (typeof ProjectType)[keyof typeof ProjectType]; /** * ProjectTypeFilter */ export type ProjectTypeFilter = { /** * Name */ name?: 'type'; /** * Operator */ operator: 'eq' | 'ne' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; }; /** * ProjectTypeSort */ export type ProjectTypeSort = { /** * Name */ name?: 'type'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ProjectUpdate */ export type ProjectUpdate = { /** * Name */ name?: string | null; /** * Created By */ created_by?: string | null; type?: ProjectType | null; /** * Labels */ labels?: Array | null; /** * Description */ description?: string | null; }; /** * ProjectUpdateResponse */ export type ProjectUpdateResponse = { /** * Name */ name?: string | null; /** * Created By */ created_by?: string | null; type?: ProjectType | null; /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; /** * Labels */ labels?: Array; /** * Description */ description?: string | null; }; /** * ProjectUpdatedAtFilter */ export type ProjectUpdatedAtFilter = { /** * Name */ name?: 'updated_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * ProjectUpdatedAtSortV1 */ export type ProjectUpdatedAtSort = { /** * Name */ name?: 'updated_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * PromptDatasetDB */ export type PromptDatasetDb = { /** * Id */ id: string; /** * Dataset Id */ dataset_id: string; /** * File Name */ file_name?: string | null; /** * Message */ message?: string | null; /** * Num Rows */ num_rows?: number | null; /** * Rows */ rows?: number | null; }; /** * PromptInjectionScorer */ export type PromptInjectionScorer = { /** * Name */ name?: 'prompt_injection'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * PromptInjectionTemplate * * Template for the prompt injection metric, * containing all the info necessary to send the prompt injection prompt. */ export type PromptInjectionTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * PromptOptimizationConfiguration * * Configuration for prompt optimization. */ export type PromptOptimizationConfiguration = { /** * Prompt */ prompt: string; /** * Evaluation Criteria */ evaluation_criteria: string; /** * Task Description */ task_description: string; /** * Includes Target */ includes_target: boolean; /** * Num Rows */ num_rows: number; /** * Iterations */ iterations: number; /** * Max Tokens */ max_tokens: number; /** * Temperature */ temperature: number; /** * Generation Model Alias */ generation_model_alias: string; /** * Evaluation Model Alias */ evaluation_model_alias: string; integration_name?: LlmIntegration; /** * Reasoning Effort */ reasoning_effort?: string | null; /** * Verbosity */ verbosity?: string | null; }; /** * PromptPerplexityScorer */ export type PromptPerplexityScorer = { /** * Name */ name?: 'prompt_perplexity'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * PromptRunSettings * * Prompt run settings. */ export type PromptRunSettings = { /** * Logprobs */ logprobs?: boolean; /** * Top Logprobs */ top_logprobs?: number; /** * Echo */ echo?: boolean; /** * N */ n?: number; /** * Reasoning Effort */ reasoning_effort?: string; /** * Verbosity */ verbosity?: string; /** * Deployment Name */ deployment_name?: string | null; /** * Model Alias */ model_alias?: string; /** * Temperature */ temperature?: number | null; /** * Max Tokens */ max_tokens?: number; /** * Stop Sequences */ stop_sequences?: Array | null; /** * Top P */ top_p?: number; /** * Top K */ top_k?: number; /** * Frequency Penalty */ frequency_penalty?: number; /** * Presence Penalty */ presence_penalty?: number; /** * Tools */ tools?: Array<{ [key: string]: unknown; }> | null; /** * Tool Choice */ tool_choice?: string | OpenAiToolChoice | null; /** * Response Format */ response_format?: { [key: string]: string; } | null; /** * Known Models */ known_models?: Array; }; /** * PromptTemplateCreatedAtSort */ export type PromptTemplateCreatedAtSort = { /** * Name */ name?: 'created_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * PromptTemplateCreatedByFilter */ export type PromptTemplateCreatedByFilter = { /** * Name */ name?: 'creator'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * PromptTemplateNameFilter */ export type PromptTemplateNameFilter = { /** * Name */ name?: 'name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * PromptTemplateNameSort */ export type PromptTemplateNameSort = { /** * Name */ name?: 'name'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * PromptTemplateNotInProjectFilter */ export type PromptTemplateNotInProjectFilter = { /** * Name */ name?: 'not_in_project'; /** * Value */ value: string; }; /** * PromptTemplateUpdatedAtSort */ export type PromptTemplateUpdatedAtSort = { /** * Name */ name?: 'updated_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * PromptTemplateUsedInProjectFilter */ export type PromptTemplateUsedInProjectFilter = { /** * Name */ name?: 'used_in_project'; /** * Value */ value: string; }; /** * PromptTemplateVersionCreatedAtSort */ export type PromptTemplateVersionCreatedAtSort = { /** * Name */ name?: 'created_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * PromptTemplateVersionNumberSort */ export type PromptTemplateVersionNumberSort = { /** * Name */ name?: 'version'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * PromptTemplateVersionUpdatedAtSort */ export type PromptTemplateVersionUpdatedAtSort = { /** * Name */ name?: 'updated_at'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ProtectRequest * * Protect request schema with custom OpenAPI title. */ export type ProtectRequest = { /** * Prioritized Rulesets * * Rulesets to be applied to the payload. */ prioritized_rulesets?: Array; /** * Payload to be processed. */ payload: Payload; /** * Project Name * * Project name. */ project_name?: string | null; /** * Project Id * * Project ID. */ project_id?: string | null; /** * Stage Name * * Stage name. */ stage_name?: string | null; /** * Stage Id * * Stage ID. */ stage_id?: string | null; /** * Stage Version * * Stage version to use for the request, if it's a central stage with a previously registered version. */ stage_version?: number | null; /** * Timeout * * Optional timeout for the guardrail execution in seconds. This is not the timeout for the request. If not set, a default timeout of 5 minutes will be used. */ timeout?: number; /** * Metadata * * Optional additional metadata. This will be echoed back in the response. */ metadata?: { [key: string]: string; } | null; /** * Headers * * Optional additional HTTP headers that should be included in the response. */ headers?: { [key: string]: string; } | null; }; /** * ProtectResponse * * Protect response schema with custom OpenAPI title. */ export type ProtectResponse = { /** * Status of the request after processing the rules. */ status?: ExecutionStatus; /** * Text * * Text from the request after processing the rules. */ text: string; trace_metadata: TraceMetadata; [key: string]: unknown | ExecutionStatus | string | TraceMetadata | undefined; }; /** * QueryDatasetParams */ export type QueryDatasetParams = { /** * Filters */ filters?: Array; sort?: DatasetContentSortClause | null; }; /** * ReasoningEvent * * Internal reasoning/thinking from the model (e.g., OpenAI o1/o3 reasoning tokens). */ export type ReasoningEvent = { /** * Type */ type?: 'reasoning'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Content * * The reasoning/thinking content */ content?: string | null; /** * Summary * * Summary of the reasoning */ summary?: | string | Array<{ [key: string]: unknown; }> | null; }; /** * RecommendedModelPurpose */ export const RecommendedModelPurpose = { CUSTOM_METRIC_JUDGE: 'custom_metric_judge', CUSTOM_METRIC_AUTOGEN: 'custom_metric_autogen', AUTOTUNE: 'autotune', SIGNALS: 'signals' } as const; /** * RecommendedModelPurpose */ export type RecommendedModelPurpose = (typeof RecommendedModelPurpose)[keyof typeof RecommendedModelPurpose]; /** * RecomputeLogRecordsMetricsRequest * * Request to recompute metrics for a genai project run (log stream or experiment). * This request is used to trigger recomputation of metrics based on the provided filters and scorer IDs. */ export type RecomputeLogRecordsMetricsRequest = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Previous Last Row Id */ previous_last_row_id?: string | null; /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; /** * Sort for the query. Defaults to native sort (created_at, id descending). */ sort?: LogRecordsSortClause | null; /** * Truncate Fields */ truncate_fields?: boolean; /** * Include Counts * * If True, include computed child counts (e.g., num_traces for sessions, num_spans for traces). */ include_counts?: boolean; /** * Scorer Ids * * List of scorer IDs for which metrics should be recomputed. */ scorer_ids: Array; }; /** * RecomputeSettingsLogStream */ export type RecomputeSettingsLogStream = { /** * Mode */ mode?: 'log_stream_filters'; /** * Run Id */ run_id: string; /** * Filters */ filters: Array; }; /** * RecomputeSettingsObserve */ export type RecomputeSettingsObserve = { /** * Mode */ mode?: 'observe_filters'; /** * Filters */ filters: Array; }; /** * RecomputeSettingsProject */ export type RecomputeSettingsProject = { /** * Mode */ mode?: 'project'; }; /** * RecomputeSettingsRuns */ export type RecomputeSettingsRuns = { /** * Mode */ mode?: 'runs'; /** * Run Ids */ run_ids: Array; }; /** * RegisteredScorer */ export type RegisteredScorer = { /** * Id */ id?: string | null; /** * Name */ name?: string | null; /** * Filters */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * RegisteredScorerAction */ export const RegisteredScorerAction = { UPDATE: 'update', DELETE: 'delete' } as const; /** * RegisteredScorerAction */ export type RegisteredScorerAction = (typeof RegisteredScorerAction)[keyof typeof RegisteredScorerAction]; /** * RegisteredScorerTaskResultResponse */ export type RegisteredScorerTaskResultResponse = { /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; status: TaskResultStatus; /** * Result */ result?: ValidateRegisteredScorerResult | string | null; }; /** * RenderTemplateRequest */ export type RenderTemplateRequest = { /** * Template */ template: string; /** * Data */ data: DatasetData | StringData; }; /** * RenderTemplateResponse */ export type RenderTemplateResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Rendered Templates */ rendered_templates: Array; }; /** * RenderedTemplate */ export type RenderedTemplate = { /** * Result */ result: string; /** * Warning */ warning?: string | null; }; /** * RetrieverSpan */ export type RetrieverSpan = { /** * Type * * Type of the trace, span or session. */ type?: 'retriever'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: Array; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: Array | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Spans * * Child spans. */ spans?: Array< | ({ type: 'agent'; } & AgentSpan) | ({ type: 'workflow'; } & WorkflowSpan) | ({ type: 'llm'; } & LlmSpan) | ({ type: 'retriever'; } & RetrieverSpan) | ({ type: 'tool'; } & ToolSpan) | ({ type: 'control'; } & ControlSpan) >; }; /** * RollUpMethodDisplayOptions * * Display options for roll up methods when showing rolled up metrics in the UI. * * Separates display intent from computation methods. The computation methods * (NumericRollUpMethod, CategoricalRollUpMethod) control what aggregations are available. * This enum controls how the UI displays the selected roll-up value for a scorer. */ export const RollUpMethodDisplayOptions = { AVERAGE: 'average', SUM: 'sum', MAX: 'max', MIN: 'min', CATEGORY_COUNT: 'category_count', PERCENTAGE_TRUE: 'percentage_true', PERCENTAGE_FALSE: 'percentage_false' } as const; /** * RollUpMethodDisplayOptions * * Display options for roll up methods when showing rolled up metrics in the UI. * * Separates display intent from computation methods. The computation methods * (NumericRollUpMethod, CategoricalRollUpMethod) control what aggregations are available. * This enum controls how the UI displays the selected roll-up value for a scorer. */ export type RollUpMethodDisplayOptions = (typeof RollUpMethodDisplayOptions)[keyof typeof RollUpMethodDisplayOptions]; /** * RollUpStrategy * * Strategies for rolling metrics up the Session/Trace/Span hierarchy. */ export const RollUpStrategy = { AVG: 'avg', SUM: 'sum', FIRST: 'first', LAST: 'last', NONE: 'none' } as const; /** * RollUpStrategy * * Strategies for rolling metrics up the Session/Trace/Span hierarchy. */ export type RollUpStrategy = (typeof RollUpStrategy)[keyof typeof RollUpStrategy]; /** * RollbackRequest */ export type RollbackRequest = { /** * Rollback Version */ rollback_version: number; }; /** * RootType * * The root-level type of a logged step hierarchy. * * Maps fine-grained StepType values to the three top-level categories * used throughout the platform: session, trace, and span. */ export const RootType = { SESSION: 'session', TRACE: 'trace', SPAN: 'span' } as const; /** * RootType * * The root-level type of a logged step hierarchy. * * Maps fine-grained StepType values to the three top-level categories * used throughout the platform: session, trace, and span. */ export type RootType = (typeof RootType)[keyof typeof RootType]; /** * RougeScorer */ export type RougeScorer = { /** * Name */ name?: 'rouge'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * Rule */ export type Rule = { /** * Metric * * Name of the metric. */ metric: string; /** * Operator to use for comparison. */ operator: RuleOperator; /** * Target Value * * Value to compare with for this metric (right hand side). */ target_value: string | number | number | Array | null; }; /** * RuleOperator */ export const RuleOperator = { GT: 'gt', LT: 'lt', GTE: 'gte', LTE: 'lte', EQ: 'eq', NEQ: 'neq', CONTAINS: 'contains', ALL: 'all', ANY: 'any', EMPTY: 'empty', NOT_EMPTY: 'not_empty' } as const; /** * RuleOperator */ export type RuleOperator = (typeof RuleOperator)[keyof typeof RuleOperator]; /** * RuleResult */ export type RuleResult = { status?: ExecutionStatus; /** * Metric * * Name of the metric. */ metric: string; /** * Operator to use for comparison. */ operator: RuleOperator; /** * Target Value * * Value to compare with for this metric (right hand side). */ target_value: string | number | number | Array | null; /** * Value * * Result of the metric computation. */ value?: unknown | null; /** * Execution Time * * Execution time for the rule in seconds. */ execution_time?: number | null; }; /** * Ruleset */ export type Ruleset = { /** * Rules * * List of rules to evaluate. Atleast 1 rule is required. */ rules?: Array; /** * Action * * Action to take if all the rules are met. */ action?: | ({ type: 'OVERRIDE'; } & OverrideAction) | ({ type: 'PASSTHROUGH'; } & PassthroughAction); /** * Description * * Description of the ruleset. */ description?: string | null; }; /** * RulesetResult */ export type RulesetResult = { status?: ExecutionStatus; /** * Rules * * List of rules to evaluate. Atleast 1 rule is required. */ rules?: Array; /** * Action * * Action to take if all the rules are met. */ action?: | ({ type: 'OVERRIDE'; } & OverrideAction) | ({ type: 'PASSTHROUGH'; } & PassthroughAction); /** * Description * * Description of the ruleset. */ description?: string | null; /** * Rule Results * * Results of the rule execution. */ rule_results?: Array; }; /** * RulesetsMixin */ export type RulesetsMixin = { /** * Prioritized Rulesets * * Rulesets to be applied to the payload. */ prioritized_rulesets?: Array; }; /** * RunDB */ export type RunDb = { /** * Name */ name?: string | null; /** * Project Id */ project_id?: string | null; /** * Created By */ created_by: string; /** * Num Samples */ num_samples: number; /** * Winner */ winner: boolean; /** * Dataset Hash */ dataset_hash?: string | null; /** * Dataset Version Id */ dataset_version_id?: string | null; /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; task_type?: TaskType | null; /** * Last Updated By */ last_updated_by: string; /** * Run Tags */ run_tags?: Array; /** * Example Content Id */ example_content_id?: string | null; creator: UserDb; /** * Logged Splits */ logged_splits: Array; /** * Logged Inference Names */ logged_inference_names: Array; }; /** * RunDBThin */ export type RunDbThin = { /** * Name */ name?: string | null; /** * Project Id */ project_id?: string | null; /** * Created By */ created_by: string; /** * Num Samples */ num_samples: number; /** * Winner */ winner: boolean; /** * Dataset Hash */ dataset_hash?: string | null; /** * Dataset Version Id */ dataset_version_id?: string | null; /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; task_type?: TaskType | null; /** * Last Updated By */ last_updated_by: string; /** * Run Tags */ run_tags?: Array; /** * Example Content Id */ example_content_id?: string | null; creator: UserDb; }; /** * RunParamsMap * * Maps the internal settings parameters (left) to the serialized parameters (right) we want to send in the API * requests. */ export type RunParamsMap = { /** * Model */ model?: string | null; /** * Temperature */ temperature?: string | null; /** * Max Tokens */ max_tokens?: string | null; /** * Stop Sequences */ stop_sequences?: string | null; /** * Top P */ top_p?: string | null; /** * Top K */ top_k?: string | null; /** * Frequency Penalty */ frequency_penalty?: string | null; /** * Presence Penalty */ presence_penalty?: string | null; /** * Echo */ echo?: string | null; /** * Logprobs */ logprobs?: string | null; /** * Top Logprobs */ top_logprobs?: string | null; /** * N */ n?: string | null; /** * Api Version */ api_version?: string | null; /** * Tools */ tools?: string | null; /** * Tool Choice */ tool_choice?: string | null; /** * Response Format */ response_format?: string | null; /** * Reasoning Effort */ reasoning_effort?: string | null; /** * Verbosity */ verbosity?: string | null; /** * Deployment Name */ deployment_name?: string | null; }; /** * RunScorerSettingsPatchRequest */ export type RunScorerSettingsPatchRequest = { /** * Scorers * * List of Galileo scorers to enable. */ scorers?: Array | null; /** * Segment Filters * * List of segment filters to apply to the run. */ segment_filters?: Array | null; /** * Run Id * * ID of the run. */ run_id: string; }; /** * RunScorerSettingsResponse */ export type RunScorerSettingsResponse = { /** * Scorers */ scorers: Array; /** * Segment Filters * * List of segment filters to apply to the run. */ segment_filters?: Array | null; /** * Run Id * * ID of the run. */ run_id: string; }; /** * RunTagCreateRequest */ export type RunTagCreateRequest = { /** * Key */ key: string; /** * Value */ value: string; /** * Tag Type */ tag_type: string; }; /** * RunTagDB */ export type RunTagDb = { /** * Key */ key: string; /** * Value */ value: string; /** * Tag Type */ tag_type: string; /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; /** * Created By */ created_by: string; /** * Id */ id: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; }; /** * ScoreAggregate */ export type ScoreAggregate = { /** * Feedback Type */ feedback_type?: 'score'; /** * Average */ average: number; /** * Unrated Count */ unrated_count: number; }; /** * ScoreBucket */ export type ScoreBucket = { /** * Min Inclusive */ min_inclusive: number; /** * Max Exclusive */ max_exclusive: number | null; /** * Count */ count: number; }; /** * ScoreRating */ export type ScoreRating = { /** * Feedback Type */ feedback_type?: 'score'; /** * Value */ value: number; }; /** * ScorerConfig * * Used for configuring a scorer for a scorer job. */ export type ScorerConfig = { /** * Model Name */ model_name?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Scoreable Node Types * * List of node types that can be scored by this scorer. Defaults to llm/chat. */ scoreable_node_types?: Array | null; /** * Cot Enabled * * Whether to enable chain of thought for this scorer. Defaults to False for llm scorers. */ cot_enabled?: boolean | null; /** * What type of output to use for model-based scorers (boolean, categorical, etc.). */ output_type?: OutputTypeEnum | null; /** * What type of input to use for model-based scorers (sessions_normalized, trace_io_only, etc..). */ input_type?: InputTypeEnum | null; /** * Id */ id: string; /** * Name */ name?: string | null; scorer_type: ScorerTypes; /** * Type of model to use for this scorer. slm maps to luna, and llm maps to plus */ model_type?: ModelType | null; /** * ScorerVersion to use for this scorer. If not provided, the latest version will be used. */ scorer_version?: BaseScorerVersionDb | null; /** * Multimodal Capabilities * * Multimodal capabilities which this scorer can utilize in its evaluation. */ multimodal_capabilities?: Array | null; roll_up_method?: RollUpMethodDisplayOptions | null; /** * Score Type * * Return type of code scorers (e.g., 'bool', 'int', 'float', 'str'). */ score_type?: string | null; }; /** * ScorerCreatedAtFilter */ export type ScorerCreatedAtFilter = { /** * Name */ name?: 'created_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * ScorerCreatorFilter */ export type ScorerCreatorFilter = { /** * Name */ name?: 'creator'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * ScorerDefaults */ export type ScorerDefaults = { /** * Model Name */ model_name?: string | null; /** * Num Judges */ num_judges?: number | null; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Scoreable Node Types * * List of node types that can be scored by this scorer. Defaults to llm/chat. */ scoreable_node_types?: Array | null; /** * Cot Enabled * * Whether to enable chain of thought for this scorer. Defaults to False for llm scorers. */ cot_enabled?: boolean | null; /** * What type of output to use for model-based scorers (boolean, categorical, etc.). */ output_type?: OutputTypeEnum | null; /** * What type of input to use for model-based scorers (sessions_normalized, trace_io_only, etc..). */ input_type?: InputTypeEnum | null; }; /** * ScorerEnabledInPlaygroundSort */ export type ScorerEnabledInPlaygroundSort = { /** * Name */ name?: 'enabled_in_playground'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom_uuid'; /** * Value */ value: string; }; /** * ScorerEnabledInRunSort */ export type ScorerEnabledInRunSort = { /** * Name */ name?: 'enabled_in_run'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'custom_uuid'; /** * Value */ value: string; }; /** * ScorerExcludeMultimodalScorersFilter * * Internal filter: excludes multimodal scorers (non-empty multimodal_capabilities). * * Auto-appended by the service layer when the `multimodal` feature flag is disabled. */ export type ScorerExcludeMultimodalScorersFilter = { /** * Name */ name?: 'exclude_multimodal_scorers'; }; /** * ScorerExcludeSlmScorersFilter * * Internal filter: excludes scorers with model_type == slm while including * scorers where model_type IS NULL. Auto-appended by the service layer. */ export type ScorerExcludeSlmScorersFilter = { /** * Name */ name?: 'exclude_slm_scorers'; }; /** * ScorerIDFilter */ export type ScorerIdFilter = { /** * Name */ name?: 'id'; /** * Operator */ operator?: 'eq' | 'ne' | 'one_of' | 'not_in' | 'contains'; /** * Value */ value: string | Array; }; /** * ScorerLabelFilter */ export type ScorerLabelFilter = { /** * Name */ name?: 'label'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; /** * Strict */ strict?: boolean; }; /** * ScorerModelTypeFilter */ export type ScorerModelTypeFilter = { /** * Name */ name?: 'model_type'; /** * Operator */ operator: 'eq' | 'ne' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; }; /** * ScorerNameFilter */ export type ScorerNameFilter = { /** * Name */ name?: 'name'; /** * Operator */ operator: 'eq' | 'ne' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * ScorerNameSort */ export type ScorerNameSort = { /** * Name */ name?: 'name'; /** * Ascending */ ascending?: boolean; /** * Sort Type */ sort_type?: 'column'; }; /** * ScorerResponse */ export type ScorerResponse = { /** * Id */ id: string; /** * Name */ name: string; scorer_type: ScorerTypes; defaults?: ScorerDefaults | null; latest_version?: BaseScorerVersionDb | null; model_type?: ModelType | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Default Version Id */ default_version_id?: string | null; default_version?: BaseScorerVersionDb | null; /** * User Prompt */ user_prompt?: string | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; /** * Required Scorers */ required_scorers?: Array | null; /** * Required Metric Ids */ required_metric_ids?: Array | null; /** * Deprecated */ deprecated?: boolean | null; roll_up_method?: RollUpMethodDisplayOptions | null; roll_up_config?: BaseMetricRollUpConfigDb | null; /** * Label */ label?: string | null; /** * Tags */ tags: Array; /** * Included Fields * * Fields that can be used in the scorer to configure it. i.e. model, num_judges, etc. This enables the ui to know which fields a user can configure when they're setting a scorer */ included_fields?: Array; /** * Description */ description?: string | null; /** * Created By */ created_by?: string | null; /** * Created At */ created_at?: string | null; /** * Updated At */ updated_at?: string | null; /** * Metric Color Picker Config */ metric_color_picker_config?: | ({ type: 'numeric'; } & MetricColorPickerNumeric) | ({ type: 'boolean'; } & MetricColorPickerBoolean) | ({ type: 'categorical'; } & MetricColorPickerCategorical) | ({ type: 'multi_label'; } & MetricColorPickerMultiLabel) | null; /** * Metric Name */ metric_name?: string | null; }; /** * ScorerScoreableNodeTypesFilter */ export type ScorerScoreableNodeTypesFilter = { /** * Name */ name?: 'scoreable_node_types'; /** * Operator */ operator: 'eq' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * ScorerTagsFilter */ export type ScorerTagsFilter = { /** * Name */ name?: 'tags'; /** * Operator */ operator: 'eq' | 'contains' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; /** * Case Sensitive */ case_sensitive?: boolean; }; /** * ScorerType */ export const ScorerType = { LUNA: 'Luna', PLUS: 'Plus' } as const; /** * ScorerType */ export type ScorerType = (typeof ScorerType)[keyof typeof ScorerType]; /** * ScorerTypeFilter */ export type ScorerTypeFilter = { /** * Name */ name?: 'scorer_type'; /** * Operator */ operator: 'eq' | 'ne' | 'one_of' | 'not_in'; /** * Value */ value: string | Array; }; /** * ScorerTypes */ export const ScorerTypes = { LLM: 'llm', CODE: 'code', LUNA: 'luna', PRESET: 'preset' } as const; /** * ScorerTypes */ export type ScorerTypes = (typeof ScorerTypes)[keyof typeof ScorerTypes]; /** * ScorerUpdatedAtFilter */ export type ScorerUpdatedAtFilter = { /** * Name */ name?: 'updated_at'; /** * Operator */ operator: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte'; /** * Value */ value: string; }; /** * ScorersConfiguration * * Configure which scorers to enable for a particular prompt run. * * The keys here are sorted by their approximate execution time to execute the scorers that we anticipate will be the * fastest first, and the slowest last. */ export type ScorersConfiguration = { /** * Latency */ latency?: boolean; /** * Cost */ cost?: boolean; /** * Pii */ pii?: boolean; /** * Input Pii */ input_pii?: boolean; /** * Bleu */ bleu?: boolean; /** * Rouge */ rouge?: boolean; /** * Protect Status */ protect_status?: boolean; /** * Context Relevance */ context_relevance?: boolean; /** * Toxicity */ toxicity?: boolean; /** * Input Toxicity */ input_toxicity?: boolean; /** * Tone */ tone?: boolean; /** * Input Tone */ input_tone?: boolean; /** * Sexist */ sexist?: boolean; /** * Input Sexist */ input_sexist?: boolean; /** * Prompt Injection */ prompt_injection?: boolean; /** * Adherence Nli */ adherence_nli?: boolean; /** * Chunk Attribution Utilization Nli */ chunk_attribution_utilization_nli?: boolean; /** * Context Adherence Luna */ context_adherence_luna?: boolean; /** * Context Relevance Luna */ context_relevance_luna?: boolean; /** * Chunk Relevance Luna */ chunk_relevance_luna?: boolean; /** * Completeness Nli */ completeness_nli?: boolean; /** * Tool Error Rate Luna */ tool_error_rate_luna?: boolean; /** * Tool Selection Quality Luna */ tool_selection_quality_luna?: boolean; /** * Action Completion Luna */ action_completion_luna?: boolean; /** * Action Advancement Luna */ action_advancement_luna?: boolean; /** * Uncertainty */ uncertainty?: boolean; /** * Factuality */ factuality?: boolean; /** * Groundedness */ groundedness?: boolean; /** * Prompt Perplexity */ prompt_perplexity?: boolean; /** * Chunk Attribution Utilization Gpt */ chunk_attribution_utilization_gpt?: boolean; /** * Completeness Gpt */ completeness_gpt?: boolean; /** * Instruction Adherence */ instruction_adherence?: boolean; /** * Ground Truth Adherence */ ground_truth_adherence?: boolean; /** * Tool Selection Quality */ tool_selection_quality?: boolean; /** * Tool Error Rate */ tool_error_rate?: boolean; /** * Agentic Session Success */ agentic_session_success?: boolean; /** * Agentic Workflow Success */ agentic_workflow_success?: boolean; /** * Prompt Injection Gpt */ prompt_injection_gpt?: boolean; /** * Sexist Gpt */ sexist_gpt?: boolean; /** * Input Sexist Gpt */ input_sexist_gpt?: boolean; /** * Toxicity Gpt */ toxicity_gpt?: boolean; /** * Input Toxicity Gpt */ input_toxicity_gpt?: boolean; }; /** * Segment */ export type Segment = { /** * Start */ start: number; /** * End */ end: number; /** * Value */ value: number | number | string; /** * Prob */ prob?: number | null; }; /** * SegmentFilter */ export type SegmentFilter = { /** * Filter * * Filter to apply to the segment. By default sample on all data. */ filter?: | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) | null; /** * Sample Rate * * The fraction of the data to sample. Must be between 0 and 1, inclusive. */ sample_rate: number; /** * Llm Scorers * * Whether to sample only on LLM scorers. */ llm_scorers?: boolean; }; /** * SelectColumns */ export type SelectColumns = { /** * Column Ids */ column_ids?: Array; /** * Include All Metrics */ include_all_metrics?: boolean; /** * Include All Feedback */ include_all_feedback?: boolean; }; /** * SessionCreateRequest */ export type SessionCreateRequest = { /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; logging_method?: LoggingMethod; /** * Client Version */ client_version?: string | null; /** * Reliable * * Whether or not to use reliable logging. If set to False, the method will respond immediately before verifying that the traces have been successfully ingested, and no error message will be returned if ingestion fails. If set to True, the method will wait for the traces to be successfully ingested or return an error message if there is an ingestion failure. */ reliable?: boolean; /** * Name * * Name of the session. */ name?: string | null; /** * Previous Session Id * * Id of the previous session. */ previous_session_id?: string | null; /** * External Id * * External id of the session. */ external_id?: string | null; /** * User Metadata * * User metadata for the session. */ user_metadata?: { [key: string]: string; } | null; }; /** * SessionCreateResponse */ export type SessionCreateResponse = { /** * Id * * Session id associated with the session. */ id: string; /** * Name * * Name of the session. */ name: string | null; /** * Project Id * * Project id associated with the session. */ project_id: string; /** * Project Name * * Project name associated with the session. */ project_name: string; /** * Previous Session Id * * Id of the previous session. */ previous_session_id?: string | null; /** * External Id * * External id of the session. */ external_id?: string | null; }; /** * SexistTemplate * * Template for the sexism metric, * containing all the info necessary to send the sexism prompt. */ export type SexistTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * StageDB */ export type StageDb = { /** * Name * * Name of the stage. Must be unique within the project. */ name: string; /** * Project Id * * ID of the project to which this stage belongs. */ project_id: string; /** * Description * * Optional human-readable description of the goals of this guardrail. */ description?: string | null; /** * Type of the stage. */ type?: StageType; /** * Paused * * Whether the action is enabled. If False, the action will not be applied. */ paused?: boolean; /** * Created By */ created_by: string; /** * Id */ id: string; /** * Version */ version?: number | null; }; /** * StageMetadata */ export type StageMetadata = { /** * Project Id */ project_id: string; /** * Stage Id */ stage_id: string; /** * Stage Name */ stage_name: string; /** * Stage Version */ stage_version: number; stage_type: StageType; }; /** * StageType */ export const StageType = { LOCAL: 'local', CENTRAL: 'central' } as const; /** * StageType */ export type StageType = (typeof StageType)[keyof typeof StageType]; /** * StageWithRulesets */ export type StageWithRulesets = { /** * Prioritized Rulesets * * Rulesets to be applied to the payload. */ prioritized_rulesets?: Array; /** * Name * * Name of the stage. Must be unique within the project. */ name: string; /** * Project Id * * ID of the project to which this stage belongs. */ project_id: string; /** * Description * * Optional human-readable description of the goals of this guardrail. */ description?: string | null; /** * Type of the stage. */ type?: StageType; /** * Paused * * Whether the action is enabled. If False, the action will not be applied. */ paused?: boolean; }; /** * StandardError */ export type StandardError = { /** * Error Code */ error_code: number; error_type: ErrorType; /** * Error Group */ error_group: string; severity: ErrorSeverity; /** * Message */ message: string; /** * User Action */ user_action?: string | null; /** * Documentation Link */ documentation_link?: string | null; /** * Retriable */ retriable?: boolean; /** * Blocking */ blocking?: boolean; /** * Http Status Code */ http_status_code?: number | null; /** * Source Service */ source_service?: string | null; /** * Context */ context?: { [key: string]: unknown; }; }; /** * StarAggregate */ export type StarAggregate = { /** * Feedback Type */ feedback_type?: 'star'; /** * Average */ average: number; /** * Counts */ counts: { [key: string]: number; }; /** * Unrated Count */ unrated_count: number; }; /** * StarRating */ export type StarRating = { /** * Feedback Type */ feedback_type?: 'star'; /** * Value */ value: number; }; /** * StepType */ export const StepType = { LLM: 'llm', RETRIEVER: 'retriever', TOOL: 'tool', WORKFLOW: 'workflow', AGENT: 'agent', CONTROL: 'control', TRACE: 'trace', SESSION: 'session' } as const; /** * StepType */ export type StepType = (typeof StepType)[keyof typeof StepType]; /** * StringData */ export type StringData = { /** * Input Strings */ input_strings: Array; }; /** * SubscriptionConfig */ export type SubscriptionConfig = { /** * Statuses * * List of statuses that will cause a notification to be sent to the configured URL. */ statuses?: Array; /** * Url * * URL to send the event to. This can be a webhook URL, a message queue URL, an event bus or a custom endpoint that can receive an HTTP POST request. */ url: string; }; /** * SyntheticDataSourceDataset * * Configuration for dataset examples in synthetic data generation. */ export type SyntheticDataSourceDataset = { /** * Dataset Id */ dataset_id: string; /** * Dataset Version Index */ dataset_version_index?: number | null; /** * Row Ids */ row_ids?: Array | null; }; /** * SyntheticDataTypes */ export const SyntheticDataTypes = { GENERAL_QUERY: 'General Query', PROMPT_INJECTION: 'Prompt Injection', OFF_TOPIC_QUERY: 'Off-Topic Query', TOXIC_CONTENT_IN_QUERY: 'Toxic Content in Query', MULTIPLE_QUESTIONS_IN_QUERY: 'Multiple Questions in Query', SEXIST_CONTENT_IN_QUERY: 'Sexist Content in Query' } as const; /** * SyntheticDataTypes */ export type SyntheticDataTypes = (typeof SyntheticDataTypes)[keyof typeof SyntheticDataTypes]; /** * SyntheticDatasetExtensionRequest * * Request for a synthetic dataset run job. */ export type SyntheticDatasetExtensionRequest = { /** * Only the model is used. */ prompt_settings?: PromptRunSettings; /** * Prompt */ prompt?: string | null; /** * Instructions */ instructions?: string | null; /** * Examples */ examples?: Array; source_dataset?: SyntheticDataSourceDataset | null; /** * Data Types */ data_types?: Array | null; /** * Count */ count?: number; /** * Project Id */ project_id?: string | null; }; /** * SyntheticDatasetExtensionResponse * * Response for synthetic dataset extension requests. */ export type SyntheticDatasetExtensionResponse = { /** * Dataset Id */ dataset_id: string; }; /** * SystemMetricInfo */ export type SystemMetricInfo = { /** * Name * * Unique identifier for the metric */ name: string; /** * Label * * Human-readable display name for the metric */ label: string; /** * Unit of measurement, if any */ unit?: DataUnit | null; /** * Values * * Raw metric values used to compute statistics and histograms */ values?: Array; /** * Mean * * Arithmetic mean of the metric values */ mean?: number | null; /** * Median * * Median (50th percentile) of the metric values */ median?: number | null; /** * P5 * * 5th percentile of the metric values */ p5?: number | null; /** * P25 * * 25th percentile (first quartile) of the metric values */ p25?: number | null; /** * P75 * * 75th percentile (third quartile) of the metric values */ p75?: number | null; /** * P95 * * 95th percentile of the metric values */ p95?: number | null; /** * Min * * Minimum value in the metric dataset */ min?: number | null; /** * Max * * Maximum value in the metric dataset */ max?: number | null; /** * Histogram representation of the metric distribution */ histogram?: Histogram | null; }; /** * TagsAggregate */ export type TagsAggregate = { /** * Feedback Type */ feedback_type?: 'tags'; /** * Counts */ counts: { [key: string]: number; }; /** * Unrated Count */ unrated_count: number; }; /** * TagsRating */ export type TagsRating = { /** * Feedback Type */ feedback_type?: 'tags'; /** * Value */ value: Array; }; /** * TaskResourceLimits */ export type TaskResourceLimits = { /** * Cpu Time */ cpu_time?: number; /** * Memory Mb */ memory_mb?: number; }; /** * TaskResultStatus */ export const TaskResultStatus = { PENDING: 'pending', STARTED: 'started', COMPLETED: 'completed', FAILED: 'failed' } as const; /** * TaskResultStatus */ export type TaskResultStatus = (typeof TaskResultStatus)[keyof typeof TaskResultStatus]; /** * TaskType * * Valid task types for modeling. * * We store these as ints instead of strings because we will be looking this up in the database frequently. */ export const TaskType = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 10: 10, 11: 11, 12: 12, 13: 13, 14: 14, 15: 15, 16: 16, 17: 17, 18: 18 } as const; /** * TaskType * * Valid task types for modeling. * * We store these as ints instead of strings because we will be looking this up in the database frequently. */ export type TaskType = (typeof TaskType)[keyof typeof TaskType]; /** * TemplateStubRequest */ export type TemplateStubRequest = { /** * Templates */ templates: Array; }; /** * TestScore */ export type TestScore = { node_type: NodeType; /** * Score */ score?: number | number | string | boolean | null; }; /** * TextAggregate */ export type TextAggregate = { /** * Feedback Type */ feedback_type?: 'text'; /** * Count */ count: number; /** * Unrated Count */ unrated_count: number; }; /** * TextContentPart * * A text segment within a message. */ export type TextContentPart = { /** * Type */ type?: 'text'; /** * Text */ text: string; }; /** * TextRating */ export type TextRating = { /** * Feedback Type */ feedback_type?: 'text'; /** * Value */ value: string; }; /** * Token */ export type Token = { /** * Access Token */ access_token: string; /** * Token Type */ token_type?: string; }; /** * ToolCall */ export type ToolCall = { /** * Id */ id: string; function: ToolCallFunction; }; /** * ToolCallFunction */ export type ToolCallFunction = { /** * Name */ name: string; /** * Arguments */ arguments: string; }; /** * ToolErrorRateScorer */ export type ToolErrorRateScorer = { /** * Name */ name?: 'tool_error_rate'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; }; /** * ToolErrorRateTemplate * * Template for the tool error rate metric, * containing all the info necessary to send the tool error rate prompt. */ export type ToolErrorRateTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * ToolSelectionQualityScorer */ export type ToolSelectionQualityScorer = { /** * Name */ name?: 'tool_selection_quality'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; /** * Type */ type?: 'luna' | 'plus'; /** * Model Name * * Alias of the model to use for the scorer. */ model_name?: string | null; /** * Num Judges * * Number of judges for the scorer. */ num_judges?: number | null; }; /** * ToolSelectionQualityTemplate * * Template for the tool selection quality metric, * containing all the info necessary to send the tool selection quality prompt. */ export type ToolSelectionQualityTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * ToolSpan */ export type ToolSpan = { /** * Type * * Type of the trace, span or session. */ type?: 'tool'; /** * Input * * Input to the trace or span. */ input?: string; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: string | null; /** * Output * * Output of the trace or span. */ output?: string | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: string | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Spans * * Child spans. */ spans?: Array< | ({ type: 'agent'; } & AgentSpan) | ({ type: 'workflow'; } & WorkflowSpan) | ({ type: 'llm'; } & LlmSpan) | ({ type: 'retriever'; } & RetrieverSpan) | ({ type: 'tool'; } & ToolSpan) | ({ type: 'control'; } & ControlSpan) >; /** * Tool Call Id * * ID of the tool call. */ tool_call_id?: string | null; }; /** * ToxicityTemplate * * Template for the toxicity metric, * containing all the info necessary to send the toxicity prompt. */ export type ToxicityTemplate = { /** * Metric System Prompt */ metric_system_prompt?: string; /** * Metric Description */ metric_description?: string; /** * Value Field Name */ value_field_name?: string; /** * Explanation Field Name * * Field name to look for in the chainpoll response, for the explanation. */ explanation_field_name?: string; /** * Template */ template?: string; /** * Metric Few Shot Examples */ metric_few_shot_examples?: Array; /** * Response Schema * * Response schema for the output */ response_schema?: { [key: string]: unknown; } | null; }; /** * Trace */ export type Trace = { /** * Type * * Type of the trace, span or session. */ type?: 'trace'; /** * Input * * Input to the trace or span. */ input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Spans * * Child spans. */ spans?: Array< | ({ type: 'agent'; } & AgentSpan) | ({ type: 'workflow'; } & WorkflowSpan) | ({ type: 'llm'; } & LlmSpan) | ({ type: 'retriever'; } & RetrieverSpan) | ({ type: 'tool'; } & ToolSpan) | ({ type: 'control'; } & ControlSpan) >; }; /** * TraceMetadata */ export type TraceMetadata = { /** * Id * * Unique identifier for the request. */ id?: string; /** * Received At * * Time the request was received by the server in nanoseconds. */ received_at?: number; /** * Response At * * Time the response was sent by the server in nanoseconds. */ response_at?: number; /** * Execution Time * * Execution time for the request (in seconds). */ execution_time?: number; }; /** * UncertaintyScorer */ export type UncertaintyScorer = { /** * Name */ name?: 'uncertainty'; /** * Filters * * List of filters to apply to the scorer. */ filters?: Array< | ({ name: 'node_name'; } & NodeNameFilter) | ({ name: 'metadata'; } & MetadataFilter) | ({ name: 'modality'; } & ModalityFilter) > | null; }; /** * UpdateDatasetContentRequest * * This structure represent the valid edits operations that can be performed on a dataset. * There edit operations are: * - Row edits: These edits are performed on a specific row of the dataset. * - EditMode.id: The edit is performed on the index (numeric index). DEPRECATED * - EditMode.row_id: The edit is performed on the row_id of the row. * - Global edits: These edits are performed on the entire dataset and should not be mixed with row edits. * - EditMode.global_edit */ export type UpdateDatasetContentRequest = { /** * Edits */ edits: Array< | ({ edit_type: 'prepend_row'; } & DatasetPrependRow) | ({ edit_type: 'append_row'; } & DatasetAppendRow) | ({ edit_type: 'update_row'; } & DatasetUpdateRow) | ({ edit_type: 'delete_row'; } & DatasetDeleteRow) | ({ edit_type: 'filter_rows'; } & DatasetFilterRows) | ({ edit_type: 'copy_record_data'; } & DatasetCopyRecordData) >; }; /** * UpdateDatasetRequest */ export type UpdateDatasetRequest = { /** * Name */ name?: string | Name | null; column_mapping?: ColumnMapping | null; /** * Draft */ draft?: false | null; }; /** * UpdateDatasetVersionRequest */ export type UpdateDatasetVersionRequest = { /** * Name */ name?: string | null; }; /** * UpdatePromptTemplateRequest */ export type UpdatePromptTemplateRequest = { /** * Name */ name?: string | Name | null; }; /** * UpdateScorerRequest */ export type UpdateScorerRequest = { /** * Name */ name?: string | null; /** * Description */ description?: string | null; /** * Tags */ tags?: Array | null; defaults?: ScorerDefaults | null; model_type?: ModelType | null; /** * Ground Truth */ ground_truth?: boolean | null; /** * Default Version Id */ default_version_id?: string | null; /** * User Prompt */ user_prompt?: string | null; /** * Scoreable Node Types */ scoreable_node_types?: Array | null; output_type?: OutputTypeEnum | null; input_type?: InputTypeEnum | null; /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; roll_up_method?: RollUpMethodDisplayOptions | null; /** * Metric Color Picker Config */ metric_color_picker_config?: | ({ type: 'numeric'; } & MetricColorPickerNumeric) | ({ type: 'boolean'; } & MetricColorPickerBoolean) | ({ type: 'categorical'; } & MetricColorPickerCategorical) | ({ type: 'multi_label'; } & MetricColorPickerMultiLabel) | null; }; /** * UpsertDatasetContentRequest */ export type UpsertDatasetContentRequest = { /** * Dataset Id * * The ID of the dataset to copy content from. */ dataset_id: string; /** * Version Index * * The version index of the dataset to copy content from. If not provided, the content will be copied from the latest version of the dataset. */ version_index?: number | null; }; /** * UserAction */ export const UserAction = { UPDATE: 'update', DELETE: 'delete', READ_API_KEYS: 'read_api_keys', CHANGE_ROLE_TO_ADMIN: 'change_role_to_admin', CHANGE_ROLE_TO_MANAGER: 'change_role_to_manager', CHANGE_ROLE_TO_USER: 'change_role_to_user', CHANGE_ROLE_TO_READ_ONLY: 'change_role_to_read_only' } as const; /** * UserAction */ export type UserAction = (typeof UserAction)[keyof typeof UserAction]; /** * UserCollaborator */ export type UserCollaborator = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; role: CollaboratorRole; /** * Created At */ created_at: string; /** * User Id */ user_id: string; /** * First Name */ first_name: string | null; /** * Last Name */ last_name: string | null; /** * Email */ email: string; }; /** * UserCollaboratorCreate * * Create a user collaborator using either user_id or email. * * When using email, if the user doesn't exist in the organization, * they will be invited automatically. */ export type UserCollaboratorCreate = { role?: CollaboratorRole; /** * User Id */ user_id?: string | null; /** * User Email */ user_email?: string | null; }; /** * UserDB */ export type UserDb = { /** * Id */ id: string; /** * Permissions */ permissions?: Array; /** * Email */ email: string; /** * First Name */ first_name?: string | null; /** * Last Name */ last_name?: string | null; auth_method?: AuthMethod; role?: UserRole; /** * Email Is Verified */ email_is_verified?: boolean | null; /** * Organization Id */ organization_id: string; /** * Organization Name */ organization_name: string; /** * Created At */ created_at: string; /** * Updated At */ updated_at: string; }; /** * UserInfo * * A user's basic information, used for display purposes. */ export type UserInfo = { /** * Id */ id: string; /** * Email */ email: string; /** * First Name */ first_name?: string | null; /** * Last Name */ last_name?: string | null; }; /** * UserRole */ export const UserRole = { ADMIN: 'admin', MANAGER: 'manager', USER: 'user', READ_ONLY: 'read_only' } as const; /** * UserRole */ export type UserRole = (typeof UserRole)[keyof typeof UserRole]; /** * ValidResult */ export type ValidResult = { /** * Result Type */ result_type?: 'valid'; /** * Score Type */ score_type: string; /** * Scoreable Node Types */ scoreable_node_types: Array; /** * Include Llm Credentials */ include_llm_credentials?: boolean; chain_aggregation?: ChainAggregationStrategy | null; /** * Test Scores */ test_scores: Array; }; /** * ValidateCodeScorerDatasetResponse */ export type ValidateCodeScorerDatasetResponse = { /** * Metrics Experiment Id */ metrics_experiment_id: string; /** * Project Id */ project_id: string; }; /** * ValidateCodeScorerResponse */ export type ValidateCodeScorerResponse = { /** * Task Id */ task_id: string; }; /** * ValidateLLMScorerDatasetRequest * * Request to validate a new LLM scorer against a dataset. */ export type ValidateLlmScorerDatasetRequest = { /** * Query */ query: string; /** * Response */ response: string; chain_poll_template: ChainPollTemplate; scorer_configuration: GeneratedScorerConfiguration; /** * User Prompt */ user_prompt: string; /** * Dataset Id */ dataset_id: string; /** * Dataset Version Index */ dataset_version_index?: number | null; /** * Limit * * Maximum number of dataset rows to process. */ limit?: number; /** * Starting Token * * Pagination offset into dataset rows. */ starting_token?: number | null; /** * Sort * * Optional sort configuration for dataset rows. */ sort?: { [key: string]: unknown; } | null; }; /** * ValidateLLMScorerDatasetResponse */ export type ValidateLlmScorerDatasetResponse = { /** * Metrics Experiment Id */ metrics_experiment_id: string; /** * Project Id */ project_id: string; }; /** * ValidateLLMScorerLogRecordRequest * * Request to validate a new LLM scorer based on a log record. * This is used to create a new experiment with the copied log records to store the metric testing results. */ export type ValidateLlmScorerLogRecordRequest = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Previous Last Row Id */ previous_last_row_id?: string | null; /** * Log Stream Id * * Log stream id associated with the traces. */ log_stream_id?: string | null; /** * Experiment Id * * Experiment id associated with the traces. */ experiment_id?: string | null; /** * Metrics Testing Id * * Metrics testing id associated with the traces. */ metrics_testing_id?: string | null; /** * Filters */ filters?: Array< | ({ type: 'id'; } & LogRecordsIdFilter) | ({ type: 'date'; } & LogRecordsDateFilter) | ({ type: 'number'; } & LogRecordsNumberFilter) | ({ type: 'boolean'; } & LogRecordsBooleanFilter) | ({ type: 'collection'; } & LogRecordsCollectionFilter) | ({ type: 'text'; } & LogRecordsTextFilter) | ({ type: 'fully_annotated'; } & LogRecordsFullyAnnotatedFilter) >; filter_tree?: FilterExpressionAnnotatedUnionLogRecordsIdFilterLogRecordsDateFilterLogRecordsNumberFilterLogRecordsBooleanFilterLogRecordsCollectionFilterLogRecordsTextFilterLogRecordsFullyAnnotatedFilterFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorType | null; /** * Sort for the query. Defaults to native sort (created_at, id descending). */ sort?: LogRecordsSortClause | null; /** * Truncate Fields */ truncate_fields?: boolean; /** * Include Counts * * If True, include computed child counts (e.g., num_traces for sessions, num_spans for traces). */ include_counts?: boolean; /** * Query */ query: string; /** * Response */ response: string; chain_poll_template: ChainPollTemplate; scorer_configuration: GeneratedScorerConfiguration; /** * User Prompt */ user_prompt: string; }; /** * ValidateLLMScorerLogRecordResponse */ export type ValidateLlmScorerLogRecordResponse = { /** * Metrics Experiment Id */ metrics_experiment_id: string; /** * Project Id */ project_id: string; }; /** * ValidateRegisteredScorerResult */ export type ValidateRegisteredScorerResult = { /** * Result */ result: ValidResult | InvalidResult; }; /** * ValidateScorerLogRecordResponse * * Response model for validating a scorer based on log records. * * Returns the uuid of the experiment created with the copied log records to store the metric testing results. * Also returns the project_id so callers can poll /projects/{project_id}/traces/search. */ export type ValidateScorerLogRecordResponse = { /** * Metrics Experiment Id */ metrics_experiment_id: string; /** * Project Id */ project_id: string; }; /** * ValidationError */ export type ValidationError = { /** * Location */ loc: Array; /** * Message */ msg: string; /** * Error Type */ type: string; }; /** * VegasGatewayIntegration */ export type VegasGatewayIntegration = { /** * Id */ id?: string | null; /** * Name */ name?: 'vegas_gateway'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * VegasGatewayIntegrationCreate */ export type VegasGatewayIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; /** * Endpoint */ endpoint: string; /** * Use Case */ use_case: string; /** * Token */ token: string; }; /** * VertexAIGCSConfig * * Configuration for GCS file uploads in Vertex AI. */ export type VertexAigcsConfig = { /** * Service Account Credentials */ service_account_credentials: string; /** * Bucket Name */ bucket_name: string; /** * Object Path Prefix */ object_path_prefix: string; }; /** * VertexAIGCSConfigResponse * * GCS config response model — credentials are never exposed in GET responses. */ export type VertexAigcsConfigResponse = { /** * Bucket Name */ bucket_name: string; /** * Object Path Prefix */ object_path_prefix: string; }; /** * VertexAIIntegration */ export type VertexAiIntegration = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; gcs_config?: VertexAigcsConfigResponse | null; /** * Id */ id?: string | null; /** * Name */ name?: 'vertex_ai'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * VertexAIIntegrationCreate */ export type VertexAiIntegrationCreate = { /** * Configuration for multi-modal (file upload) capabilities. */ multi_modal_config?: MultiModalModelIntegrationConfig | null; gcs_config?: VertexAigcsConfig | null; /** * Token */ token: string; }; /** * WebSearchAction * * Action payload for a web search call event. */ export type WebSearchAction = { /** * Type * * Type of web search action */ type: 'search'; /** * Query * * Search query string */ query?: string | null; /** * Sources * * Optional provider-specific sources */ sources?: unknown | null; }; /** * WebSearchCallEvent * * An OpenAI-style web search call event. */ export type WebSearchCallEvent = { /** * Type */ type?: 'web_search_call'; /** * Id * * Unique identifier for the event */ id?: string | null; /** * Status of the event */ status?: EventStatus | null; /** * Metadata * * Provider-specific metadata and additional fields */ metadata?: { [key: string]: unknown; } | null; /** * Error Message * * Error message if the event failed */ error_message?: string | null; /** * Web search action payload */ action: WebSearchAction; }; /** * WorkflowSpan */ export type WorkflowSpan = { /** * Type * * Type of the trace, span or session. */ type?: 'workflow'; /** * Input * * Input to the trace or span. */ input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Redacted Input * * Redacted input of the trace or span. */ redacted_input?: | string | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | null; /** * Output * * Output of the trace or span. */ output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Redacted Output * * Redacted output of the trace or span. */ redacted_output?: | string | GalileoCoreSchemasLoggingLlmMessage | Array | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | ControlResult | null; /** * Name * * Name of the trace, span or session. */ name?: string; /** * Created * * Timestamp of the trace or span's creation. */ created_at?: string; /** * User Metadata * * Metadata associated with this trace or span. */ user_metadata?: { [key: string]: string; }; /** * Tags * * Tags associated with this trace or span. */ tags?: Array; /** * Status Code * * Status code of the trace or span. Used for logging failure or error states. */ status_code?: number | null; /** * Metrics associated with this trace or span. */ metrics?: Metrics; /** * External Id * * A user-provided session, trace or span ID. */ external_id?: string | null; /** * Dataset Input * * Input to the dataset associated with this trace */ dataset_input?: string | null; /** * Dataset Output * * Output from the dataset associated with this trace */ dataset_output?: string | null; /** * Dataset Metadata * * Metadata from the dataset associated with this trace */ dataset_metadata?: { [key: string]: string; }; /** * ID * * Galileo ID of the session, trace or span */ id?: string | null; /** * Session ID * * Galileo ID of the session containing the trace or span or session */ session_id?: string | null; /** * Trace ID * * Galileo ID of the trace containing the span (or the same value as id for a trace) */ trace_id?: string | null; /** * Step Number * * Topological step number of the span. */ step_number?: number | null; /** * Parent ID * * Galileo ID of the parent of this span */ parent_id?: string | null; /** * Spans * * Child spans. */ spans?: Array< | ({ type: 'agent'; } & AgentSpan) | ({ type: 'workflow'; } & WorkflowSpan) | ({ type: 'llm'; } & LlmSpan) | ({ type: 'retriever'; } & RetrieverSpan) | ({ type: 'tool'; } & ToolSpan) | ({ type: 'control'; } & ControlSpan) >; }; /** * WriterIntegration */ export type WriterIntegration = { /** * Organization Id */ organization_id: string; /** * Id */ id?: string | null; /** * Name */ name?: 'writer'; /** * Extra */ extra?: { [key: string]: unknown; } | null; }; /** * WriterIntegrationCreate */ export type WriterIntegrationCreate = { /** * Organization Id */ organization_id: string; /** * Token */ token: string; }; /** * BulkDeleteFailure * * Details about a failed deletion. */ export type ApiSchemasContentDatasetBulkDeleteFailure = { /** * Dataset Id */ dataset_id: string; /** * Dataset Name */ dataset_name: string; /** * Reason */ reason: string; }; /** * BulkDeleteFailure * * Details about a failed deletion. */ export type ApiSchemasContentPromptBulkDeleteFailure = { /** * Template Id */ template_id: string; /** * Reason */ reason: string; }; /** * ModelProperties */ export type ApiSchemasIntegrationLlmIntegrationModelProperties = { /** * Alias */ alias: string; /** * Name */ name: string; /** * Input Modalities */ input_modalities: Array; /** * Multimodal Capabilities */ multimodal_capabilities?: Array; }; /** * GetProjectsPaginatedResponse */ export type ApiSchemasProjectGetProjectsPaginatedResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Projects */ projects: Array; }; /** * GetProjectsPaginatedResponse * * Response model for the V2 projects paginated endpoint. */ export type ApiSchemasProjectV2GetProjectsPaginatedResponse = { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; /** * Paginated */ paginated?: boolean; /** * Next Starting Token */ next_starting_token?: number | null; /** * Projects */ projects: Array; /** * Total Count * * Total number of projects matching the filters. */ total_count: number; }; /** * Message */ export type GalileoCoreSchemasLoggingLlmMessage = { /** * Content */ content: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; role: GalileoCoreSchemasLoggingLlmMessageRole; /** * Tool Call Id */ tool_call_id?: string | null; /** * Tool Calls */ tool_calls?: Array | null; }; /** * MessageRole */ export const GalileoCoreSchemasLoggingLlmMessageRole = { AGENT: 'agent', ASSISTANT: 'assistant', DEVELOPER: 'developer', FUNCTION: 'function', SYSTEM: 'system', TOOL: 'tool', USER: 'user' } as const; /** * MessageRole */ export type GalileoCoreSchemasLoggingLlmMessageRole = (typeof GalileoCoreSchemasLoggingLlmMessageRole)[keyof typeof GalileoCoreSchemasLoggingLlmMessageRole]; /** * Message */ export type GalileoCoreSchemasSharedMessageMessage = { /** * Content */ content: | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) >; /** * Role */ role: string | GalileoCoreSchemasSharedMessageRoleMessageRole; [key: string]: | unknown | string | Array< | ({ type: 'text'; } & TextContentPart) | ({ type: 'file'; } & FileContentPart) > | string | GalileoCoreSchemasSharedMessageRoleMessageRole; }; /** * MessageRole */ export const GalileoCoreSchemasSharedMessageRoleMessageRole = { AGENT: 'agent', ASSISTANT: 'assistant', FUNCTION: 'function', SYSTEM: 'system', TOOL: 'tool', USER: 'user' } as const; /** * MessageRole */ export type GalileoCoreSchemasSharedMessageRoleMessageRole = (typeof GalileoCoreSchemasSharedMessageRoleMessageRole)[keyof typeof GalileoCoreSchemasSharedMessageRoleMessageRole]; /** * ScorerName */ export const GalileoCoreSchemasSharedScorersScorerNameScorerName = { ACTION_COMPLETION_LUNA: 'action_completion_luna', ACTION_ADVANCEMENT_LUNA: 'action_advancement_luna', AGENTIC_SESSION_SUCCESS: 'agentic_session_success', AGENTIC_WORKFLOW_SUCCESS: 'agentic_workflow_success', AGENT_EFFICIENCY: 'agent_efficiency', AGENT_FLOW: 'agent_flow', BLEU: 'bleu', CHUNK_ATTRIBUTION_UTILIZATION_LUNA: 'chunk_attribution_utilization_luna', CHUNK_ATTRIBUTION_UTILIZATION: 'chunk_attribution_utilization', CHUNK_RELEVANCE: 'chunk_relevance', CHUNK_RELEVANCE_LUNA: 'chunk_relevance_luna', CONTEXT_PRECISION: 'context_precision', PRECISION_AT_K: 'precision_at_k', COMPLETENESS_LUNA: 'completeness_luna', COMPLETENESS: 'completeness', CONTEXT_ADHERENCE: 'context_adherence', CONTEXT_ADHERENCE_LUNA: 'context_adherence_luna', CONTEXT_RELEVANCE: 'context_relevance', CONTEXT_RELEVANCE_LUNA: 'context_relevance_luna', CONVERSATION_QUALITY: 'conversation_quality', CORRECTNESS: 'correctness', GROUND_TRUTH_ADHERENCE: 'ground_truth_adherence', VISUAL_FIDELITY: 'visual_fidelity', VISUAL_QUALITY: 'visual_quality', INPUT_PII: 'input_pii', INPUT_PII_GPT: 'input_pii_gpt', INPUT_SEXIST: 'input_sexist', INPUT_SEXIST_LUNA: 'input_sexist_luna', INPUT_TONE: 'input_tone', INPUT_TONE_GPT: 'input_tone_gpt', INPUT_TOXICITY: 'input_toxicity', INPUT_TOXICITY_LUNA: 'input_toxicity_luna', INSTRUCTION_ADHERENCE: 'instruction_adherence', OUTPUT_PII: 'output_pii', OUTPUT_PII_GPT: 'output_pii_gpt', OUTPUT_SEXIST: 'output_sexist', OUTPUT_SEXIST_LUNA: 'output_sexist_luna', OUTPUT_TONE: 'output_tone', OUTPUT_TONE_GPT: 'output_tone_gpt', OUTPUT_TOXICITY: 'output_toxicity', OUTPUT_TOXICITY_LUNA: 'output_toxicity_luna', PROMPT_INJECTION: 'prompt_injection', PROMPT_INJECTION_LUNA: 'prompt_injection_luna', PROMPT_PERPLEXITY: 'prompt_perplexity', ROUGE: 'rouge', REASONING_COHERENCE: 'reasoning_coherence', SQL_EFFICIENCY: 'sql_efficiency', SQL_ADHERENCE: 'sql_adherence', SQL_INJECTION: 'sql_injection', SQL_CORRECTNESS: 'sql_correctness', TOOL_ERROR_RATE: 'tool_error_rate', TOOL_ERROR_RATE_LUNA: 'tool_error_rate_luna', TOOL_SELECTION_QUALITY: 'tool_selection_quality', TOOL_SELECTION_QUALITY_LUNA: 'tool_selection_quality_luna', UNCERTAINTY: 'uncertainty', USER_INTENT_CHANGE: 'user_intent_change', INTERRUPTION_DETECTION: 'interruption_detection' } as const; /** * ScorerName */ export type GalileoCoreSchemasSharedScorersScorerNameScorerName = (typeof GalileoCoreSchemasSharedScorersScorerNameScorerName)[keyof typeof GalileoCoreSchemasSharedScorersScorerNameScorerName]; /** * ModelProperties * * Properties for a model in a custom integration. * * Attributes: * name: The model name used when calling the API. * alias: The display name/alias for the model in the UI. * Defaults to ``name`` when not provided. * based_on: Alias of a built-in model whose parameter map should be used. * Mutually exclusive with ``supported_parameters``. * supported_parameters: Explicit list of parameter names this model supports. * Mutually exclusive with ``based_on``. */ export type PromptgalileoSchemasConfigCustomModelProperties = { /** * Name * * The model name used when calling the API. */ name: string; /** * Alias * * The display name/alias for the model. Defaults to name. */ alias?: string | null; /** * Based On * * Alias of a built-in model whose parameter map should be used. For example, 'gpt-5.4'. Mutually exclusive with supported_parameters. */ based_on?: string | null; /** * Supported Parameters * * Explicit list of parameter names this model supports (e.g., ['max_tokens', 'temperature', 'verbosity']). Each name must be a valid RunParamsMap field. Mutually exclusive with based_on. */ supported_parameters?: Array | null; }; /** * ScorerName */ export const PromptgalileoSchemasScorerNameScorerName = { _COMPLETENESS_GPT: '_completeness_gpt', _CONTEXT_ADHERENCE_LUNA: '_context_adherence_luna', _CONTEXT_RELEVANCE: '_context_relevance', _CONTEXT_RELEVANCE_LUNA: '_context_relevance_luna', _CHUNK_RELEVANCE_LUNA: '_chunk_relevance_luna', _CHUNK_ATTRIBUTION_UTILIZATION_GPT: '_chunk_attribution_utilization_gpt', _FACTUALITY: '_factuality', _GROUNDEDNESS: '_groundedness', _LATENCY: '_latency', _PROMPT_PERPLEXITY: '_prompt_perplexity', _PROTECT_STATUS: '_protect_status', _PII: '_pii', _INPUT_PII: '_input_pii', _SEXIST: '_sexist', _INPUT_SEXIST: '_input_sexist', _SEXIST_GPT: '_sexist_gpt', _INPUT_SEXIST_GPT: '_input_sexist_gpt', _TONE: '_tone', _INPUT_TONE: '_input_tone', _TOXICITY: '_toxicity', _TOXICITY_GPT: '_toxicity_gpt', _INPUT_TOXICITY: '_input_toxicity', _INPUT_TOXICITY_GPT: '_input_toxicity_gpt', _USER_REGISTERED: '_user_registered', _COMPOSITE_USER_REGISTERED: '_composite_user_registered', _USER_SUBMITTED: '_user_submitted', _USER_GENERATED: '_user_generated', _USER_FINETUNED: '_user_finetuned', _UNCERTAINTY: '_uncertainty', _BLEU: '_bleu', _COST: '_cost', _ROUGE: '_rouge', _PROMPT_INJECTION_GPT: '_prompt_injection_gpt', _PROMPT_INJECTION: '_prompt_injection', _RAG_NLI: '_rag_nli', _ADHERENCE_NLI: '_adherence_nli', _COMPLETENESS_NLI: '_completeness_nli', _CHUNK_ATTRIBUTION_UTILIZATION_NLI: '_chunk_attribution_utilization_nli', _INSTRUCTION_ADHERENCE: '_instruction_adherence', _GROUND_TRUTH_ADHERENCE: '_ground_truth_adherence', _TOOL_SELECTION_QUALITY: '_tool_selection_quality', _TOOL_SELECTION_QUALITY_LUNA: '_tool_selection_quality_luna', _TOOL_ERROR_RATE: '_tool_error_rate', _TOOL_ERROR_RATE_LUNA: '_tool_error_rate_luna', _ACTION_COMPLETION_LUNA: '_action_completion_luna', _AGENTIC_SESSION_SUCCESS: '_agentic_session_success', _ACTION_ADVANCEMENT_LUNA: '_action_advancement_luna', _AGENTIC_WORKFLOW_SUCCESS: '_agentic_workflow_success', _GENERIC_WIZARD: '_generic_wizard', _CUSTOMIZED_COMPLETENESS_GPT: '_customized_completeness_gpt', _CUSTOMIZED_FACTUALITY: '_customized_factuality', _CUSTOMIZED_GROUNDEDNESS: '_customized_groundedness', _CUSTOMIZED_CHUNK_ATTRIBUTION_UTILIZATION_GPT: '_customized_chunk_attribution_utilization_gpt', _CUSTOMIZED_INSTRUCTION_ADHERENCE: '_customized_instruction_adherence', _CUSTOMIZED_GROUND_TRUTH_ADHERENCE: '_customized_ground_truth_adherence', _CUSTOMIZED_PROMPT_INJECTION_GPT: '_customized_prompt_injection_gpt', _CUSTOMIZED_TOOL_SELECTION_QUALITY: '_customized_tool_selection_quality', _CUSTOMIZED_TOOL_ERROR_RATE: '_customized_tool_error_rate', _CUSTOMIZED_AGENTIC_SESSION_SUCCESS: '_customized_agentic_session_success', _CUSTOMIZED_AGENTIC_WORKFLOW_SUCCESS: '_customized_agentic_workflow_success', _CUSTOMIZED_SEXIST_GPT: '_customized_sexist_gpt', _CUSTOMIZED_INPUT_SEXIST_GPT: '_customized_input_sexist_gpt', _CUSTOMIZED_TOXICITY_GPT: '_customized_toxicity_gpt', _CUSTOMIZED_INPUT_TOXICITY_GPT: '_customized_input_toxicity_gpt' } as const; /** * ScorerName */ export type PromptgalileoSchemasScorerNameScorerName = (typeof PromptgalileoSchemasScorerNameScorerName)[keyof typeof PromptgalileoSchemasScorerNameScorerName]; export type HealthcheckHealthcheckGetData = { body?: never; path?: never; query?: never; url: '/healthcheck'; }; export type HealthcheckHealthcheckGetResponses = { /** * Successful Response */ 200: HealthcheckResponse; }; export type HealthcheckHealthcheckGetResponse = HealthcheckHealthcheckGetResponses[keyof HealthcheckHealthcheckGetResponses]; export type LoginEmailLoginPostData = { body: BodyLoginEmailLoginPost; path?: never; query?: never; url: '/login'; }; export type LoginEmailLoginPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type LoginEmailLoginPostError = LoginEmailLoginPostErrors[keyof LoginEmailLoginPostErrors]; export type LoginEmailLoginPostResponses = { /** * Successful Response */ 200: Token; }; export type LoginEmailLoginPostResponse = LoginEmailLoginPostResponses[keyof LoginEmailLoginPostResponses]; export type LoginApiKeyLoginApiKeyPostData = { body: ApiKeyLoginRequest; path?: never; query?: never; url: '/login/api_key'; }; export type LoginApiKeyLoginApiKeyPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type LoginApiKeyLoginApiKeyPostError = LoginApiKeyLoginApiKeyPostErrors[keyof LoginApiKeyLoginApiKeyPostErrors]; export type LoginApiKeyLoginApiKeyPostResponses = { /** * Successful Response */ 200: Token; }; export type LoginApiKeyLoginApiKeyPostResponse = LoginApiKeyLoginApiKeyPostResponses[keyof LoginApiKeyLoginApiKeyPostResponses]; export type ListPromptDatasetsProjectsProjectIdPromptDatasetsGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/projects/{project_id}/prompt_datasets'; }; export type ListPromptDatasetsProjectsProjectIdPromptDatasetsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListPromptDatasetsProjectsProjectIdPromptDatasetsGetError = ListPromptDatasetsProjectsProjectIdPromptDatasetsGetErrors[keyof ListPromptDatasetsProjectsProjectIdPromptDatasetsGetErrors]; export type ListPromptDatasetsProjectsProjectIdPromptDatasetsGetResponses = { /** * Successful Response */ 200: ListPromptDatasetResponse; }; export type ListPromptDatasetsProjectsProjectIdPromptDatasetsGetResponse = ListPromptDatasetsProjectsProjectIdPromptDatasetsGetResponses[keyof ListPromptDatasetsProjectsProjectIdPromptDatasetsGetResponses]; export type UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostData = { body: BodyUploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPost; path: { /** * Project Id */ project_id: string; }; query?: { format?: DatasetFormat; /** * Hidden */ hidden?: boolean; }; url: '/projects/{project_id}/prompt_datasets'; }; export type UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostError = UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostErrors[keyof UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostErrors]; export type UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostResponses = { /** * Successful Response */ 200: PromptDatasetDb; }; export type UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostResponse = UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostResponses[keyof UploadPromptEvaluationDatasetProjectsProjectIdPromptDatasetsPostResponses]; export type ListDatasetsDatasetsGetData = { body?: never; path?: never; query?: { /** * Actions * * Actions to include in the 'permissions' field. */ actions?: Array; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets'; }; export type ListDatasetsDatasetsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListDatasetsDatasetsGetError = ListDatasetsDatasetsGetErrors[keyof ListDatasetsDatasetsGetErrors]; export type ListDatasetsDatasetsGetResponses = { /** * Successful Response */ 200: ListDatasetResponse; }; export type ListDatasetsDatasetsGetResponse = ListDatasetsDatasetsGetResponses[keyof ListDatasetsDatasetsGetResponses]; export type CreateDatasetDatasetsPostData = { body?: BodyCreateDatasetDatasetsPost; path?: never; query?: { format?: DatasetFormat; /** * Hidden */ hidden?: boolean; }; url: '/datasets'; }; export type CreateDatasetDatasetsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateDatasetDatasetsPostError = CreateDatasetDatasetsPostErrors[keyof CreateDatasetDatasetsPostErrors]; export type CreateDatasetDatasetsPostResponses = { /** * Successful Response */ 200: DatasetDb; }; export type CreateDatasetDatasetsPostResponse = CreateDatasetDatasetsPostResponses[keyof CreateDatasetDatasetsPostResponses]; export type BulkDeleteDatasetsDatasetsBulkDeleteDeleteData = { body: BulkDeleteDatasetsRequest; path?: never; query?: never; url: '/datasets/bulk_delete'; }; export type BulkDeleteDatasetsDatasetsBulkDeleteDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type BulkDeleteDatasetsDatasetsBulkDeleteDeleteError = BulkDeleteDatasetsDatasetsBulkDeleteDeleteErrors[keyof BulkDeleteDatasetsDatasetsBulkDeleteDeleteErrors]; export type BulkDeleteDatasetsDatasetsBulkDeleteDeleteResponses = { /** * Successful Response */ 200: BulkDeleteDatasetsResponse; }; export type BulkDeleteDatasetsDatasetsBulkDeleteDeleteResponse = BulkDeleteDatasetsDatasetsBulkDeleteDeleteResponses[keyof BulkDeleteDatasetsDatasetsBulkDeleteDeleteResponses]; export type DeleteDatasetDatasetsDatasetIdDeleteData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}'; }; export type DeleteDatasetDatasetsDatasetIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteDatasetDatasetsDatasetIdDeleteError = DeleteDatasetDatasetsDatasetIdDeleteErrors[keyof DeleteDatasetDatasetsDatasetIdDeleteErrors]; export type DeleteDatasetDatasetsDatasetIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type GetDatasetDatasetsDatasetIdGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}'; }; export type GetDatasetDatasetsDatasetIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetDatasetDatasetsDatasetIdGetError = GetDatasetDatasetsDatasetIdGetErrors[keyof GetDatasetDatasetsDatasetIdGetErrors]; export type GetDatasetDatasetsDatasetIdGetResponses = { /** * Successful Response */ 200: DatasetDb; }; export type GetDatasetDatasetsDatasetIdGetResponse = GetDatasetDatasetsDatasetIdGetResponses[keyof GetDatasetDatasetsDatasetIdGetResponses]; export type UpdateDatasetDatasetsDatasetIdPatchData = { body: UpdateDatasetRequest; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}'; }; export type UpdateDatasetDatasetsDatasetIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateDatasetDatasetsDatasetIdPatchError = UpdateDatasetDatasetsDatasetIdPatchErrors[keyof UpdateDatasetDatasetsDatasetIdPatchErrors]; export type UpdateDatasetDatasetsDatasetIdPatchResponses = { /** * Successful Response */ 200: DatasetDb; }; export type UpdateDatasetDatasetsDatasetIdPatchResponse = UpdateDatasetDatasetsDatasetIdPatchResponses[keyof UpdateDatasetDatasetsDatasetIdPatchResponses]; export type QueryDatasetsDatasetsQueryPostData = { body?: ListDatasetParams; path?: never; query?: { /** * Actions * * Actions to include in the 'permissions' field. */ actions?: Array; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/query'; }; export type QueryDatasetsDatasetsQueryPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryDatasetsDatasetsQueryPostError = QueryDatasetsDatasetsQueryPostErrors[keyof QueryDatasetsDatasetsQueryPostErrors]; export type QueryDatasetsDatasetsQueryPostResponses = { /** * Successful Response */ 200: ListDatasetResponse; }; export type QueryDatasetsDatasetsQueryPostResponse = QueryDatasetsDatasetsQueryPostResponses[keyof QueryDatasetsDatasetsQueryPostResponses]; export type DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/projects/{project_id}/prompt_datasets/{dataset_id}'; }; export type DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteError = DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteErrors[keyof DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteErrors]; export type DeletePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/projects/{project_id}/prompt_datasets/{dataset_id}'; }; export type DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetError = DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetErrors[keyof DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetErrors]; export type DownloadPromptDatasetProjectsProjectIdPromptDatasetsDatasetIdGetResponses = { /** * Successful Response */ 200: unknown; }; export type UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutData = { body?: BodyUpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPut; path: { /** * Project Id */ project_id: string; /** * Dataset Id */ dataset_id: string; }; query?: { /** * File Name */ file_name?: string | null; /** * Num Rows */ num_rows?: number | null; format?: DatasetFormat; /** * Hidden */ hidden?: boolean; }; url: '/projects/{project_id}/prompt_datasets/{dataset_id}'; }; export type UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutError = UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutErrors[keyof UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutErrors]; export type UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutResponses = { /** * Successful Response */ 200: PromptDatasetDb; }; export type UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutResponse = UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutResponses[keyof UpdatePromptDatasetProjectsProjectIdPromptDatasetsDatasetIdPutResponses]; export type GetDatasetContentDatasetsDatasetIdContentGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/content'; }; export type GetDatasetContentDatasetsDatasetIdContentGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetDatasetContentDatasetsDatasetIdContentGetError = GetDatasetContentDatasetsDatasetIdContentGetErrors[keyof GetDatasetContentDatasetsDatasetIdContentGetErrors]; export type GetDatasetContentDatasetsDatasetIdContentGetResponses = { /** * Successful Response */ 200: DatasetContent; }; export type GetDatasetContentDatasetsDatasetIdContentGetResponse = GetDatasetContentDatasetsDatasetIdContentGetResponses[keyof GetDatasetContentDatasetsDatasetIdContentGetResponses]; export type UpdateDatasetContentDatasetsDatasetIdContentPatchData = { body: UpdateDatasetContentRequest; headers?: { /** * If-Match * * ETag of the dataset as a version identifier. */ 'If-Match'?: string | null; }; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}/content'; }; export type UpdateDatasetContentDatasetsDatasetIdContentPatchErrors = { /** * Dataset not found */ 404: unknown; /** * ETag mismatch; client's If-Match does not match current resource version */ 412: unknown; /** * Validation error in request body */ 422: HttpValidationError; /** * Resource lock could not be acquired; another update may be in progress */ 423: unknown; }; export type UpdateDatasetContentDatasetsDatasetIdContentPatchError = UpdateDatasetContentDatasetsDatasetIdContentPatchErrors[keyof UpdateDatasetContentDatasetsDatasetIdContentPatchErrors]; export type UpdateDatasetContentDatasetsDatasetIdContentPatchResponses = { /** * Dataset content updated successfully */ 204: void; }; export type UpdateDatasetContentDatasetsDatasetIdContentPatchResponse = UpdateDatasetContentDatasetsDatasetIdContentPatchResponses[keyof UpdateDatasetContentDatasetsDatasetIdContentPatchResponses]; export type UpsertDatasetContentDatasetsDatasetIdContentPutData = { /** * Body */ body: RollbackRequest | UpsertDatasetContentRequest; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}/content'; }; export type UpsertDatasetContentDatasetsDatasetIdContentPutErrors = { /** * Dataset not found */ 404: unknown; /** * Validation error in request body */ 422: HttpValidationError; /** * Resource lock could not be acquired; another update may be in progress */ 423: unknown; }; export type UpsertDatasetContentDatasetsDatasetIdContentPutError = UpsertDatasetContentDatasetsDatasetIdContentPutErrors[keyof UpsertDatasetContentDatasetsDatasetIdContentPutErrors]; export type UpsertDatasetContentDatasetsDatasetIdContentPutResponses = { /** * Dataset content upserted successfully */ 204: void; }; export type UpsertDatasetContentDatasetsDatasetIdContentPutResponse = UpsertDatasetContentDatasetsDatasetIdContentPutResponses[keyof UpsertDatasetContentDatasetsDatasetIdContentPutResponses]; export type DownloadDatasetDatasetsDatasetIdDownloadGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}/download'; }; export type DownloadDatasetDatasetsDatasetIdDownloadGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DownloadDatasetDatasetsDatasetIdDownloadGetError = DownloadDatasetDatasetsDatasetIdDownloadGetErrors[keyof DownloadDatasetDatasetsDatasetIdDownloadGetErrors]; export type DownloadDatasetDatasetsDatasetIdDownloadGetResponses = { /** * Successful Response */ 200: unknown; }; export type PreviewDatasetDatasetsDatasetIdPreviewPostData = { body: PreviewDatasetRequest; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/preview'; }; export type PreviewDatasetDatasetsDatasetIdPreviewPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type PreviewDatasetDatasetsDatasetIdPreviewPostError = PreviewDatasetDatasetsDatasetIdPreviewPostErrors[keyof PreviewDatasetDatasetsDatasetIdPreviewPostErrors]; export type PreviewDatasetDatasetsDatasetIdPreviewPostResponses = { /** * Successful Response */ 200: DatasetContent; }; export type PreviewDatasetDatasetsDatasetIdPreviewPostResponse = PreviewDatasetDatasetsDatasetIdPreviewPostResponses[keyof PreviewDatasetDatasetsDatasetIdPreviewPostResponses]; export type QueryDatasetContentDatasetsDatasetIdContentQueryPostData = { body?: QueryDatasetParams; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/content/query'; }; export type QueryDatasetContentDatasetsDatasetIdContentQueryPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryDatasetContentDatasetsDatasetIdContentQueryPostError = QueryDatasetContentDatasetsDatasetIdContentQueryPostErrors[keyof QueryDatasetContentDatasetsDatasetIdContentQueryPostErrors]; export type QueryDatasetContentDatasetsDatasetIdContentQueryPostResponses = { /** * Successful Response */ 200: DatasetContent; }; export type QueryDatasetContentDatasetsDatasetIdContentQueryPostResponse = QueryDatasetContentDatasetsDatasetIdContentQueryPostResponses[keyof QueryDatasetContentDatasetsDatasetIdContentQueryPostResponses]; export type ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/users'; }; export type ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetError = ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetErrors[keyof ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetErrors]; export type ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetResponses = { /** * Successful Response */ 200: ListUserCollaboratorsResponse; }; export type ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetResponse = ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetResponses[keyof ListUserDatasetCollaboratorsDatasetsDatasetIdUsersGetResponses]; export type CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostData = { /** * Body */ body: Array; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}/users'; }; export type CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostError = CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostErrors[keyof CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostErrors]; export type CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostResponses = { /** * Response Create User Dataset Collaborators Datasets Dataset Id Users Post * * Successful Response */ 200: Array; }; export type CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostResponse = CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostResponses[keyof CreateUserDatasetCollaboratorsDatasetsDatasetIdUsersPostResponses]; export type ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/groups'; }; export type ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetError = ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetErrors[keyof ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetErrors]; export type ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetResponses = { /** * Successful Response */ 200: ListGroupCollaboratorsResponse; }; export type ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetResponse = ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetResponses[keyof ListGroupDatasetCollaboratorsDatasetsDatasetIdGroupsGetResponses]; export type CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostData = { /** * Body */ body: Array; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}/groups'; }; export type CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostError = CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostErrors[keyof CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostErrors]; export type CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostResponses = { /** * Response Create Group Dataset Collaborators Datasets Dataset Id Groups Post * * Successful Response */ 200: Array; }; export type CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostResponse = CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostResponses[keyof CreateGroupDatasetCollaboratorsDatasetsDatasetIdGroupsPostResponses]; export type DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/datasets/{dataset_id}/users/{user_id}'; }; export type DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteError = DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteErrors[keyof DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteErrors]; export type DeleteUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchData = { body: CollaboratorUpdate; path: { /** * Dataset Id */ dataset_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/datasets/{dataset_id}/users/{user_id}'; }; export type UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchError = UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchErrors[keyof UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchErrors]; export type UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchResponses = { /** * Successful Response */ 200: UserCollaborator; }; export type UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchResponse = UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchResponses[keyof UpdateUserDatasetCollaboratorDatasetsDatasetIdUsersUserIdPatchResponses]; export type DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/datasets/{dataset_id}/groups/{group_id}'; }; export type DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteError = DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteErrors[keyof DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteErrors]; export type DeleteGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchData = { body: CollaboratorUpdate; path: { /** * Dataset Id */ dataset_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/datasets/{dataset_id}/groups/{group_id}'; }; export type UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchError = UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchErrors[keyof UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchErrors]; export type UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchResponses = { /** * Successful Response */ 200: GroupCollaborator; }; export type UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchResponse = UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchResponses[keyof UpdateGroupDatasetCollaboratorDatasetsDatasetIdGroupsGroupIdPatchResponses]; export type QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostData = { body?: ListDatasetVersionParams; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/versions/query'; }; export type QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostError = QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostErrors[keyof QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostErrors]; export type QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostResponses = { /** * Successful Response */ 200: ListDatasetVersionResponse; }; export type QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostResponse = QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostResponses[keyof QueryDatasetVersionsDatasetsDatasetIdVersionsQueryPostResponses]; export type GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; /** * Version Index */ version_index: number; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/versions/{version_index}/content'; }; export type GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetError = GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetErrors[keyof GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetErrors]; export type GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetResponses = { /** * Successful Response */ 200: DatasetContent; }; export type GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetResponse = GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetResponses[keyof GetDatasetVersionContentDatasetsDatasetIdVersionsVersionIndexContentGetResponses]; export type UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchData = { body: UpdateDatasetVersionRequest; path: { /** * Dataset Id */ dataset_id: string; /** * Version Index */ version_index: number; }; query?: never; url: '/datasets/{dataset_id}/versions/{version_index}'; }; export type UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchError = UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchErrors[keyof UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchErrors]; export type UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchResponses = { /** * Successful Response */ 200: DatasetVersionDb; }; export type UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchResponse = UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchResponses[keyof UpdateDatasetVersionDatasetsDatasetIdVersionsVersionIndexPatchResponses]; export type ListDatasetProjectsDatasetsDatasetIdProjectsGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/datasets/{dataset_id}/projects'; }; export type ListDatasetProjectsDatasetsDatasetIdProjectsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListDatasetProjectsDatasetsDatasetIdProjectsGetError = ListDatasetProjectsDatasetsDatasetIdProjectsGetErrors[keyof ListDatasetProjectsDatasetsDatasetIdProjectsGetErrors]; export type ListDatasetProjectsDatasetsDatasetIdProjectsGetResponses = { /** * Successful Response */ 200: ListDatasetProjectsResponse; }; export type ListDatasetProjectsDatasetsDatasetIdProjectsGetResponse = ListDatasetProjectsDatasetsDatasetIdProjectsGetResponses[keyof ListDatasetProjectsDatasetsDatasetIdProjectsGetResponses]; export type ExtendDatasetContentDatasetsExtendPostData = { body: SyntheticDatasetExtensionRequest; path?: never; query?: never; url: '/datasets/extend'; }; export type ExtendDatasetContentDatasetsExtendPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ExtendDatasetContentDatasetsExtendPostError = ExtendDatasetContentDatasetsExtendPostErrors[keyof ExtendDatasetContentDatasetsExtendPostErrors]; export type ExtendDatasetContentDatasetsExtendPostResponses = { /** * Successful Response */ 200: SyntheticDatasetExtensionResponse; }; export type ExtendDatasetContentDatasetsExtendPostResponse = ExtendDatasetContentDatasetsExtendPostResponses[keyof ExtendDatasetContentDatasetsExtendPostResponses]; export type GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/extend/{dataset_id}'; }; export type GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetError = GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetErrors[keyof GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetErrors]; export type GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetResponses = { /** * Successful Response */ 200: JobProgress; }; export type GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetResponse = GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetResponses[keyof GetDatasetSyntheticExtendStatusDatasetsExtendDatasetIdGetResponses]; export type GetProjectsPaginatedProjectsPaginatedPostData = { body?: ProjectCollectionParams; path?: never; query?: { /** * Actions * * Actions to include in the 'permissions' field. */ actions?: Array; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/projects/paginated'; }; export type GetProjectsPaginatedProjectsPaginatedPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetProjectsPaginatedProjectsPaginatedPostError = GetProjectsPaginatedProjectsPaginatedPostErrors[keyof GetProjectsPaginatedProjectsPaginatedPostErrors]; export type GetProjectsPaginatedProjectsPaginatedPostResponses = { /** * Successful Response */ 200: ApiSchemasProjectGetProjectsPaginatedResponse; }; export type GetProjectsPaginatedProjectsPaginatedPostResponse = GetProjectsPaginatedProjectsPaginatedPostResponses[keyof GetProjectsPaginatedProjectsPaginatedPostResponses]; export type GetProjectsCountProjectsCountPostData = { body?: ProjectCollectionParams; path?: never; query?: never; url: '/projects/count'; }; export type GetProjectsCountProjectsCountPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetProjectsCountProjectsCountPostError = GetProjectsCountProjectsCountPostErrors[keyof GetProjectsCountProjectsCountPostErrors]; export type GetProjectsCountProjectsCountPostResponses = { /** * Response Get Projects Count Projects Count Post * * Successful Response */ 200: number; }; export type GetProjectsCountProjectsCountPostResponse = GetProjectsCountProjectsCountPostResponses[keyof GetProjectsCountProjectsCountPostResponses]; export type GetAllProjectsProjectsAllGetData = { body?: never; path?: never; query?: { /** * Type */ type?: ProjectType | null; }; url: '/projects/all'; }; export type GetAllProjectsProjectsAllGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetAllProjectsProjectsAllGetError = GetAllProjectsProjectsAllGetErrors[keyof GetAllProjectsProjectsAllGetErrors]; export type GetAllProjectsProjectsAllGetResponses = { /** * Response Get All Projects Projects All Get * * Successful Response */ 200: Array; }; export type GetAllProjectsProjectsAllGetResponse = GetAllProjectsProjectsAllGetResponses[keyof GetAllProjectsProjectsAllGetResponses]; export type GetProjectsProjectsGetData = { body?: never; path?: never; query?: { /** * Project Name */ project_name?: string | null; /** * Type */ type?: ProjectType | null; }; url: '/projects'; }; export type GetProjectsProjectsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetProjectsProjectsGetError = GetProjectsProjectsGetErrors[keyof GetProjectsProjectsGetErrors]; export type GetProjectsProjectsGetResponses = { /** * Response Get Projects Projects Get * * Successful Response */ 200: Array; }; export type GetProjectsProjectsGetResponse = GetProjectsProjectsGetResponses[keyof GetProjectsProjectsGetResponses]; export type CreateProjectProjectsPostData = { body: ProjectCreate; path?: never; query?: never; url: '/projects'; }; export type CreateProjectProjectsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateProjectProjectsPostError = CreateProjectProjectsPostErrors[keyof CreateProjectProjectsPostErrors]; export type CreateProjectProjectsPostResponses = { /** * Successful Response */ 200: ProjectCreateResponse; }; export type CreateProjectProjectsPostResponse = CreateProjectProjectsPostResponses[keyof CreateProjectProjectsPostResponses]; export type UploadFileProjectsProjectIdUploadFilePostData = { body: BodyUploadFileProjectsProjectIdUploadFilePost; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/upload_file'; }; export type UploadFileProjectsProjectIdUploadFilePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UploadFileProjectsProjectIdUploadFilePostError = UploadFileProjectsProjectIdUploadFilePostErrors[keyof UploadFileProjectsProjectIdUploadFilePostErrors]; export type UploadFileProjectsProjectIdUploadFilePostResponses = { /** * Successful Response */ 200: unknown; }; export type GetCollaboratorRolesCollaboratorRolesGetData = { body?: never; path?: never; query?: never; url: '/collaborator_roles'; }; export type GetCollaboratorRolesCollaboratorRolesGetResponses = { /** * Response Get Collaborator Roles Collaborator Roles Get * * Successful Response */ 200: Array; }; export type GetCollaboratorRolesCollaboratorRolesGetResponse = GetCollaboratorRolesCollaboratorRolesGetResponses[keyof GetCollaboratorRolesCollaboratorRolesGetResponses]; export type DeleteProjectProjectsProjectIdDeleteData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}'; }; export type DeleteProjectProjectsProjectIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteProjectProjectsProjectIdDeleteError = DeleteProjectProjectsProjectIdDeleteErrors[keyof DeleteProjectProjectsProjectIdDeleteErrors]; export type DeleteProjectProjectsProjectIdDeleteResponses = { /** * Successful Response */ 200: ProjectDeleteResponse; }; export type DeleteProjectProjectsProjectIdDeleteResponse = DeleteProjectProjectsProjectIdDeleteResponses[keyof DeleteProjectProjectsProjectIdDeleteResponses]; export type GetProjectProjectsProjectIdGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}'; }; export type GetProjectProjectsProjectIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetProjectProjectsProjectIdGetError = GetProjectProjectsProjectIdGetErrors[keyof GetProjectProjectsProjectIdGetErrors]; export type GetProjectProjectsProjectIdGetResponses = { /** * Successful Response */ 200: ProjectDb; }; export type GetProjectProjectsProjectIdGetResponse = GetProjectProjectsProjectIdGetResponses[keyof GetProjectProjectsProjectIdGetResponses]; export type UpdateProjectProjectsProjectIdPutData = { body: ProjectUpdate; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}'; }; export type UpdateProjectProjectsProjectIdPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateProjectProjectsProjectIdPutError = UpdateProjectProjectsProjectIdPutErrors[keyof UpdateProjectProjectsProjectIdPutErrors]; export type UpdateProjectProjectsProjectIdPutResponses = { /** * Successful Response */ 200: ProjectUpdateResponse; }; export type UpdateProjectProjectsProjectIdPutResponse = UpdateProjectProjectsProjectIdPutResponses[keyof UpdateProjectProjectsProjectIdPutResponses]; export type ListUserProjectCollaboratorsProjectsProjectIdUsersGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/projects/{project_id}/users'; }; export type ListUserProjectCollaboratorsProjectsProjectIdUsersGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListUserProjectCollaboratorsProjectsProjectIdUsersGetError = ListUserProjectCollaboratorsProjectsProjectIdUsersGetErrors[keyof ListUserProjectCollaboratorsProjectsProjectIdUsersGetErrors]; export type ListUserProjectCollaboratorsProjectsProjectIdUsersGetResponses = { /** * Successful Response */ 200: ListUserCollaboratorsResponse; }; export type ListUserProjectCollaboratorsProjectsProjectIdUsersGetResponse = ListUserProjectCollaboratorsProjectsProjectIdUsersGetResponses[keyof ListUserProjectCollaboratorsProjectsProjectIdUsersGetResponses]; export type CreateUserProjectCollaboratorsProjectsProjectIdUsersPostData = { /** * Body */ body: Array; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/users'; }; export type CreateUserProjectCollaboratorsProjectsProjectIdUsersPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateUserProjectCollaboratorsProjectsProjectIdUsersPostError = CreateUserProjectCollaboratorsProjectsProjectIdUsersPostErrors[keyof CreateUserProjectCollaboratorsProjectsProjectIdUsersPostErrors]; export type CreateUserProjectCollaboratorsProjectsProjectIdUsersPostResponses = { /** * Response Create User Project Collaborators Projects Project Id Users Post * * Successful Response */ 200: Array; }; export type CreateUserProjectCollaboratorsProjectsProjectIdUsersPostResponse = CreateUserProjectCollaboratorsProjectsProjectIdUsersPostResponses[keyof CreateUserProjectCollaboratorsProjectsProjectIdUsersPostResponses]; export type ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/projects/{project_id}/groups'; }; export type ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetError = ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetErrors[keyof ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetErrors]; export type ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetResponses = { /** * Successful Response */ 200: ListGroupCollaboratorsResponse; }; export type ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetResponse = ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetResponses[keyof ListGroupProjectCollaboratorsProjectsProjectIdGroupsGetResponses]; export type CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostData = { /** * Body */ body: Array; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/groups'; }; export type CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostError = CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostErrors[keyof CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostErrors]; export type CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostResponses = { /** * Response Create Group Project Collaborators Projects Project Id Groups Post * * Successful Response */ 200: Array; }; export type CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostResponse = CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostResponses[keyof CreateGroupProjectCollaboratorsProjectsProjectIdGroupsPostResponses]; export type DeleteUserProjectCollaboratorProjectsProjectIdUsersUserIdDeleteData = { body?: never; path: { /** * Project Id */ project_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/projects/{project_id}/users/{user_id}'; }; export type DeleteUserProjectCollaboratorProjectsProjectIdUsersUserIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteUserProjectCollaboratorProjectsProjectIdUsersUserIdDeleteError = DeleteUserProjectCollaboratorProjectsProjectIdUsersUserIdDeleteErrors[keyof DeleteUserProjectCollaboratorProjectsProjectIdUsersUserIdDeleteErrors]; export type DeleteUserProjectCollaboratorProjectsProjectIdUsersUserIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchData = { body: CollaboratorUpdate; path: { /** * Project Id */ project_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/projects/{project_id}/users/{user_id}'; }; export type UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchError = UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchErrors[keyof UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchErrors]; export type UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchResponses = { /** * Successful Response */ 200: UserCollaborator; }; export type UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchResponse = UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchResponses[keyof UpdateUserProjectCollaboratorProjectsProjectIdUsersUserIdPatchResponses]; export type DeleteGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdDeleteData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/projects/{project_id}/groups/{group_id}'; }; export type DeleteGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdDeleteError = DeleteGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdDeleteErrors[keyof DeleteGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdDeleteErrors]; export type DeleteGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchData = { body: CollaboratorUpdate; path: { /** * Project Id */ project_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/projects/{project_id}/groups/{group_id}'; }; export type UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchError = UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchErrors[keyof UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchErrors]; export type UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchResponses = { /** * Successful Response */ 200: GroupCollaborator; }; export type UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchResponse = UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchResponses[keyof UpdateGroupProjectCollaboratorProjectsProjectIdGroupsGroupIdPatchResponses]; export type ListLogStreamsProjectsProjectIdLogStreamsGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Include Counts */ include_counts?: boolean; }; url: '/projects/{project_id}/log_streams'; }; export type ListLogStreamsProjectsProjectIdLogStreamsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListLogStreamsProjectsProjectIdLogStreamsGetError = ListLogStreamsProjectsProjectIdLogStreamsGetErrors[keyof ListLogStreamsProjectsProjectIdLogStreamsGetErrors]; export type ListLogStreamsProjectsProjectIdLogStreamsGetResponses = { /** * Response List Log Streams Projects Project Id Log Streams Get * * Successful Response */ 200: Array; }; export type ListLogStreamsProjectsProjectIdLogStreamsGetResponse = ListLogStreamsProjectsProjectIdLogStreamsGetResponses[keyof ListLogStreamsProjectsProjectIdLogStreamsGetResponses]; export type CreateLogStreamProjectsProjectIdLogStreamsPostData = { body: LogStreamCreateRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/log_streams'; }; export type CreateLogStreamProjectsProjectIdLogStreamsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateLogStreamProjectsProjectIdLogStreamsPostError = CreateLogStreamProjectsProjectIdLogStreamsPostErrors[keyof CreateLogStreamProjectsProjectIdLogStreamsPostErrors]; export type CreateLogStreamProjectsProjectIdLogStreamsPostResponses = { /** * Successful Response */ 200: LogStreamResponse; }; export type CreateLogStreamProjectsProjectIdLogStreamsPostResponse = CreateLogStreamProjectsProjectIdLogStreamsPostResponses[keyof CreateLogStreamProjectsProjectIdLogStreamsPostResponses]; export type ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Include Counts */ include_counts?: boolean; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/projects/{project_id}/log_streams/paginated'; }; export type ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetError = ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetErrors[keyof ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetErrors]; export type ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetResponses = { /** * Successful Response */ 200: ListLogStreamResponse; }; export type ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetResponse = ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetResponses[keyof ListLogStreamsPaginatedProjectsProjectIdLogStreamsPaginatedGetResponses]; export type SearchLogStreamsProjectsProjectIdLogStreamsSearchPostData = { body: LogStreamSearchRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/log_streams/search'; }; export type SearchLogStreamsProjectsProjectIdLogStreamsSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SearchLogStreamsProjectsProjectIdLogStreamsSearchPostError = SearchLogStreamsProjectsProjectIdLogStreamsSearchPostErrors[keyof SearchLogStreamsProjectsProjectIdLogStreamsSearchPostErrors]; export type SearchLogStreamsProjectsProjectIdLogStreamsSearchPostResponses = { /** * Successful Response */ 200: ListLogStreamResponse; }; export type SearchLogStreamsProjectsProjectIdLogStreamsSearchPostResponse = SearchLogStreamsProjectsProjectIdLogStreamsSearchPostResponses[keyof SearchLogStreamsProjectsProjectIdLogStreamsSearchPostResponses]; export type DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteData = { body?: never; path: { /** * Log Stream Id */ log_stream_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/log_streams/{log_stream_id}'; }; export type DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteError = DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteErrors[keyof DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteErrors]; export type DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteResponses = { /** * Successful Response */ 204: void; }; export type DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteResponse = DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteResponses[keyof DeleteLogStreamProjectsProjectIdLogStreamsLogStreamIdDeleteResponses]; export type GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetData = { body?: never; path: { /** * Log Stream Id */ log_stream_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/log_streams/{log_stream_id}'; }; export type GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetError = GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetErrors[keyof GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetErrors]; export type GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetResponses = { /** * Successful Response */ 200: LogStreamResponse; }; export type GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetResponse = GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetResponses[keyof GetLogStreamProjectsProjectIdLogStreamsLogStreamIdGetResponses]; export type UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutData = { body: LogStreamUpdateRequest; path: { /** * Log Stream Id */ log_stream_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/log_streams/{log_stream_id}'; }; export type UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutError = UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutErrors[keyof UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutErrors]; export type UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutResponses = { /** * Successful Response */ 200: LogStreamResponse; }; export type UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutResponse = UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutResponses[keyof UpdateLogStreamProjectsProjectIdLogStreamsLogStreamIdPutResponses]; export type GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetData = { body?: never; path: { /** * Log Stream Id */ log_stream_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/log_streams/{log_stream_id}/metric_settings'; }; export type GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetError = GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetErrors[keyof GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetErrors]; export type GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetResponses = { /** * Successful Response */ 200: MetricSettingsResponse; }; export type GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetResponse = GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetResponses[keyof GetMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsGetResponses]; export type UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchData = { body: MetricSettingsRequest; path: { /** * Project Id */ project_id: string; /** * Log Stream Id */ log_stream_id: string; }; query?: never; url: '/projects/{project_id}/log_streams/{log_stream_id}/metric_settings'; }; export type UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchError = UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchErrors[keyof UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchErrors]; export type UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchResponses = { /** * Successful Response */ 200: MetricSettingsResponse; }; export type UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchResponse = UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchResponses[keyof UpdateMetricSettingsProjectsProjectIdLogStreamsLogStreamIdMetricSettingsPatchResponses]; export type GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostData = { body: AggregatedTraceViewRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/aggregated'; }; export type GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostError = GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostErrors[keyof GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostErrors]; export type GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostResponses = { /** * Successful Response */ 200: AggregatedTraceViewResponse; }; export type GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostResponse = GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostResponses[keyof GetAggregatedTraceViewProjectsProjectIdTracesAggregatedPostResponses]; export type RecomputeMetricsProjectsProjectIdRecomputeMetricsPostData = { body: RecomputeLogRecordsMetricsRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/recompute-metrics'; }; export type RecomputeMetricsProjectsProjectIdRecomputeMetricsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type RecomputeMetricsProjectsProjectIdRecomputeMetricsPostError = RecomputeMetricsProjectsProjectIdRecomputeMetricsPostErrors[keyof RecomputeMetricsProjectsProjectIdRecomputeMetricsPostErrors]; export type RecomputeMetricsProjectsProjectIdRecomputeMetricsPostResponses = { /** * Successful Response */ 200: unknown; }; export type ListExperimentsProjectsProjectIdExperimentsGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Include Counts */ include_counts?: boolean; }; url: '/projects/{project_id}/experiments'; }; export type ListExperimentsProjectsProjectIdExperimentsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListExperimentsProjectsProjectIdExperimentsGetError = ListExperimentsProjectsProjectIdExperimentsGetErrors[keyof ListExperimentsProjectsProjectIdExperimentsGetErrors]; export type ListExperimentsProjectsProjectIdExperimentsGetResponses = { /** * Response List Experiments Projects Project Id Experiments Get * * Successful Response */ 200: Array; }; export type ListExperimentsProjectsProjectIdExperimentsGetResponse = ListExperimentsProjectsProjectIdExperimentsGetResponses[keyof ListExperimentsProjectsProjectIdExperimentsGetResponses]; export type CreateExperimentProjectsProjectIdExperimentsPostData = { body: ExperimentCreateRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments'; }; export type CreateExperimentProjectsProjectIdExperimentsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateExperimentProjectsProjectIdExperimentsPostError = CreateExperimentProjectsProjectIdExperimentsPostErrors[keyof CreateExperimentProjectsProjectIdExperimentsPostErrors]; export type CreateExperimentProjectsProjectIdExperimentsPostResponses = { /** * Successful Response */ 200: ExperimentResponse; }; export type CreateExperimentProjectsProjectIdExperimentsPostResponse = CreateExperimentProjectsProjectIdExperimentsPostResponses[keyof CreateExperimentProjectsProjectIdExperimentsPostResponses]; export type ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Include Counts */ include_counts?: boolean; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/projects/{project_id}/experiments/paginated'; }; export type ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetError = ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetErrors[keyof ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetErrors]; export type ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetResponses = { /** * Successful Response */ 200: ListExperimentResponse; }; export type ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetResponse = ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetResponses[keyof ListExperimentsPaginatedProjectsProjectIdExperimentsPaginatedGetResponses]; export type SearchExperimentsProjectsProjectIdExperimentsSearchPostData = { body: ExperimentSearchRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/search'; }; export type SearchExperimentsProjectsProjectIdExperimentsSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SearchExperimentsProjectsProjectIdExperimentsSearchPostError = SearchExperimentsProjectsProjectIdExperimentsSearchPostErrors[keyof SearchExperimentsProjectsProjectIdExperimentsSearchPostErrors]; export type SearchExperimentsProjectsProjectIdExperimentsSearchPostResponses = { /** * Successful Response */ 200: ListExperimentResponse; }; export type SearchExperimentsProjectsProjectIdExperimentsSearchPostResponse = SearchExperimentsProjectsProjectIdExperimentsSearchPostResponses[keyof SearchExperimentsProjectsProjectIdExperimentsSearchPostResponses]; export type DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteData = { body?: never; path: { /** * Experiment Id */ experiment_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}'; }; export type DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteError = DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteErrors[keyof DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteErrors]; export type DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteResponses = { /** * Successful Response */ 204: void; }; export type DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteResponse = DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteResponses[keyof DeleteExperimentProjectsProjectIdExperimentsExperimentIdDeleteResponses]; export type GetExperimentProjectsProjectIdExperimentsExperimentIdGetData = { body?: never; path: { /** * Experiment Id */ experiment_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}'; }; export type GetExperimentProjectsProjectIdExperimentsExperimentIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetExperimentProjectsProjectIdExperimentsExperimentIdGetError = GetExperimentProjectsProjectIdExperimentsExperimentIdGetErrors[keyof GetExperimentProjectsProjectIdExperimentsExperimentIdGetErrors]; export type GetExperimentProjectsProjectIdExperimentsExperimentIdGetResponses = { /** * Successful Response */ 200: ExperimentResponse; }; export type GetExperimentProjectsProjectIdExperimentsExperimentIdGetResponse = GetExperimentProjectsProjectIdExperimentsExperimentIdGetResponses[keyof GetExperimentProjectsProjectIdExperimentsExperimentIdGetResponses]; export type UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutData = { body: ExperimentUpdateRequest; path: { /** * Experiment Id */ experiment_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}'; }; export type UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutError = UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutErrors[keyof UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutErrors]; export type UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutResponses = { /** * Successful Response */ 200: ExperimentResponse; }; export type UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutResponse = UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutResponses[keyof UpdateExperimentProjectsProjectIdExperimentsExperimentIdPutResponses]; export type ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/available_columns'; }; export type ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostError = ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostErrors[keyof ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostErrors]; export type ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostResponses = { /** * Successful Response */ 200: ExperimentsAvailableColumnsResponse; }; export type ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostResponse = ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostResponses[keyof ExperimentsAvailableColumnsProjectsProjectIdExperimentsAvailableColumnsPostResponses]; export type GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetData = { body?: never; path: { /** * Experiment Id */ experiment_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/metric_settings'; }; export type GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetError = GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetErrors[keyof GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetErrors]; export type GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetResponses = { /** * Successful Response */ 200: MetricSettingsResponse; }; export type GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetResponse = GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetResponses[keyof GetMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsGetResponses]; export type UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchData = { body: MetricSettingsRequest; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/metric_settings'; }; export type UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchError = UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchErrors[keyof UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchErrors]; export type UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchResponses = { /** * Successful Response */ 200: MetricSettingsResponse; }; export type UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchResponse = UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchResponses[keyof UpdateMetricSettingsProjectsProjectIdExperimentsExperimentIdMetricSettingsPatchResponses]; export type CreateJobJobsPostData = { body: CreateJobRequest; path?: never; query?: never; url: '/jobs'; }; export type CreateJobJobsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateJobJobsPostError = CreateJobJobsPostErrors[keyof CreateJobJobsPostErrors]; export type CreateJobJobsPostResponses = { /** * Successful Response */ 200: CreateJobResponse; }; export type CreateJobJobsPostResponse = CreateJobJobsPostResponses[keyof CreateJobJobsPostResponses]; export type GetJobJobsJobIdGetData = { body?: never; path: { /** * Job Id */ job_id: string; }; query?: never; url: '/jobs/{job_id}'; }; export type GetJobJobsJobIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetJobJobsJobIdGetError = GetJobJobsJobIdGetErrors[keyof GetJobJobsJobIdGetErrors]; export type GetJobJobsJobIdGetResponses = { /** * Successful Response */ 200: JobDb; }; export type GetJobJobsJobIdGetResponse = GetJobJobsJobIdGetResponses[keyof GetJobJobsJobIdGetResponses]; export type GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; }; query?: { /** * Status */ status?: string | null; }; url: '/projects/{project_id}/runs/{run_id}/jobs'; }; export type GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetError = GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetErrors[keyof GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetErrors]; export type GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetResponses = { /** * Response Get Jobs For Project Run Projects Project Id Runs Run Id Jobs Get * * Successful Response */ 200: Array; }; export type GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetResponse = GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetResponses[keyof GetJobsForProjectRunProjectsProjectIdRunsRunIdJobsGetResponses]; export type GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; }; query?: never; url: '/projects/{project_id}/runs/{run_id}/jobs/latest'; }; export type GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetError = GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetErrors[keyof GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetErrors]; export type GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetResponses = { /** * Response Get Latest Job For Project Run Projects Project Id Runs Run Id Jobs Latest Get * * Successful Response */ 200: JobDb | null; }; export type GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetResponse = GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetResponses[keyof GetLatestJobForProjectRunProjectsProjectIdRunsRunIdJobsLatestGetResponses]; export type GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetData = { body?: never; path: { /** * Run Id */ run_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/runs/{run_id}/scorer-settings'; }; export type GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetError = GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetErrors[keyof GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetErrors]; export type GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetResponses = { /** * Successful Response */ 200: RunScorerSettingsResponse; }; export type GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetResponse = GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetResponses[keyof GetSettingsProjectsProjectIdRunsRunIdScorerSettingsGetResponses]; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchData = { body: RunScorerSettingsPatchRequest; path: { /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; }; query?: never; url: '/projects/{project_id}/runs/{run_id}/scorer-settings'; }; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchError = UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchErrors[keyof UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchErrors]; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchResponses = { /** * Successful Response */ 200: RunScorerSettingsResponse; }; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchResponse = UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchResponses[keyof UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPatchResponses]; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostData = { body: RunScorerSettingsPatchRequest; path: { /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; }; query?: never; url: '/projects/{project_id}/runs/{run_id}/scorer-settings'; }; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostError = UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostErrors[keyof UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostErrors]; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostResponses = { /** * Successful Response */ 200: RunScorerSettingsResponse; }; export type UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostResponse = UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostResponses[keyof UpsertScorersConfigProjectsProjectIdRunsRunIdScorerSettingsPostResponses]; export type GetProjectTemplatesProjectsProjectIdTemplatesGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/templates'; }; export type GetProjectTemplatesProjectsProjectIdTemplatesGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetProjectTemplatesProjectsProjectIdTemplatesGetError = GetProjectTemplatesProjectsProjectIdTemplatesGetErrors[keyof GetProjectTemplatesProjectsProjectIdTemplatesGetErrors]; export type GetProjectTemplatesProjectsProjectIdTemplatesGetResponses = { /** * Response Get Project Templates Projects Project Id Templates Get * * Successful Response */ 200: Array; }; export type GetProjectTemplatesProjectsProjectIdTemplatesGetResponse = GetProjectTemplatesProjectsProjectIdTemplatesGetResponses[keyof GetProjectTemplatesProjectsProjectIdTemplatesGetResponses]; export type CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostData = { body: CreatePromptTemplateWithVersionRequestBody; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/templates'; }; export type CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostError = CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostErrors[keyof CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostErrors]; export type CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostResponse = CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostResponses[keyof CreatePromptTemplateWithVersionProjectsProjectIdTemplatesPostResponses]; export type GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query: { /** * Template Name */ template_name: string; /** * Version */ version?: number | null; }; url: '/projects/{project_id}/templates/versions'; }; export type GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetError = GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetErrors[keyof GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetErrors]; export type GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetResponses = { /** * Successful Response */ 200: BasePromptTemplateVersionResponse; }; export type GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetResponse = GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetResponses[keyof GetTemplateVersionByNameProjectsProjectIdTemplatesVersionsGetResponses]; export type DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteData = { body?: never; path: { /** * Template Id */ template_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/templates/{template_id}'; }; export type DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteError = DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteErrors[keyof DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteErrors]; export type DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteResponses = { /** * Successful Response */ 200: DeletePromptResponse; }; export type DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteResponse = DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteResponses[keyof DeleteTemplateProjectsProjectIdTemplatesTemplateIdDeleteResponses]; export type GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetData = { body?: never; path: { /** * Template Id */ template_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/templates/{template_id}'; }; export type GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetError = GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetErrors[keyof GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetErrors]; export type GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetResponse = GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetResponses[keyof GetTemplateFromProjectProjectsProjectIdTemplatesTemplateIdGetResponses]; export type CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostData = { body: BasePromptTemplateVersion; path: { /** * Project Id */ project_id: string; /** * Template Id */ template_id: string; }; query?: never; url: '/projects/{project_id}/templates/{template_id}/versions'; }; export type CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostError = CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostErrors[keyof CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostErrors]; export type CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostResponses = { /** * Successful Response */ 200: BasePromptTemplateVersionResponse; }; export type CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostResponse = CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostResponses[keyof CreatePromptTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsPostResponses]; export type QueryTemplatesTemplatesQueryPostData = { body?: ListPromptTemplateParams; path?: never; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/templates/query'; }; export type QueryTemplatesTemplatesQueryPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryTemplatesTemplatesQueryPostError = QueryTemplatesTemplatesQueryPostErrors[keyof QueryTemplatesTemplatesQueryPostErrors]; export type QueryTemplatesTemplatesQueryPostResponses = { /** * Successful Response */ 200: ListPromptTemplateResponse; }; export type QueryTemplatesTemplatesQueryPostResponse = QueryTemplatesTemplatesQueryPostResponses[keyof QueryTemplatesTemplatesQueryPostResponses]; export type QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostData = { body?: ListPromptTemplateVersionParams; path: { /** * Template Id */ template_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/templates/{template_id}/versions/query'; }; export type QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostError = QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostErrors[keyof QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostErrors]; export type QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostResponses = { /** * Successful Response */ 200: ListPromptTemplateVersionResponse; }; export type QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostResponse = QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostResponses[keyof QueryTemplateVersionsTemplatesTemplateIdVersionsQueryPostResponses]; export type GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetData = { body?: never; path: { /** * Template Id */ template_id: string; /** * Version */ version: number; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/templates/{template_id}/versions/{version}'; }; export type GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetError = GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetErrors[keyof GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetErrors]; export type GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetResponses = { /** * Successful Response */ 200: BasePromptTemplateVersionResponse; }; export type GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetResponse = GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetResponses[keyof GetTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionGetResponses]; export type SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Template Id */ template_id: string; /** * Version */ version: number; }; query?: never; url: '/projects/{project_id}/templates/{template_id}/versions/{version}'; }; export type SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutError = SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutErrors[keyof SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutErrors]; export type SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutResponse = SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutResponses[keyof SetSelectedTemplateVersionProjectsProjectIdTemplatesTemplateIdVersionsVersionPutResponses]; export type RenderTemplateRenderTemplatePostData = { body: RenderTemplateRequest; path?: never; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/render_template'; }; export type RenderTemplateRenderTemplatePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type RenderTemplateRenderTemplatePostError = RenderTemplateRenderTemplatePostErrors[keyof RenderTemplateRenderTemplatePostErrors]; export type RenderTemplateRenderTemplatePostResponses = { /** * Successful Response */ 200: RenderTemplateResponse; }; export type RenderTemplateRenderTemplatePostResponse = RenderTemplateRenderTemplatePostResponses[keyof RenderTemplateRenderTemplatePostResponses]; export type GenerateTemplateInputStubInputStubPostData = { body: TemplateStubRequest; path?: never; query?: never; url: '/input_stub'; }; export type GenerateTemplateInputStubInputStubPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GenerateTemplateInputStubInputStubPostError = GenerateTemplateInputStubInputStubPostErrors[keyof GenerateTemplateInputStubInputStubPostErrors]; export type GenerateTemplateInputStubInputStubPostResponses = { /** * Successful Response */ 200: unknown; }; export type CreateGlobalPromptTemplateTemplatesPostData = { body: CreatePromptTemplateWithVersionRequestBody; path?: never; query?: { /** * Project Id */ project_id?: string | null; }; url: '/templates'; }; export type CreateGlobalPromptTemplateTemplatesPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateGlobalPromptTemplateTemplatesPostError = CreateGlobalPromptTemplateTemplatesPostErrors[keyof CreateGlobalPromptTemplateTemplatesPostErrors]; export type CreateGlobalPromptTemplateTemplatesPostResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type CreateGlobalPromptTemplateTemplatesPostResponse = CreateGlobalPromptTemplateTemplatesPostResponses[keyof CreateGlobalPromptTemplateTemplatesPostResponses]; export type BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteData = { body: BulkDeletePromptTemplatesRequest; path?: never; query?: never; url: '/templates/bulk_delete'; }; export type BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteError = BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteErrors[keyof BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteErrors]; export type BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteResponses = { /** * Successful Response */ 200: BulkDeletePromptTemplatesResponse; }; export type BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteResponse = BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteResponses[keyof BulkDeleteGlobalTemplatesTemplatesBulkDeleteDeleteResponses]; export type DeleteGlobalTemplateTemplatesTemplateIdDeleteData = { body?: never; path: { /** * Template Id */ template_id: string; }; query?: never; url: '/templates/{template_id}'; }; export type DeleteGlobalTemplateTemplatesTemplateIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteGlobalTemplateTemplatesTemplateIdDeleteError = DeleteGlobalTemplateTemplatesTemplateIdDeleteErrors[keyof DeleteGlobalTemplateTemplatesTemplateIdDeleteErrors]; export type DeleteGlobalTemplateTemplatesTemplateIdDeleteResponses = { /** * Successful Response */ 200: DeletePromptResponse; }; export type DeleteGlobalTemplateTemplatesTemplateIdDeleteResponse = DeleteGlobalTemplateTemplatesTemplateIdDeleteResponses[keyof DeleteGlobalTemplateTemplatesTemplateIdDeleteResponses]; export type GetGlobalTemplateTemplatesTemplateIdGetData = { body?: never; path: { /** * Template Id */ template_id: string; }; query?: never; url: '/templates/{template_id}'; }; export type GetGlobalTemplateTemplatesTemplateIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetGlobalTemplateTemplatesTemplateIdGetError = GetGlobalTemplateTemplatesTemplateIdGetErrors[keyof GetGlobalTemplateTemplatesTemplateIdGetErrors]; export type GetGlobalTemplateTemplatesTemplateIdGetResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type GetGlobalTemplateTemplatesTemplateIdGetResponse = GetGlobalTemplateTemplatesTemplateIdGetResponses[keyof GetGlobalTemplateTemplatesTemplateIdGetResponses]; export type UpdateGlobalTemplateTemplatesTemplateIdPatchData = { body: UpdatePromptTemplateRequest; path: { /** * Template Id */ template_id: string; }; query?: never; url: '/templates/{template_id}'; }; export type UpdateGlobalTemplateTemplatesTemplateIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateGlobalTemplateTemplatesTemplateIdPatchError = UpdateGlobalTemplateTemplatesTemplateIdPatchErrors[keyof UpdateGlobalTemplateTemplatesTemplateIdPatchErrors]; export type UpdateGlobalTemplateTemplatesTemplateIdPatchResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type UpdateGlobalTemplateTemplatesTemplateIdPatchResponse = UpdateGlobalTemplateTemplatesTemplateIdPatchResponses[keyof UpdateGlobalTemplateTemplatesTemplateIdPatchResponses]; export type CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostData = { body: BasePromptTemplateVersion; path: { /** * Template Id */ template_id: string; }; query?: never; url: '/templates/{template_id}/versions'; }; export type CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostError = CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostErrors[keyof CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostErrors]; export type CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostResponses = { /** * Successful Response */ 200: BasePromptTemplateVersionResponse; }; export type CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostResponse = CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostResponses[keyof CreateGlobalPromptTemplateVersionTemplatesTemplateIdVersionsPostResponses]; export type GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetData = { body?: never; path: { /** * Template Id */ template_id: string; /** * Version */ version: number; }; query?: never; url: '/templates/{template_id}/versions/{version}'; }; export type GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetError = GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetErrors[keyof GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetErrors]; export type GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetResponses = { /** * Successful Response */ 200: BasePromptTemplateVersionResponse; }; export type GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetResponse = GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetResponses[keyof GetGlobalTemplateVersionTemplatesTemplateIdVersionsVersionGetResponses]; export type SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutData = { body?: never; path: { /** * Template Id */ template_id: string; /** * Version */ version: number; }; query?: never; url: '/templates/{template_id}/versions/{version}'; }; export type SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutError = SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutErrors[keyof SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutErrors]; export type SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutResponses = { /** * Successful Response */ 200: BasePromptTemplateResponse; }; export type SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutResponse = SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutResponses[keyof SetSelectedGlobalTemplateVersionTemplatesTemplateIdVersionsVersionPutResponses]; export type ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetData = { body?: never; path: { /** * Template Id */ template_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/templates/{template_id}/users'; }; export type ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetError = ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetErrors[keyof ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetErrors]; export type ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetResponses = { /** * Successful Response */ 200: ListUserCollaboratorsResponse; }; export type ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetResponse = ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetResponses[keyof ListUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersGetResponses]; export type CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostData = { /** * Body */ body: Array; path: { /** * Template Id */ template_id: string; }; query?: never; url: '/templates/{template_id}/users'; }; export type CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostError = CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostErrors[keyof CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostErrors]; export type CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostResponses = { /** * Response Create User Prompt Template Collaborators Templates Template Id Users Post * * Successful Response */ 200: Array; }; export type CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostResponse = CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostResponses[keyof CreateUserPromptTemplateCollaboratorsTemplatesTemplateIdUsersPostResponses]; export type DeleteUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdDeleteData = { body?: never; path: { /** * Template Id */ template_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/templates/{template_id}/users/{user_id}'; }; export type DeleteUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdDeleteError = DeleteUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdDeleteErrors[keyof DeleteUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdDeleteErrors]; export type DeleteUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchData = { body: CollaboratorUpdate; path: { /** * Template Id */ template_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/templates/{template_id}/users/{user_id}'; }; export type UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchError = UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchErrors[keyof UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchErrors]; export type UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchResponses = { /** * Successful Response */ 200: UserCollaborator; }; export type UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchResponse = UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchResponses[keyof UpdateUserPromptTemplateCollaboratorTemplatesTemplateIdUsersUserIdPatchResponses]; export type ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetData = { body?: never; path: { /** * Template Id */ template_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/templates/{template_id}/groups'; }; export type ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetError = ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetErrors[keyof ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetErrors]; export type ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetResponses = { /** * Successful Response */ 200: ListGroupCollaboratorsResponse; }; export type ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetResponse = ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetResponses[keyof ListGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsGetResponses]; export type CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostData = { /** * Body */ body: Array; path: { /** * Template Id */ template_id: string; }; query?: never; url: '/templates/{template_id}/groups'; }; export type CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostError = CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostErrors[keyof CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostErrors]; export type CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostResponses = { /** * Response Create Group Prompt Template Collaborators Templates Template Id Groups Post * * Successful Response */ 200: Array; }; export type CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostResponse = CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostResponses[keyof CreateGroupPromptTemplateCollaboratorsTemplatesTemplateIdGroupsPostResponses]; export type DeleteGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdDeleteData = { body?: never; path: { /** * Template Id */ template_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/templates/{template_id}/groups/{group_id}'; }; export type DeleteGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdDeleteError = DeleteGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdDeleteErrors[keyof DeleteGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdDeleteErrors]; export type DeleteGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchData = { body: CollaboratorUpdate; path: { /** * Template Id */ template_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/templates/{template_id}/groups/{group_id}'; }; export type UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchError = UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchErrors[keyof UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchErrors]; export type UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchResponses = { /** * Successful Response */ 200: GroupCollaborator; }; export type UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchResponse = UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchResponses[keyof UpdateGroupPromptTemplateCollaboratorTemplatesTemplateIdGroupsGroupIdPatchResponses]; export type InvokeProtectInvokePostData = { body: ProtectRequest; path?: never; query?: never; url: '/protect/invoke'; }; export type InvokeProtectInvokePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type InvokeProtectInvokePostError = InvokeProtectInvokePostErrors[keyof InvokeProtectInvokePostErrors]; export type InvokeProtectInvokePostResponses = { /** * Response Invoke Protect Invoke Post * * Successful Response */ 200: ProtectResponse | InvokeResponse; }; export type InvokeProtectInvokePostResponse = InvokeProtectInvokePostResponses[keyof InvokeProtectInvokePostResponses]; export type DeleteScorerScorersScorerIdDeleteData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}'; }; export type DeleteScorerScorersScorerIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteScorerScorersScorerIdDeleteError = DeleteScorerScorersScorerIdDeleteErrors[keyof DeleteScorerScorersScorerIdDeleteErrors]; export type DeleteScorerScorersScorerIdDeleteResponses = { /** * Successful Response */ 200: DeleteScorerResponse; }; export type DeleteScorerScorersScorerIdDeleteResponse = DeleteScorerScorersScorerIdDeleteResponses[keyof DeleteScorerScorersScorerIdDeleteResponses]; export type GetScorerScorersScorerIdGetData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}'; }; export type GetScorerScorersScorerIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetScorerScorersScorerIdGetError = GetScorerScorersScorerIdGetErrors[keyof GetScorerScorersScorerIdGetErrors]; export type GetScorerScorersScorerIdGetResponses = { /** * Successful Response */ 200: ScorerResponse; }; export type GetScorerScorersScorerIdGetResponse = GetScorerScorersScorerIdGetResponses[keyof GetScorerScorersScorerIdGetResponses]; export type UpdateScorersScorerIdPatchData = { body: UpdateScorerRequest; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}'; }; export type UpdateScorersScorerIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateScorersScorerIdPatchError = UpdateScorersScorerIdPatchErrors[keyof UpdateScorersScorerIdPatchErrors]; export type UpdateScorersScorerIdPatchResponses = { /** * Successful Response */ 200: ScorerResponse; }; export type UpdateScorersScorerIdPatchResponse = UpdateScorersScorerIdPatchResponses[keyof UpdateScorersScorerIdPatchResponses]; export type ValidateCodeScorerScorersCodeValidatePostData = { body: BodyValidateCodeScorerScorersCodeValidatePost; path?: never; query?: never; url: '/scorers/code/validate'; }; export type ValidateCodeScorerScorersCodeValidatePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ValidateCodeScorerScorersCodeValidatePostError = ValidateCodeScorerScorersCodeValidatePostErrors[keyof ValidateCodeScorerScorersCodeValidatePostErrors]; export type ValidateCodeScorerScorersCodeValidatePostResponses = { /** * Successful Response */ 200: ValidateCodeScorerResponse; }; export type ValidateCodeScorerScorersCodeValidatePostResponse = ValidateCodeScorerScorersCodeValidatePostResponses[keyof ValidateCodeScorerScorersCodeValidatePostResponses]; export type GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetData = { body?: never; path: { /** * Task Id */ task_id: string; }; query?: never; url: '/scorers/code/validate/{task_id}'; }; export type GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetError = GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetErrors[keyof GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetErrors]; export type GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetResponses = { /** * Successful Response */ 200: RegisteredScorerTaskResultResponse; }; export type GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetResponse = GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetResponses[keyof GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetResponses]; export type GetScorerVersionCodeScorersScorerIdVersionCodeGetData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; }; query?: { /** * Version * * version number, defaults to latest version */ version?: number | null; }; url: '/scorers/{scorer_id}/version/code'; }; export type GetScorerVersionCodeScorersScorerIdVersionCodeGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetScorerVersionCodeScorersScorerIdVersionCodeGetError = GetScorerVersionCodeScorersScorerIdVersionCodeGetErrors[keyof GetScorerVersionCodeScorersScorerIdVersionCodeGetErrors]; export type GetScorerVersionCodeScorersScorerIdVersionCodeGetResponses = { /** * Successful Response */ 200: unknown; }; export type CreateCodeScorerVersionScorersScorerIdVersionCodePostData = { body: BodyCreateCodeScorerVersionScorersScorerIdVersionCodePost; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}/version/code'; }; export type CreateCodeScorerVersionScorersScorerIdVersionCodePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateCodeScorerVersionScorersScorerIdVersionCodePostError = CreateCodeScorerVersionScorersScorerIdVersionCodePostErrors[keyof CreateCodeScorerVersionScorersScorerIdVersionCodePostErrors]; export type CreateCodeScorerVersionScorersScorerIdVersionCodePostResponses = { /** * Successful Response */ 200: BaseScorerVersionResponse; }; export type CreateCodeScorerVersionScorersScorerIdVersionCodePostResponse = CreateCodeScorerVersionScorersScorerIdVersionCodePostResponses[keyof CreateCodeScorerVersionScorersScorerIdVersionCodePostResponses]; export type CreatePresetScorerVersionScorersScorerIdVersionPresetPostData = { body: CreateScorerVersionRequest; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}/version/preset'; }; export type CreatePresetScorerVersionScorersScorerIdVersionPresetPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreatePresetScorerVersionScorersScorerIdVersionPresetPostError = CreatePresetScorerVersionScorersScorerIdVersionPresetPostErrors[keyof CreatePresetScorerVersionScorersScorerIdVersionPresetPostErrors]; export type CreatePresetScorerVersionScorersScorerIdVersionPresetPostResponses = { /** * Successful Response */ 200: BaseScorerVersionResponse; }; export type CreatePresetScorerVersionScorersScorerIdVersionPresetPostResponse = CreatePresetScorerVersionScorersScorerIdVersionPresetPostResponses[keyof CreatePresetScorerVersionScorersScorerIdVersionPresetPostResponses]; export type CreateLunaScorerVersionScorersScorerIdVersionLunaPostData = { body: CreateCustomLunaScorerVersionRequest; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}/version/luna'; }; export type CreateLunaScorerVersionScorersScorerIdVersionLunaPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateLunaScorerVersionScorersScorerIdVersionLunaPostError = CreateLunaScorerVersionScorersScorerIdVersionLunaPostErrors[keyof CreateLunaScorerVersionScorersScorerIdVersionLunaPostErrors]; export type CreateLunaScorerVersionScorersScorerIdVersionLunaPostResponses = { /** * Successful Response */ 200: BaseScorerVersionResponse; }; export type CreateLunaScorerVersionScorersScorerIdVersionLunaPostResponse = CreateLunaScorerVersionScorersScorerIdVersionLunaPostResponses[keyof CreateLunaScorerVersionScorersScorerIdVersionLunaPostResponses]; export type ListScorersWithFiltersScorersListPostData = { body: ListScorersRequest; path?: never; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/scorers/list'; }; export type ListScorersWithFiltersScorersListPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListScorersWithFiltersScorersListPostError = ListScorersWithFiltersScorersListPostErrors[keyof ListScorersWithFiltersScorersListPostErrors]; export type ListScorersWithFiltersScorersListPostResponses = { /** * Successful Response */ 200: ListScorersResponse; }; export type ListScorersWithFiltersScorersListPostResponse = ListScorersWithFiltersScorersListPostResponses[keyof ListScorersWithFiltersScorersListPostResponses]; export type ListTagsScorersTagsGetData = { body?: never; path?: never; query?: never; url: '/scorers/tags'; }; export type ListTagsScorersTagsGetResponses = { /** * Response List Tags Scorers Tags Get * * Successful Response */ 200: Array; }; export type ListTagsScorersTagsGetResponse = ListTagsScorersTagsGetResponses[keyof ListTagsScorersTagsGetResponses]; export type GetScorerVersionOrLatestScorersScorerIdVersionGetData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; }; query?: { /** * Version */ version?: number; }; url: '/scorers/{scorer_id}/version'; }; export type GetScorerVersionOrLatestScorersScorerIdVersionGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetScorerVersionOrLatestScorersScorerIdVersionGetError = GetScorerVersionOrLatestScorersScorerIdVersionGetErrors[keyof GetScorerVersionOrLatestScorersScorerIdVersionGetErrors]; export type GetScorerVersionOrLatestScorersScorerIdVersionGetResponses = { /** * Successful Response */ 200: BaseScorerVersionResponse; }; export type GetScorerVersionOrLatestScorersScorerIdVersionGetResponse = GetScorerVersionOrLatestScorersScorerIdVersionGetResponses[keyof GetScorerVersionOrLatestScorersScorerIdVersionGetResponses]; export type ListAllVersionsForScorerScorersScorerIdVersionsGetData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; }; query?: { /** * Run Id */ run_id?: string | null; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/scorers/{scorer_id}/versions'; }; export type ListAllVersionsForScorerScorersScorerIdVersionsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListAllVersionsForScorerScorersScorerIdVersionsGetError = ListAllVersionsForScorerScorersScorerIdVersionsGetErrors[keyof ListAllVersionsForScorerScorersScorerIdVersionsGetErrors]; export type ListAllVersionsForScorerScorersScorerIdVersionsGetResponses = { /** * Successful Response */ 200: ListScorerVersionsResponse; }; export type ListAllVersionsForScorerScorersScorerIdVersionsGetResponse = ListAllVersionsForScorerScorersScorerIdVersionsGetResponses[keyof ListAllVersionsForScorerScorersScorerIdVersionsGetResponses]; export type ListProjectsForScorerRouteScorersScorerIdProjectsGetData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/scorers/{scorer_id}/projects'; }; export type ListProjectsForScorerRouteScorersScorerIdProjectsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListProjectsForScorerRouteScorersScorerIdProjectsGetError = ListProjectsForScorerRouteScorersScorerIdProjectsGetErrors[keyof ListProjectsForScorerRouteScorersScorerIdProjectsGetErrors]; export type ListProjectsForScorerRouteScorersScorerIdProjectsGetResponses = { /** * Successful Response */ 200: ApiSchemasProjectV2GetProjectsPaginatedResponse; }; export type ListProjectsForScorerRouteScorersScorerIdProjectsGetResponse = ListProjectsForScorerRouteScorersScorerIdProjectsGetResponses[keyof ListProjectsForScorerRouteScorersScorerIdProjectsGetResponses]; export type ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetData = { body?: never; path: { /** * Scorer Version Id */ scorer_version_id: string; }; query: { /** * Scorer Id */ scorer_id: string; /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/scorers/versions/{scorer_version_id}/projects'; }; export type ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetError = ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetErrors[keyof ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetErrors]; export type ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetResponses = { /** * Successful Response */ 200: ApiSchemasProjectV2GetProjectsPaginatedResponse; }; export type ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetResponse = ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetResponses[keyof ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetResponses]; export type RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostData = { body?: never; path: { /** * Scorer Id */ scorer_id: string; /** * Version Number */ version_number: number; }; query?: never; url: '/scorers/{scorer_id}/versions/{version_number}/restore'; }; export type RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostError = RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostErrors[keyof RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostErrors]; export type RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostResponses = { /** * Successful Response */ 200: BaseScorerVersionResponse; }; export type RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostResponse = RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostResponses[keyof RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostResponses]; export type AutogenLlmScorerScorersLlmAutogenPostData = { body: CreateLlmScorerAutogenRequest; path?: never; query?: never; url: '/scorers/llm/autogen'; }; export type AutogenLlmScorerScorersLlmAutogenPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type AutogenLlmScorerScorersLlmAutogenPostError = AutogenLlmScorerScorersLlmAutogenPostErrors[keyof AutogenLlmScorerScorersLlmAutogenPostErrors]; export type AutogenLlmScorerScorersLlmAutogenPostResponses = { /** * Successful Response */ 200: GenerationResponse; }; export type AutogenLlmScorerScorersLlmAutogenPostResponse = AutogenLlmScorerScorersLlmAutogenPostResponses[keyof AutogenLlmScorerScorersLlmAutogenPostResponses]; export type ManualLlmValidateScorersLlmValidatePostData = { /** * Body */ body: { [key: string]: unknown; }; path?: never; query?: never; url: '/scorers/llm/validate'; }; export type ManualLlmValidateScorersLlmValidatePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ManualLlmValidateScorersLlmValidatePostError = ManualLlmValidateScorersLlmValidatePostErrors[keyof ManualLlmValidateScorersLlmValidatePostErrors]; export type ManualLlmValidateScorersLlmValidatePostResponses = { /** * Successful Response */ 200: GeneratedScorerValidationResponse; }; export type ManualLlmValidateScorersLlmValidatePostResponse = ManualLlmValidateScorersLlmValidatePostResponses[keyof ManualLlmValidateScorersLlmValidatePostResponses]; export type GetStageProjectsProjectIdStagesGetData = { body?: never; path: { /** * Project Id */ project_id: string; }; query?: { /** * Stage Name */ stage_name?: string | null; /** * Stage Id */ stage_id?: string | null; }; url: '/projects/{project_id}/stages'; }; export type GetStageProjectsProjectIdStagesGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetStageProjectsProjectIdStagesGetError = GetStageProjectsProjectIdStagesGetErrors[keyof GetStageProjectsProjectIdStagesGetErrors]; export type GetStageProjectsProjectIdStagesGetResponses = { /** * Successful Response */ 200: StageDb; }; export type GetStageProjectsProjectIdStagesGetResponse = GetStageProjectsProjectIdStagesGetResponses[keyof GetStageProjectsProjectIdStagesGetResponses]; export type CreateStageProjectsProjectIdStagesPostData = { body: StageWithRulesets; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/stages'; }; export type CreateStageProjectsProjectIdStagesPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateStageProjectsProjectIdStagesPostError = CreateStageProjectsProjectIdStagesPostErrors[keyof CreateStageProjectsProjectIdStagesPostErrors]; export type CreateStageProjectsProjectIdStagesPostResponses = { /** * Successful Response */ 200: StageDb; }; export type CreateStageProjectsProjectIdStagesPostResponse = CreateStageProjectsProjectIdStagesPostResponses[keyof CreateStageProjectsProjectIdStagesPostResponses]; export type UpdateStageProjectsProjectIdStagesStageIdPostData = { body: RulesetsMixin; path: { /** * Project Id */ project_id: string; /** * Stage Id */ stage_id: string; }; query?: never; url: '/projects/{project_id}/stages/{stage_id}'; }; export type UpdateStageProjectsProjectIdStagesStageIdPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateStageProjectsProjectIdStagesStageIdPostError = UpdateStageProjectsProjectIdStagesStageIdPostErrors[keyof UpdateStageProjectsProjectIdStagesStageIdPostErrors]; export type UpdateStageProjectsProjectIdStagesStageIdPostResponses = { /** * Successful Response */ 200: StageDb; }; export type UpdateStageProjectsProjectIdStagesStageIdPostResponse = UpdateStageProjectsProjectIdStagesStageIdPostResponses[keyof UpdateStageProjectsProjectIdStagesStageIdPostResponses]; export type PauseStageProjectsProjectIdStagesStageIdPutData = { body?: never; path: { /** * Stage Id */ stage_id: string; /** * Project Id */ project_id: string; }; query?: { /** * Pause */ pause?: boolean; }; url: '/projects/{project_id}/stages/{stage_id}'; }; export type PauseStageProjectsProjectIdStagesStageIdPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type PauseStageProjectsProjectIdStagesStageIdPutError = PauseStageProjectsProjectIdStagesStageIdPutErrors[keyof PauseStageProjectsProjectIdStagesStageIdPutErrors]; export type PauseStageProjectsProjectIdStagesStageIdPutResponses = { /** * Successful Response */ 200: StageDb; }; export type PauseStageProjectsProjectIdStagesStageIdPutResponse = PauseStageProjectsProjectIdStagesStageIdPutResponses[keyof PauseStageProjectsProjectIdStagesStageIdPutResponses]; export type GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/tags'; }; export type GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetError = GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetErrors[keyof GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetErrors]; export type GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetResponses = { /** * Response Get Experiment Tags Projects Project Id Experiments Experiment Id Tags Get * * Successful Response */ 200: Array; }; export type GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetResponse = GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetResponses[keyof GetExperimentTagsProjectsProjectIdExperimentsExperimentIdTagsGetResponses]; export type SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostData = { body: RunTagCreateRequest; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/tags'; }; export type SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostError = SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostErrors[keyof SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostErrors]; export type SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostResponses = { /** * Successful Response */ 200: RunTagDb; }; export type SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostResponse = SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostResponses[keyof SetTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsPostResponses]; export type DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; /** * Tag Id */ tag_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/tags/{tag_id}'; }; export type DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteError = DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteErrors[keyof DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteErrors]; export type DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteResponses = { /** * Successful Response */ 200: DeleteRunResponse; }; export type DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteResponse = DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteResponses[keyof DeleteExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdDeleteResponses]; export type GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; /** * Tag Id */ tag_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/tags/{tag_id}'; }; export type GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetError = GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetErrors[keyof GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetErrors]; export type GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetResponses = { /** * Successful Response */ 200: RunTagDb; }; export type GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetResponse = GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetResponses[keyof GetExperimentTagProjectsProjectIdExperimentsExperimentIdTagsTagIdGetResponses]; export type UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutData = { body: RunTagCreateRequest; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; /** * Tag Id */ tag_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/tags/{tag_id}'; }; export type UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutError = UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutErrors[keyof UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutErrors]; export type UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutResponses = { /** * Successful Response */ 200: RunTagDb; }; export type UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutResponse = UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutResponses[keyof UpdateTagForExperimentProjectsProjectIdExperimentsExperimentIdTagsTagIdPutResponses]; export type ListAvailableIntegrationsIntegrationsAvailableGetData = { body?: never; path?: never; query?: never; url: '/integrations/available'; }; export type ListAvailableIntegrationsIntegrationsAvailableGetResponses = { /** * Successful Response */ 200: AvailableIntegrations; }; export type ListAvailableIntegrationsIntegrationsAvailableGetResponse = ListAvailableIntegrationsIntegrationsAvailableGetResponses[keyof ListAvailableIntegrationsIntegrationsAvailableGetResponses]; export type DeleteIntegrationIntegrationsNameDeleteData = { body?: never; path: { name: IntegrationName; }; query?: never; url: '/integrations/{name}'; }; export type DeleteIntegrationIntegrationsNameDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteIntegrationIntegrationsNameDeleteError = DeleteIntegrationIntegrationsNameDeleteErrors[keyof DeleteIntegrationIntegrationsNameDeleteErrors]; export type DeleteIntegrationIntegrationsNameDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type GetIntegrationIntegrationsNameGetData = { body?: never; path: { name: IntegrationName; }; query?: never; url: '/integrations/{name}'; }; export type GetIntegrationIntegrationsNameGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetIntegrationIntegrationsNameGetError = GetIntegrationIntegrationsNameGetErrors[keyof GetIntegrationIntegrationsNameGetErrors]; export type GetIntegrationIntegrationsNameGetResponses = { /** * Response Get Integration Integrations Name Get * * Successful Response */ 200: | ({ name: 'aws_bedrock'; } & AwsBedrockIntegration) | ({ name: 'aws_sagemaker'; } & AwsSageMakerIntegration) | ({ name: 'azure'; } & AzureIntegration) | ({ name: 'anthropic'; } & AnthropicIntegration) | ({ name: 'custom'; } & CustomIntegration) | ({ name: 'databricks'; } & DatabricksIntegration) | ({ name: 'mistral'; } & MistralIntegration) | ({ name: 'nvidia'; } & NvidiaIntegration) | ({ name: 'openai'; } & OpenAiIntegration) | ({ name: 'vegas_gateway'; } & VegasGatewayIntegration) | ({ name: 'vertex_ai'; } & VertexAiIntegration) | ({ name: 'writer'; } & WriterIntegration); }; export type GetIntegrationIntegrationsNameGetResponse = GetIntegrationIntegrationsNameGetResponses[keyof GetIntegrationIntegrationsNameGetResponses]; export type GetIntegrationStatusIntegrationsNameStatusGetData = { body?: never; path: { name: IntegrationName; }; query?: never; url: '/integrations/{name}/status'; }; export type GetIntegrationStatusIntegrationsNameStatusGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetIntegrationStatusIntegrationsNameStatusGetError = GetIntegrationStatusIntegrationsNameStatusGetErrors[keyof GetIntegrationStatusIntegrationsNameStatusGetErrors]; export type GetIntegrationStatusIntegrationsNameStatusGetResponses = { /** * Response Get Integration Status Integrations Name Status Get * * Successful Response */ 200: { [key: string]: string; }; }; export type GetIntegrationStatusIntegrationsNameStatusGetResponse = GetIntegrationStatusIntegrationsNameStatusGetResponses[keyof GetIntegrationStatusIntegrationsNameStatusGetResponses]; export type ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetData = { body?: never; path: { /** * Integration Id */ integration_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/integrations/{integration_id}/users'; }; export type ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetError = ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetErrors[keyof ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetErrors]; export type ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetResponses = { /** * Successful Response */ 200: ListUserCollaboratorsResponse; }; export type ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetResponse = ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetResponses[keyof ListUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersGetResponses]; export type CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostData = { /** * Body */ body: Array; path: { /** * Integration Id */ integration_id: string; }; query?: never; url: '/integrations/{integration_id}/users'; }; export type CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostError = CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostErrors[keyof CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostErrors]; export type CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostResponses = { /** * Response Create User Integration Collaborators Integrations Integration Id Users Post * * Successful Response */ 200: Array; }; export type CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostResponse = CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostResponses[keyof CreateUserIntegrationCollaboratorsIntegrationsIntegrationIdUsersPostResponses]; export type DeleteUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdDeleteData = { body?: never; path: { /** * Integration Id */ integration_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/integrations/{integration_id}/users/{user_id}'; }; export type DeleteUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdDeleteError = DeleteUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdDeleteErrors[keyof DeleteUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdDeleteErrors]; export type DeleteUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchData = { body: CollaboratorUpdate; path: { /** * Integration Id */ integration_id: string; /** * User Id */ user_id: string; }; query?: never; url: '/integrations/{integration_id}/users/{user_id}'; }; export type UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchError = UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchErrors[keyof UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchErrors]; export type UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchResponses = { /** * Successful Response */ 200: UserCollaborator; }; export type UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchResponse = UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchResponses[keyof UpdateUserIntegrationCollaboratorIntegrationsIntegrationIdUsersUserIdPatchResponses]; export type ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetData = { body?: never; path: { /** * Integration Id */ integration_id: string; }; query?: { /** * Starting Token */ starting_token?: number; /** * Limit */ limit?: number; }; url: '/integrations/{integration_id}/groups'; }; export type ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetError = ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetErrors[keyof ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetErrors]; export type ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetResponses = { /** * Successful Response */ 200: ListGroupCollaboratorsResponse; }; export type ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetResponse = ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetResponses[keyof ListGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsGetResponses]; export type CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostData = { /** * Body */ body: Array; path: { /** * Integration Id */ integration_id: string; }; query?: never; url: '/integrations/{integration_id}/groups'; }; export type CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostError = CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostErrors[keyof CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostErrors]; export type CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostResponses = { /** * Response Create Group Integration Collaborators Integrations Integration Id Groups Post * * Successful Response */ 200: Array; }; export type CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostResponse = CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostResponses[keyof CreateGroupIntegrationCollaboratorsIntegrationsIntegrationIdGroupsPostResponses]; export type DeleteGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdDeleteData = { body?: never; path: { /** * Integration Id */ integration_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/integrations/{integration_id}/groups/{group_id}'; }; export type DeleteGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdDeleteErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdDeleteError = DeleteGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdDeleteErrors[keyof DeleteGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdDeleteErrors]; export type DeleteGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdDeleteResponses = { /** * Successful Response */ 200: unknown; }; export type UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchData = { body: CollaboratorUpdate; path: { /** * Integration Id */ integration_id: string; /** * Group Id */ group_id: string; }; query?: never; url: '/integrations/{integration_id}/groups/{group_id}'; }; export type UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchError = UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchErrors[keyof UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchErrors]; export type UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchResponses = { /** * Successful Response */ 200: GroupCollaborator; }; export type UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchResponse = UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchResponses[keyof UpdateGroupIntegrationCollaboratorIntegrationsIntegrationIdGroupsGroupIdPatchResponses]; export type CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutData = { body?: never; path: { /** * Integration Id */ integration_id: string; }; query?: never; url: '/integrations/{integration_id}/select'; }; export type CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutError = CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutErrors[keyof CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutErrors]; export type CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutResponse = CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutResponses[keyof CreateOrUpdateIntegrationSelectionIntegrationsIntegrationIdSelectPutResponses]; export type CreateOrUpdateIntegrationIntegrationsAnthropicPutData = { body: AnthropicIntegrationCreate; path?: never; query?: never; url: '/integrations/anthropic'; }; export type CreateOrUpdateIntegrationIntegrationsAnthropicPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsAnthropicPutError = CreateOrUpdateIntegrationIntegrationsAnthropicPutErrors[keyof CreateOrUpdateIntegrationIntegrationsAnthropicPutErrors]; export type CreateOrUpdateIntegrationIntegrationsAnthropicPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsAnthropicPutResponse = CreateOrUpdateIntegrationIntegrationsAnthropicPutResponses[keyof CreateOrUpdateIntegrationIntegrationsAnthropicPutResponses]; export type CreateOrUpdateIntegrationIntegrationsAwsBedrockPutData = { body: BaseAwsIntegrationCreate; path?: never; query?: never; url: '/integrations/aws_bedrock'; }; export type CreateOrUpdateIntegrationIntegrationsAwsBedrockPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsAwsBedrockPutError = CreateOrUpdateIntegrationIntegrationsAwsBedrockPutErrors[keyof CreateOrUpdateIntegrationIntegrationsAwsBedrockPutErrors]; export type CreateOrUpdateIntegrationIntegrationsAwsBedrockPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsAwsBedrockPutResponse = CreateOrUpdateIntegrationIntegrationsAwsBedrockPutResponses[keyof CreateOrUpdateIntegrationIntegrationsAwsBedrockPutResponses]; export type CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutData = { body: AwsSageMakerIntegrationCreate; path?: never; query?: never; url: '/integrations/aws_sagemaker'; }; export type CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutError = CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutErrors[keyof CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutErrors]; export type CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutResponse = CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutResponses[keyof CreateOrUpdateIntegrationIntegrationsAwsSagemakerPutResponses]; export type CreateOrUpdateIntegrationIntegrationsAzurePutData = { body: AzureIntegrationCreate; path?: never; query?: never; url: '/integrations/azure'; }; export type CreateOrUpdateIntegrationIntegrationsAzurePutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsAzurePutError = CreateOrUpdateIntegrationIntegrationsAzurePutErrors[keyof CreateOrUpdateIntegrationIntegrationsAzurePutErrors]; export type CreateOrUpdateIntegrationIntegrationsAzurePutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsAzurePutResponse = CreateOrUpdateIntegrationIntegrationsAzurePutResponses[keyof CreateOrUpdateIntegrationIntegrationsAzurePutResponses]; export type CreateOrUpdateIntegrationIntegrationsCustomPutData = { body: CustomIntegrationCreate; path?: never; query?: never; url: '/integrations/custom'; }; export type CreateOrUpdateIntegrationIntegrationsCustomPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsCustomPutError = CreateOrUpdateIntegrationIntegrationsCustomPutErrors[keyof CreateOrUpdateIntegrationIntegrationsCustomPutErrors]; export type CreateOrUpdateIntegrationIntegrationsCustomPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsCustomPutResponse = CreateOrUpdateIntegrationIntegrationsCustomPutResponses[keyof CreateOrUpdateIntegrationIntegrationsCustomPutResponses]; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutData = { body: DatabricksIntegrationCreate; path?: never; query?: never; url: '/integrations/databricks/unity-catalog/sql'; }; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutError = CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutErrors[keyof CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutErrors]; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutResponse = CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutResponses[keyof CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksUnityCatalogSqlPutResponses]; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutData = { body: DatabricksIntegrationCreate; path?: never; query?: never; url: '/integrations/databricks'; }; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutError = CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutErrors[keyof CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutErrors]; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutResponse = CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutResponses[keyof CreateOrUpdateUnityCatalogIntegrationIntegrationsDatabricksPutResponses]; export type GetDatabricksCatalogsIntegrationsDatabricksCatalogsGetData = { body?: never; path?: never; query?: never; url: '/integrations/databricks/catalogs'; }; export type GetDatabricksCatalogsIntegrationsDatabricksCatalogsGetResponses = { /** * Response Get Databricks Catalogs Integrations Databricks Catalogs Get * * Successful Response */ 200: Array; }; export type GetDatabricksCatalogsIntegrationsDatabricksCatalogsGetResponse = GetDatabricksCatalogsIntegrationsDatabricksCatalogsGetResponses[keyof GetDatabricksCatalogsIntegrationsDatabricksCatalogsGetResponses]; export type GetDatabasesForClusterIntegrationsDatabricksDatabasesGetData = { body?: never; path?: never; query?: { /** * Catalog */ catalog?: string | null; }; url: '/integrations/databricks/databases'; }; export type GetDatabasesForClusterIntegrationsDatabricksDatabasesGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetDatabasesForClusterIntegrationsDatabricksDatabasesGetError = GetDatabasesForClusterIntegrationsDatabricksDatabasesGetErrors[keyof GetDatabasesForClusterIntegrationsDatabricksDatabasesGetErrors]; export type GetDatabasesForClusterIntegrationsDatabricksDatabasesGetResponses = { /** * Response Get Databases For Cluster Integrations Databricks Databases Get * * Successful Response */ 200: Array; }; export type GetDatabasesForClusterIntegrationsDatabricksDatabasesGetResponse = GetDatabasesForClusterIntegrationsDatabricksDatabasesGetResponses[keyof GetDatabasesForClusterIntegrationsDatabricksDatabasesGetResponses]; export type CreateOrUpdateIntegrationIntegrationsMistralPutData = { body: MistralIntegrationCreate; path?: never; query?: never; url: '/integrations/mistral'; }; export type CreateOrUpdateIntegrationIntegrationsMistralPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsMistralPutError = CreateOrUpdateIntegrationIntegrationsMistralPutErrors[keyof CreateOrUpdateIntegrationIntegrationsMistralPutErrors]; export type CreateOrUpdateIntegrationIntegrationsMistralPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsMistralPutResponse = CreateOrUpdateIntegrationIntegrationsMistralPutResponses[keyof CreateOrUpdateIntegrationIntegrationsMistralPutResponses]; export type CreateOrUpdateIntegrationIntegrationsNvidiaPutData = { body: NvidiaIntegrationCreate; path?: never; query?: never; url: '/integrations/nvidia'; }; export type CreateOrUpdateIntegrationIntegrationsNvidiaPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsNvidiaPutError = CreateOrUpdateIntegrationIntegrationsNvidiaPutErrors[keyof CreateOrUpdateIntegrationIntegrationsNvidiaPutErrors]; export type CreateOrUpdateIntegrationIntegrationsNvidiaPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsNvidiaPutResponse = CreateOrUpdateIntegrationIntegrationsNvidiaPutResponses[keyof CreateOrUpdateIntegrationIntegrationsNvidiaPutResponses]; export type CreateOrUpdateIntegrationIntegrationsOpenaiPutData = { body: OpenAiIntegrationCreate; path?: never; query?: never; url: '/integrations/openai'; }; export type CreateOrUpdateIntegrationIntegrationsOpenaiPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsOpenaiPutError = CreateOrUpdateIntegrationIntegrationsOpenaiPutErrors[keyof CreateOrUpdateIntegrationIntegrationsOpenaiPutErrors]; export type CreateOrUpdateIntegrationIntegrationsOpenaiPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsOpenaiPutResponse = CreateOrUpdateIntegrationIntegrationsOpenaiPutResponses[keyof CreateOrUpdateIntegrationIntegrationsOpenaiPutResponses]; export type CreateOrUpdateIntegrationIntegrationsVegasGatewayPutData = { body: VegasGatewayIntegrationCreate; path?: never; query?: never; url: '/integrations/vegas_gateway'; }; export type CreateOrUpdateIntegrationIntegrationsVegasGatewayPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsVegasGatewayPutError = CreateOrUpdateIntegrationIntegrationsVegasGatewayPutErrors[keyof CreateOrUpdateIntegrationIntegrationsVegasGatewayPutErrors]; export type CreateOrUpdateIntegrationIntegrationsVegasGatewayPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsVegasGatewayPutResponse = CreateOrUpdateIntegrationIntegrationsVegasGatewayPutResponses[keyof CreateOrUpdateIntegrationIntegrationsVegasGatewayPutResponses]; export type CreateOrUpdateIntegrationIntegrationsVertexAiPutData = { body: VertexAiIntegrationCreate; path?: never; query?: never; url: '/integrations/vertex_ai'; }; export type CreateOrUpdateIntegrationIntegrationsVertexAiPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsVertexAiPutError = CreateOrUpdateIntegrationIntegrationsVertexAiPutErrors[keyof CreateOrUpdateIntegrationIntegrationsVertexAiPutErrors]; export type CreateOrUpdateIntegrationIntegrationsVertexAiPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsVertexAiPutResponse = CreateOrUpdateIntegrationIntegrationsVertexAiPutResponses[keyof CreateOrUpdateIntegrationIntegrationsVertexAiPutResponses]; export type CreateOrUpdateIntegrationIntegrationsWriterPutData = { body: WriterIntegrationCreate; path?: never; query?: never; url: '/integrations/writer'; }; export type CreateOrUpdateIntegrationIntegrationsWriterPutErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateOrUpdateIntegrationIntegrationsWriterPutError = CreateOrUpdateIntegrationIntegrationsWriterPutErrors[keyof CreateOrUpdateIntegrationIntegrationsWriterPutErrors]; export type CreateOrUpdateIntegrationIntegrationsWriterPutResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type CreateOrUpdateIntegrationIntegrationsWriterPutResponse = CreateOrUpdateIntegrationIntegrationsWriterPutResponses[keyof CreateOrUpdateIntegrationIntegrationsWriterPutResponses]; export type GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetData = { body?: never; path: { llm_integration: LlmIntegration; }; query?: never; url: '/llm_integrations/{llm_integration}/models'; }; export type GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetError = GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetErrors[keyof GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetErrors]; export type GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetResponses = { /** * Response Get Available Models Llm Integrations Llm Integration Models Get * * Successful Response */ 200: Array; }; export type GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetResponse = GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetResponses[keyof GetAvailableModelsLlmIntegrationsLlmIntegrationModelsGetResponses]; export type GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetData = { body?: never; path: { llm_integration: LlmIntegration; }; query?: never; url: '/llm_integrations/{llm_integration}/scorer_models'; }; export type GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetError = GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetErrors[keyof GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetErrors]; export type GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetResponses = { /** * Response Get Available Scorer Models Llm Integrations Llm Integration Scorer Models Get * * Successful Response */ 200: Array; }; export type GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetResponse = GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetResponses[keyof GetAvailableScorerModelsLlmIntegrationsLlmIntegrationScorerModelsGetResponses]; export type GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetData = { body?: never; path: { /** * Dataset Id */ dataset_id: string; }; query?: never; url: '/datasets/{dataset_id}/variable_preview'; }; export type GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetError = GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetErrors[keyof GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetErrors]; export type GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetResponses = { /** * Response Get Dataset Variable Preview Datasets Dataset Id Variable Preview Get * * Successful Response */ 200: Array; }; export type GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetResponse = GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetResponses[keyof GetDatasetVariablePreviewDatasetsDatasetIdVariablePreviewGetResponses]; export type GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostData = { body: ExperimentMetricsRequest; path: { /** * Project Id */ project_id: string; /** * Experiment Id */ experiment_id: string; }; query?: never; url: '/projects/{project_id}/experiments/{experiment_id}/metrics'; }; export type GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostError = GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostErrors[keyof GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostErrors]; export type GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostResponses = { /** * Successful Response */ 200: ExperimentMetricsResponse; }; export type GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostResponse = GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostResponses[keyof GetExperimentMetricsProjectsProjectIdExperimentsExperimentIdMetricsPostResponses]; export type GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostData = { body: ExperimentMetricsRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/experiments/metrics'; }; export type GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostError = GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostErrors[keyof GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostErrors]; export type GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostResponses = { /** * Successful Response */ 200: ExperimentMetricsResponse; }; export type GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostResponse = GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostResponses[keyof GetExperimentsMetricsProjectsProjectIdExperimentsMetricsPostResponses]; export type CreateScorersPostData = { body: CreateScorerRequest; path?: never; query?: never; url: '/scorers'; }; export type CreateScorersPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateScorersPostError = CreateScorersPostErrors[keyof CreateScorersPostErrors]; export type CreateScorersPostResponses = { /** * Successful Response */ 200: ScorerResponse; }; export type CreateScorersPostResponse = CreateScorersPostResponses[keyof CreateScorersPostResponses]; export type CreateLlmScorerVersionScorersScorerIdVersionLlmPostData = { body: CreateLlmScorerVersionRequest; path: { /** * Scorer Id */ scorer_id: string; }; query?: never; url: '/scorers/{scorer_id}/version/llm'; }; export type CreateLlmScorerVersionScorersScorerIdVersionLlmPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateLlmScorerVersionScorersScorerIdVersionLlmPostError = CreateLlmScorerVersionScorersScorerIdVersionLlmPostErrors[keyof CreateLlmScorerVersionScorersScorerIdVersionLlmPostErrors]; export type CreateLlmScorerVersionScorersScorerIdVersionLlmPostResponses = { /** * Successful Response */ 200: BaseScorerVersionResponse; }; export type CreateLlmScorerVersionScorersScorerIdVersionLlmPostResponse = CreateLlmScorerVersionScorersScorerIdVersionLlmPostResponses[keyof CreateLlmScorerVersionScorersScorerIdVersionLlmPostResponses]; export type ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostData = { body: BodyValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost; path?: never; query?: never; url: '/scorers/code/validate/log_record'; }; export type ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostError = ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostErrors[keyof ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostErrors]; export type ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostResponses = { /** * Successful Response */ 200: ValidateScorerLogRecordResponse; }; export type ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostResponse = ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostResponses[keyof ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostResponses]; export type ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostData = { body: ValidateLlmScorerLogRecordRequest; path?: never; query?: never; url: '/scorers/llm/validate/log_record'; }; export type ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostError = ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostErrors[keyof ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostErrors]; export type ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostResponses = { /** * Successful Response */ 200: ValidateLlmScorerLogRecordResponse; }; export type ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostResponse = ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostResponses[keyof ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostResponses]; export type ValidateLlmScorerDatasetScorersLlmValidateDatasetPostData = { body: ValidateLlmScorerDatasetRequest; path?: never; query?: never; url: '/scorers/llm/validate/dataset'; }; export type ValidateLlmScorerDatasetScorersLlmValidateDatasetPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ValidateLlmScorerDatasetScorersLlmValidateDatasetPostError = ValidateLlmScorerDatasetScorersLlmValidateDatasetPostErrors[keyof ValidateLlmScorerDatasetScorersLlmValidateDatasetPostErrors]; export type ValidateLlmScorerDatasetScorersLlmValidateDatasetPostResponses = { /** * Successful Response */ 200: ValidateLlmScorerDatasetResponse; }; export type ValidateLlmScorerDatasetScorersLlmValidateDatasetPostResponse = ValidateLlmScorerDatasetScorersLlmValidateDatasetPostResponses[keyof ValidateLlmScorerDatasetScorersLlmValidateDatasetPostResponses]; export type ValidateCodeScorerDatasetScorersCodeValidateDatasetPostData = { body: BodyValidateCodeScorerDatasetScorersCodeValidateDatasetPost; path?: never; query?: never; url: '/scorers/code/validate/dataset'; }; export type ValidateCodeScorerDatasetScorersCodeValidateDatasetPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ValidateCodeScorerDatasetScorersCodeValidateDatasetPostError = ValidateCodeScorerDatasetScorersCodeValidateDatasetPostErrors[keyof ValidateCodeScorerDatasetScorersCodeValidateDatasetPostErrors]; export type ValidateCodeScorerDatasetScorersCodeValidateDatasetPostResponses = { /** * Successful Response */ 200: ValidateCodeScorerDatasetResponse; }; export type ValidateCodeScorerDatasetScorersCodeValidateDatasetPostResponse = ValidateCodeScorerDatasetScorersCodeValidateDatasetPostResponses[keyof ValidateCodeScorerDatasetScorersCodeValidateDatasetPostResponses]; export type LogTracesProjectsProjectIdTracesPostData = { body: LogTracesIngestRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces'; }; export type LogTracesProjectsProjectIdTracesPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type LogTracesProjectsProjectIdTracesPostError = LogTracesProjectsProjectIdTracesPostErrors[keyof LogTracesProjectsProjectIdTracesPostErrors]; export type LogTracesProjectsProjectIdTracesPostResponses = { /** * Successful Response */ 200: LogTracesIngestResponse; }; export type LogTracesProjectsProjectIdTracesPostResponse = LogTracesProjectsProjectIdTracesPostResponses[keyof LogTracesProjectsProjectIdTracesPostResponses]; export type GetTraceProjectsProjectIdTracesTraceIdGetData = { body?: never; path: { /** * Trace Id */ trace_id: string; /** * Project Id */ project_id: string; }; query?: { /** * Include Presigned Urls */ include_presigned_urls?: boolean; }; url: '/projects/{project_id}/traces/{trace_id}'; }; export type GetTraceProjectsProjectIdTracesTraceIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetTraceProjectsProjectIdTracesTraceIdGetError = GetTraceProjectsProjectIdTracesTraceIdGetErrors[keyof GetTraceProjectsProjectIdTracesTraceIdGetErrors]; export type GetTraceProjectsProjectIdTracesTraceIdGetResponses = { /** * Successful Response */ 200: ExtendedTraceRecordWithChildren; }; export type GetTraceProjectsProjectIdTracesTraceIdGetResponse = GetTraceProjectsProjectIdTracesTraceIdGetResponses[keyof GetTraceProjectsProjectIdTracesTraceIdGetResponses]; export type UpdateTraceProjectsProjectIdTracesTraceIdPatchData = { body: LogTraceUpdateRequest; path: { /** * Trace Id */ trace_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/{trace_id}'; }; export type UpdateTraceProjectsProjectIdTracesTraceIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateTraceProjectsProjectIdTracesTraceIdPatchError = UpdateTraceProjectsProjectIdTracesTraceIdPatchErrors[keyof UpdateTraceProjectsProjectIdTracesTraceIdPatchErrors]; export type UpdateTraceProjectsProjectIdTracesTraceIdPatchResponses = { /** * Successful Response */ 200: LogTraceUpdateResponse; }; export type UpdateTraceProjectsProjectIdTracesTraceIdPatchResponse = UpdateTraceProjectsProjectIdTracesTraceIdPatchResponses[keyof UpdateTraceProjectsProjectIdTracesTraceIdPatchResponses]; export type GetSpanProjectsProjectIdSpansSpanIdGetData = { body?: never; path: { /** * Span Id */ span_id: string; /** * Project Id */ project_id: string; }; query?: { /** * Include Presigned Urls */ include_presigned_urls?: boolean; }; url: '/projects/{project_id}/spans/{span_id}'; }; export type GetSpanProjectsProjectIdSpansSpanIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetSpanProjectsProjectIdSpansSpanIdGetError = GetSpanProjectsProjectIdSpansSpanIdGetErrors[keyof GetSpanProjectsProjectIdSpansSpanIdGetErrors]; export type GetSpanProjectsProjectIdSpansSpanIdGetResponses = { /** * Response Get Span Projects Project Id Spans Span Id Get * * Successful Response */ 200: | ({ type: 'agent'; } & ExtendedAgentSpanRecordWithChildren) | ({ type: 'workflow'; } & ExtendedWorkflowSpanRecordWithChildren) | ({ type: 'llm'; } & ExtendedLlmSpanRecord) | ({ type: 'tool'; } & ExtendedToolSpanRecordWithChildren) | ({ type: 'retriever'; } & ExtendedRetrieverSpanRecordWithChildren) | ({ type: 'control'; } & ExtendedControlSpanRecord); }; export type GetSpanProjectsProjectIdSpansSpanIdGetResponse = GetSpanProjectsProjectIdSpansSpanIdGetResponses[keyof GetSpanProjectsProjectIdSpansSpanIdGetResponses]; export type UpdateSpanProjectsProjectIdSpansSpanIdPatchData = { body: LogSpanUpdateRequest; path: { /** * Span Id */ span_id: string; /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans/{span_id}'; }; export type UpdateSpanProjectsProjectIdSpansSpanIdPatchErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type UpdateSpanProjectsProjectIdSpansSpanIdPatchError = UpdateSpanProjectsProjectIdSpansSpanIdPatchErrors[keyof UpdateSpanProjectsProjectIdSpansSpanIdPatchErrors]; export type UpdateSpanProjectsProjectIdSpansSpanIdPatchResponses = { /** * Successful Response */ 200: LogSpanUpdateResponse; }; export type UpdateSpanProjectsProjectIdSpansSpanIdPatchResponse = UpdateSpanProjectsProjectIdSpansSpanIdPatchResponses[keyof UpdateSpanProjectsProjectIdSpansSpanIdPatchResponses]; export type TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostData = { body: LogRecordsAvailableColumnsRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/available_columns'; }; export type TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostError = TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostErrors[keyof TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostErrors]; export type TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostResponses = { /** * Successful Response */ 200: LogRecordsAvailableColumnsResponse; }; export type TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostResponse = TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostResponses[keyof TracesAvailableColumnsProjectsProjectIdTracesAvailableColumnsPostResponses]; export type MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostData = { body: MetricsTestingAvailableColumnsRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/metrics-testing/available_columns'; }; export type MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostError = MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostErrors[keyof MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostErrors]; export type MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostResponses = { /** * Successful Response */ 200: LogRecordsAvailableColumnsResponse; }; export type MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostResponse = MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostResponses[keyof MetricsTestingAvailableColumnsProjectsProjectIdMetricsTestingAvailableColumnsPostResponses]; export type SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostData = { body: LogRecordsAvailableColumnsRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans/available_columns'; }; export type SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostError = SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostErrors[keyof SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostErrors]; export type SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostResponses = { /** * Successful Response */ 200: LogRecordsAvailableColumnsResponse; }; export type SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostResponse = SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostResponses[keyof SpansAvailableColumnsProjectsProjectIdSpansAvailableColumnsPostResponses]; export type SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostData = { body: LogRecordsAvailableColumnsRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/sessions/available_columns'; }; export type SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostError = SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostErrors[keyof SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostErrors]; export type SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostResponses = { /** * Successful Response */ 200: LogRecordsAvailableColumnsResponse; }; export type SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostResponse = SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostResponses[keyof SessionsAvailableColumnsProjectsProjectIdSessionsAvailableColumnsPostResponses]; export type QueryTracesProjectsProjectIdTracesSearchPostData = { body: LogRecordsQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/search'; }; export type QueryTracesProjectsProjectIdTracesSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryTracesProjectsProjectIdTracesSearchPostError = QueryTracesProjectsProjectIdTracesSearchPostErrors[keyof QueryTracesProjectsProjectIdTracesSearchPostErrors]; export type QueryTracesProjectsProjectIdTracesSearchPostResponses = { /** * Successful Response */ 200: LogRecordsQueryResponse; }; export type QueryTracesProjectsProjectIdTracesSearchPostResponse = QueryTracesProjectsProjectIdTracesSearchPostResponses[keyof QueryTracesProjectsProjectIdTracesSearchPostResponses]; export type QueryPartialTracesProjectsProjectIdTracesPartialSearchPostData = { body: LogRecordsPartialQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/partial_search'; }; export type QueryPartialTracesProjectsProjectIdTracesPartialSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryPartialTracesProjectsProjectIdTracesPartialSearchPostError = QueryPartialTracesProjectsProjectIdTracesPartialSearchPostErrors[keyof QueryPartialTracesProjectsProjectIdTracesPartialSearchPostErrors]; export type QueryPartialTracesProjectsProjectIdTracesPartialSearchPostResponses = { /** * Successful Response */ 200: LogRecordsPartialQueryResponse; }; export type QueryPartialTracesProjectsProjectIdTracesPartialSearchPostResponse = QueryPartialTracesProjectsProjectIdTracesPartialSearchPostResponses[keyof QueryPartialTracesProjectsProjectIdTracesPartialSearchPostResponses]; export type CountTracesProjectsProjectIdTracesCountPostData = { body: LogRecordsQueryCountRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/count'; }; export type CountTracesProjectsProjectIdTracesCountPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CountTracesProjectsProjectIdTracesCountPostError = CountTracesProjectsProjectIdTracesCountPostErrors[keyof CountTracesProjectsProjectIdTracesCountPostErrors]; export type CountTracesProjectsProjectIdTracesCountPostResponses = { /** * Successful Response */ 200: LogRecordsQueryCountResponse; }; export type CountTracesProjectsProjectIdTracesCountPostResponse = CountTracesProjectsProjectIdTracesCountPostResponses[keyof CountTracesProjectsProjectIdTracesCountPostResponses]; export type LogSpansProjectsProjectIdSpansPostData = { body: LogSpansIngestRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans'; }; export type LogSpansProjectsProjectIdSpansPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type LogSpansProjectsProjectIdSpansPostError = LogSpansProjectsProjectIdSpansPostErrors[keyof LogSpansProjectsProjectIdSpansPostErrors]; export type LogSpansProjectsProjectIdSpansPostResponses = { /** * Successful Response */ 200: LogSpansIngestResponse; }; export type LogSpansProjectsProjectIdSpansPostResponse = LogSpansProjectsProjectIdSpansPostResponses[keyof LogSpansProjectsProjectIdSpansPostResponses]; export type QuerySpansProjectsProjectIdSpansSearchPostData = { body: LogRecordsQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans/search'; }; export type QuerySpansProjectsProjectIdSpansSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QuerySpansProjectsProjectIdSpansSearchPostError = QuerySpansProjectsProjectIdSpansSearchPostErrors[keyof QuerySpansProjectsProjectIdSpansSearchPostErrors]; export type QuerySpansProjectsProjectIdSpansSearchPostResponses = { /** * Successful Response */ 200: LogRecordsQueryResponse; }; export type QuerySpansProjectsProjectIdSpansSearchPostResponse = QuerySpansProjectsProjectIdSpansSearchPostResponses[keyof QuerySpansProjectsProjectIdSpansSearchPostResponses]; export type QueryPartialSpansProjectsProjectIdSpansPartialSearchPostData = { body: LogRecordsPartialQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans/partial_search'; }; export type QueryPartialSpansProjectsProjectIdSpansPartialSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryPartialSpansProjectsProjectIdSpansPartialSearchPostError = QueryPartialSpansProjectsProjectIdSpansPartialSearchPostErrors[keyof QueryPartialSpansProjectsProjectIdSpansPartialSearchPostErrors]; export type QueryPartialSpansProjectsProjectIdSpansPartialSearchPostResponses = { /** * Successful Response */ 200: LogRecordsPartialQueryResponse; }; export type QueryPartialSpansProjectsProjectIdSpansPartialSearchPostResponse = QueryPartialSpansProjectsProjectIdSpansPartialSearchPostResponses[keyof QueryPartialSpansProjectsProjectIdSpansPartialSearchPostResponses]; export type CountSpansProjectsProjectIdSpansCountPostData = { body: LogRecordsQueryCountRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans/count'; }; export type CountSpansProjectsProjectIdSpansCountPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CountSpansProjectsProjectIdSpansCountPostError = CountSpansProjectsProjectIdSpansCountPostErrors[keyof CountSpansProjectsProjectIdSpansCountPostErrors]; export type CountSpansProjectsProjectIdSpansCountPostResponses = { /** * Successful Response */ 200: LogRecordsQueryCountResponse; }; export type CountSpansProjectsProjectIdSpansCountPostResponse = CountSpansProjectsProjectIdSpansCountPostResponses[keyof CountSpansProjectsProjectIdSpansCountPostResponses]; export type QueryMetricsProjectsProjectIdMetricsSearchPostData = { body: LogRecordsMetricsQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/metrics/search'; }; export type QueryMetricsProjectsProjectIdMetricsSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryMetricsProjectsProjectIdMetricsSearchPostError = QueryMetricsProjectsProjectIdMetricsSearchPostErrors[keyof QueryMetricsProjectsProjectIdMetricsSearchPostErrors]; export type QueryMetricsProjectsProjectIdMetricsSearchPostResponses = { /** * Successful Response */ 200: LogRecordsMetricsResponse; }; export type QueryMetricsProjectsProjectIdMetricsSearchPostResponse = QueryMetricsProjectsProjectIdMetricsSearchPostResponses[keyof QueryMetricsProjectsProjectIdMetricsSearchPostResponses]; export type QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostData = { body: LogRecordsMetricsQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/metrics/search/v2'; }; export type QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostError = QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostErrors[keyof QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostErrors]; export type QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostResponses = { /** * Successful Response */ 200: LogRecordsMetricsResponse; }; export type QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostResponse = QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostResponses[keyof QueryMetricsV2ProjectsProjectIdMetricsSearchV2PostResponses]; export type QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostData = { body: LogRecordsCustomMetricsQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/metrics/custom_search'; }; export type QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostError = QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostErrors[keyof QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostErrors]; export type QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostResponses = { /** * Successful Response */ 200: LogRecordsMetricsResponse; }; export type QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostResponse = QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostResponses[keyof QueryCustomMetricsProjectsProjectIdMetricsCustomSearchPostResponses]; export type CreateSessionProjectsProjectIdSessionsPostData = { body: SessionCreateRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/sessions'; }; export type CreateSessionProjectsProjectIdSessionsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateSessionProjectsProjectIdSessionsPostError = CreateSessionProjectsProjectIdSessionsPostErrors[keyof CreateSessionProjectsProjectIdSessionsPostErrors]; export type CreateSessionProjectsProjectIdSessionsPostResponses = { /** * Successful Response */ 200: SessionCreateResponse; }; export type CreateSessionProjectsProjectIdSessionsPostResponse = CreateSessionProjectsProjectIdSessionsPostResponses[keyof CreateSessionProjectsProjectIdSessionsPostResponses]; export type QuerySessionsProjectsProjectIdSessionsSearchPostData = { body: LogRecordsQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/sessions/search'; }; export type QuerySessionsProjectsProjectIdSessionsSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QuerySessionsProjectsProjectIdSessionsSearchPostError = QuerySessionsProjectsProjectIdSessionsSearchPostErrors[keyof QuerySessionsProjectsProjectIdSessionsSearchPostErrors]; export type QuerySessionsProjectsProjectIdSessionsSearchPostResponses = { /** * Successful Response */ 200: LogRecordsQueryResponse; }; export type QuerySessionsProjectsProjectIdSessionsSearchPostResponse = QuerySessionsProjectsProjectIdSessionsSearchPostResponses[keyof QuerySessionsProjectsProjectIdSessionsSearchPostResponses]; export type QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostData = { body: LogRecordsPartialQueryRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/sessions/partial_search'; }; export type QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostError = QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostErrors[keyof QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostErrors]; export type QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostResponses = { /** * Successful Response */ 200: LogRecordsPartialQueryResponse; }; export type QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostResponse = QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostResponses[keyof QueryPartialSessionsProjectsProjectIdSessionsPartialSearchPostResponses]; export type CountSessionsProjectsProjectIdSessionsCountPostData = { body: LogRecordsQueryCountRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/sessions/count'; }; export type CountSessionsProjectsProjectIdSessionsCountPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CountSessionsProjectsProjectIdSessionsCountPostError = CountSessionsProjectsProjectIdSessionsCountPostErrors[keyof CountSessionsProjectsProjectIdSessionsCountPostErrors]; export type CountSessionsProjectsProjectIdSessionsCountPostResponses = { /** * Successful Response */ 200: LogRecordsQueryCountResponse; }; export type CountSessionsProjectsProjectIdSessionsCountPostResponse = CountSessionsProjectsProjectIdSessionsCountPostResponses[keyof CountSessionsProjectsProjectIdSessionsCountPostResponses]; export type GetSessionProjectsProjectIdSessionsSessionIdGetData = { body?: never; path: { /** * Session Id */ session_id: string; /** * Project Id */ project_id: string; }; query?: { /** * Include Presigned Urls */ include_presigned_urls?: boolean; }; url: '/projects/{project_id}/sessions/{session_id}'; }; export type GetSessionProjectsProjectIdSessionsSessionIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetSessionProjectsProjectIdSessionsSessionIdGetError = GetSessionProjectsProjectIdSessionsSessionIdGetErrors[keyof GetSessionProjectsProjectIdSessionsSessionIdGetErrors]; export type GetSessionProjectsProjectIdSessionsSessionIdGetResponses = { /** * Successful Response */ 200: ExtendedSessionRecordWithChildren; }; export type GetSessionProjectsProjectIdSessionsSessionIdGetResponse = GetSessionProjectsProjectIdSessionsSessionIdGetResponses[keyof GetSessionProjectsProjectIdSessionsSessionIdGetResponses]; export type ExportRecordsProjectsProjectIdExportRecordsPostData = { body: LogRecordsExportRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/export_records'; }; export type ExportRecordsProjectsProjectIdExportRecordsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type ExportRecordsProjectsProjectIdExportRecordsPostError = ExportRecordsProjectsProjectIdExportRecordsPostErrors[keyof ExportRecordsProjectsProjectIdExportRecordsPostErrors]; export type ExportRecordsProjectsProjectIdExportRecordsPostResponses = { /** * Successful Response */ 200: unknown; }; export type DeleteTracesProjectsProjectIdTracesDeletePostData = { body: LogRecordsDeleteRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/traces/delete'; }; export type DeleteTracesProjectsProjectIdTracesDeletePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteTracesProjectsProjectIdTracesDeletePostError = DeleteTracesProjectsProjectIdTracesDeletePostErrors[keyof DeleteTracesProjectsProjectIdTracesDeletePostErrors]; export type DeleteTracesProjectsProjectIdTracesDeletePostResponses = { /** * Successful Response */ 200: LogRecordsDeleteResponse; }; export type DeleteTracesProjectsProjectIdTracesDeletePostResponse = DeleteTracesProjectsProjectIdTracesDeletePostResponses[keyof DeleteTracesProjectsProjectIdTracesDeletePostResponses]; export type DeleteSpansProjectsProjectIdSpansDeletePostData = { body: LogRecordsDeleteRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/spans/delete'; }; export type DeleteSpansProjectsProjectIdSpansDeletePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteSpansProjectsProjectIdSpansDeletePostError = DeleteSpansProjectsProjectIdSpansDeletePostErrors[keyof DeleteSpansProjectsProjectIdSpansDeletePostErrors]; export type DeleteSpansProjectsProjectIdSpansDeletePostResponses = { /** * Successful Response */ 200: LogRecordsDeleteResponse; }; export type DeleteSpansProjectsProjectIdSpansDeletePostResponse = DeleteSpansProjectsProjectIdSpansDeletePostResponses[keyof DeleteSpansProjectsProjectIdSpansDeletePostResponses]; export type DeleteSessionsProjectsProjectIdSessionsDeletePostData = { body: LogRecordsDeleteRequest; path: { /** * Project Id */ project_id: string; }; query?: never; url: '/projects/{project_id}/sessions/delete'; }; export type DeleteSessionsProjectsProjectIdSessionsDeletePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DeleteSessionsProjectsProjectIdSessionsDeletePostError = DeleteSessionsProjectsProjectIdSessionsDeletePostErrors[keyof DeleteSessionsProjectsProjectIdSessionsDeletePostErrors]; export type DeleteSessionsProjectsProjectIdSessionsDeletePostResponses = { /** * Successful Response */ 200: LogRecordsDeleteResponse; }; export type DeleteSessionsProjectsProjectIdSessionsDeletePostResponse = DeleteSessionsProjectsProjectIdSessionsDeletePostResponses[keyof DeleteSessionsProjectsProjectIdSessionsDeletePostResponses]; export type ListIntegrationsIntegrationsGetData = { body?: never; path?: never; query?: never; url: '/integrations'; }; export type ListIntegrationsIntegrationsGetResponses = { /** * Response List Integrations Integrations Get * * Successful Response */ 200: Array; }; export type ListIntegrationsIntegrationsGetResponse = ListIntegrationsIntegrationsGetResponses[keyof ListIntegrationsIntegrationsGetResponses]; export type SelectIntegrationIntegrationsSelectPostData = { body: IntegrationSelectRequest; path?: never; query?: never; url: '/integrations/select'; }; export type SelectIntegrationIntegrationsSelectPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type SelectIntegrationIntegrationsSelectPostError = SelectIntegrationIntegrationsSelectPostErrors[keyof SelectIntegrationIntegrationsSelectPostErrors]; export type SelectIntegrationIntegrationsSelectPostResponses = { /** * Successful Response */ 200: IntegrationDb; }; export type SelectIntegrationIntegrationsSelectPostResponse = SelectIntegrationIntegrationsSelectPostResponses[keyof SelectIntegrationIntegrationsSelectPostResponses]; export type DisableIntegrationIntegrationsDisablePostData = { body: IntegrationDisableRequest; path?: never; query?: never; url: '/integrations/disable'; }; export type DisableIntegrationIntegrationsDisablePostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type DisableIntegrationIntegrationsDisablePostError = DisableIntegrationIntegrationsDisablePostErrors[keyof DisableIntegrationIntegrationsDisablePostErrors]; export type DisableIntegrationIntegrationsDisablePostResponses = { /** * Successful Response */ 200: unknown; }; export type GetIntegrationsAndModelInfoLlmIntegrationsGetData = { body?: never; path?: never; query?: { /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; }; url: '/llm_integrations'; }; export type GetIntegrationsAndModelInfoLlmIntegrationsGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetIntegrationsAndModelInfoLlmIntegrationsGetError = GetIntegrationsAndModelInfoLlmIntegrationsGetErrors[keyof GetIntegrationsAndModelInfoLlmIntegrationsGetErrors]; export type GetIntegrationsAndModelInfoLlmIntegrationsGetResponses = { /** * Response Get Integrations And Model Info Llm Integrations Get * * Successful Response */ 200: { [key in LlmIntegration]?: IntegrationModelsResponse; }; }; export type GetIntegrationsAndModelInfoLlmIntegrationsGetResponse = GetIntegrationsAndModelInfoLlmIntegrationsGetResponses[keyof GetIntegrationsAndModelInfoLlmIntegrationsGetResponses]; export type GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetData = { body?: never; path: { /** * Project Id */ project_id: string; /** * Run Id */ run_id: string; }; query?: { /** * Multimodal Capabilities */ multimodal_capabilities?: Array | null; }; url: '/llm_integrations/projects/{project_id}/runs/{run_id}'; }; export type GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetError = GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetErrors[keyof GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetErrors]; export type GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetResponses = { /** * Response Get Integrations And Model Info For Run Llm Integrations Projects Project Id Runs Run Id Get * * Successful Response */ 200: { [key in LlmIntegration]?: IntegrationModelsResponse; }; }; export type GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetResponse = GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetResponses[keyof GetIntegrationsAndModelInfoForRunLlmIntegrationsProjectsProjectIdRunsRunIdGetResponses]; export type CreateCodeMetricGenerationCodeMetricGenerationsPostData = { body: CreateCodeMetricGenerationRequest; path?: never; query?: never; url: '/code-metric-generations'; }; export type CreateCodeMetricGenerationCodeMetricGenerationsPostErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type CreateCodeMetricGenerationCodeMetricGenerationsPostError = CreateCodeMetricGenerationCodeMetricGenerationsPostErrors[keyof CreateCodeMetricGenerationCodeMetricGenerationsPostErrors]; export type CreateCodeMetricGenerationCodeMetricGenerationsPostResponses = { /** * Successful Response */ 202: CreateCodeMetricGenerationResponse; }; export type CreateCodeMetricGenerationCodeMetricGenerationsPostResponse = CreateCodeMetricGenerationCodeMetricGenerationsPostResponses[keyof CreateCodeMetricGenerationCodeMetricGenerationsPostResponses]; export type GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetData = { body?: never; path: { /** * Generation Id */ generation_id: string; }; query?: never; url: '/code-metric-generations/{generation_id}/status'; }; export type GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetErrors = { /** * Validation Error */ 422: HttpValidationError; }; export type GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetError = GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetErrors[keyof GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetErrors]; export type GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetResponses = { /** * Successful Response */ 200: CodeMetricGenerationStatusResponse; }; export type GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetResponse = GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetResponses[keyof GetCodeMetricGenerationStatusCodeMetricGenerationsGenerationIdStatusGetResponses];