Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 114 additions & 9 deletions openapi/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@
"project_log",
"org_project",
"org_audit_logs",
"project_group"
"project_group",
"ai_secret",
"org_ai_secret"
],
"description": "The object type that the ACL applies to"
},
Expand All @@ -440,7 +442,9 @@
"project_log",
"org_project",
"org_audit_logs",
"project_group"
"project_group",
"ai_secret",
"org_ai_secret"
],
"description": "The object type that the ACL applies to"
},
Expand Down Expand Up @@ -488,7 +492,9 @@
"project_log",
"org_project",
"org_audit_logs",
"project_group"
"project_group",
"ai_secret",
"org_ai_secret"
],
"description": "The object type that the ACL applies to"
},
Expand Down Expand Up @@ -4265,7 +4271,7 @@
"use_cot"
]
},
"PreprocessorSavedFunctionId": {
"PreprocessorId": {
"anyOf": [
{
"type": "object",
Expand Down Expand Up @@ -4317,11 +4323,32 @@
],
"title": "preprocessor_global"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"inline"
]
},
"code": {
"type": "string",
"minLength": 1,
"description": "The complete JavaScript preprocessor implementation, including its handler."
}
},
"required": [
"type",
"code"
],
"title": "preprocessor_inline"
},
{
"type": "null"
}
],
"description": "For prompt-backed scorers: the preprocessor function to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor."
"description": "For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor."
},
"PromptDataNullish": {
"type": "object",
Expand All @@ -4337,7 +4364,7 @@
"$ref": "#/components/schemas/PromptParserNullish"
},
"preprocessor": {
"$ref": "#/components/schemas/PreprocessorSavedFunctionId"
"$ref": "#/components/schemas/PreprocessorId"
},
"tool_functions": {
"type": "array",
Expand Down Expand Up @@ -6158,7 +6185,7 @@
"type": "null"
}
],
"description": "Execution scope for topic automation. Defaults to span-level execution."
"description": "Execution scope for topic automation."
},
"data_scope": {
"$ref": "#/components/schemas/TopicAutomationDataScope"
Expand Down Expand Up @@ -9343,7 +9370,64 @@
},
"source_facet": {
"type": "string",
"description": "The facet field name to use as input for classification"
"description": "Materialized facet field name used when source_facet_function is absent"
},
"source_facet_function": {
"allOf": [
{
"$ref": "#/components/schemas/SavedFunctionId"
},
{
"anyOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"function"
]
},
"id": {
"type": "string"
},
"version": {
"type": "string",
"description": "The version of the function"
}
},
"required": [
"type",
"id"
],
"title": "function"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"global"
]
},
"name": {
"type": "string"
},
"function_type": {
"$ref": "#/components/schemas/FunctionTypeEnum"
}
},
"required": [
"type",
"name"
],
"title": "global"
}
],
"description": "The stable function reference for the source facet"
}
]
},
"embedding_model": {
"type": "string",
Expand Down Expand Up @@ -10779,6 +10863,10 @@
"nullable": true,
"description": "Textual description of the view"
},
"starred": {
"type": "boolean",
"description": "Whether the view is starred in its project"
},
"created": {
"type": "string",
"nullable": true,
Expand Down Expand Up @@ -10934,6 +11022,10 @@
"nullable": true,
"description": "Textual description of the view"
},
"starred": {
"type": "boolean",
"description": "Whether the view is starred in its project"
},
"view_data": {
"$ref": "#/components/schemas/ViewData"
},
Expand Down Expand Up @@ -12060,7 +12152,7 @@
"$ref": "#/components/schemas/PromptParserNullish"
},
"preprocessor": {
"$ref": "#/components/schemas/PreprocessorSavedFunctionId"
"$ref": "#/components/schemas/PreprocessorId"
},
"tool_functions": {
"type": "array",
Expand Down Expand Up @@ -12527,6 +12619,19 @@
],
"description": "Dataset rows",
"title": "dataset_rows"
},
{
"type": "object",
"properties": {
"experiment_name": {
"type": "string"
}
},
"required": [
"experiment_name"
],
"description": "Experiment whose inputs and outputs should be used as dataset inputs and expected values",
"title": "experiment_name"
}
],
"description": "The dataset to use"
Expand Down
90 changes: 80 additions & 10 deletions openapi/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ components:
- org_project
- org_audit_logs
- project_group
- ai_secret
- org_ai_secret
description: The object type that the ACL applies to
AclObjectId:
type: string
Expand All @@ -428,6 +430,8 @@ components:
- org_project
- org_audit_logs
- project_group
- ai_secret
- org_ai_secret
description: The object type that the ACL applies to
AclListOrgObjectId:
type: string
Expand Down Expand Up @@ -477,6 +481,8 @@ components:
- org_project
- org_audit_logs
- project_group
- ai_secret
- org_ai_secret
description: The object type that the ACL applies to
AclListRoleId:
type: string
Expand Down Expand Up @@ -3885,7 +3891,7 @@ components:
required:
- type
- use_cot
PreprocessorSavedFunctionId:
PreprocessorId:
anyOf:
- type: object
properties:
Expand Down Expand Up @@ -3920,11 +3926,26 @@ components:
- type
- name
title: preprocessor_global
- type: object
properties:
type:
type: string
enum:
- inline
code:
type: string
minLength: 1
description: The complete JavaScript preprocessor implementation, including its
handler.
required:
- type
- code
title: preprocessor_inline
- type: "null"
description: "For prompt-backed scorers: the preprocessor function to use for
trace template variables. Set to null to disable preprocessing. If
omitted, the traced project's default preprocessor will be used, falling
back to the global 'thread' preprocessor."
description: "For prompt-backed functions: the saved, global, or inline
preprocessor to use for trace template variables. Set to null to disable
preprocessing. If omitted, the traced project's default preprocessor
will be used, falling back to the global 'thread' preprocessor."
PromptDataNullish:
type: object
nullable: true
Expand All @@ -3936,7 +3957,7 @@ components:
parser:
$ref: "#/components/schemas/PromptParserNullish"
preprocessor:
$ref: "#/components/schemas/PreprocessorSavedFunctionId"
$ref: "#/components/schemas/PreprocessorId"
tool_functions:
type: array
nullable: true
Expand Down Expand Up @@ -5371,8 +5392,7 @@ components:
- $ref: "#/components/schemas/TraceScope"
- $ref: "#/components/schemas/GroupScope"
- type: "null"
description: Execution scope for topic automation. Defaults to span-level
execution.
description: Execution scope for topic automation.
data_scope:
$ref: "#/components/schemas/TopicAutomationDataScope"
btql_filter:
Expand Down Expand Up @@ -7610,7 +7630,42 @@ components:
- topic_map
source_facet:
type: string
description: The facet field name to use as input for classification
description: Materialized facet field name used when source_facet_function is
absent
source_facet_function:
allOf:
- $ref: "#/components/schemas/SavedFunctionId"
- anyOf:
- type: object
properties:
type:
type: string
enum:
- function
id:
type: string
version:
type: string
description: The version of the function
required:
- type
- id
title: function
- type: object
properties:
type:
type: string
enum:
- global
name:
type: string
function_type:
$ref: "#/components/schemas/FunctionTypeEnum"
required:
- type
- name
title: global
description: The stable function reference for the source facet
embedding_model:
type: string
description: The embedding model to use for embedding facet values
Expand Down Expand Up @@ -8622,6 +8677,9 @@ components:
type: string
nullable: true
description: Textual description of the view
starred:
type: boolean
description: Whether the view is starred in its project
created:
type: string
nullable: true
Expand Down Expand Up @@ -8749,6 +8807,9 @@ components:
type: string
nullable: true
description: Textual description of the view
starred:
type: boolean
description: Whether the view is starred in its project
view_data:
$ref: "#/components/schemas/ViewData"
options:
Expand Down Expand Up @@ -9646,7 +9707,7 @@ components:
parser:
$ref: "#/components/schemas/PromptParserNullish"
preprocessor:
$ref: "#/components/schemas/PreprocessorSavedFunctionId"
$ref: "#/components/schemas/PreprocessorId"
tool_functions:
type: array
nullable: true
Expand Down Expand Up @@ -9967,6 +10028,15 @@ components:
- data
description: Dataset rows
title: dataset_rows
- type: object
properties:
experiment_name:
type: string
required:
- experiment_name
description: Experiment whose inputs and outputs should be used as dataset
inputs and expected values
title: experiment_name
description: The dataset to use
name:
type: string
Expand Down