diff --git a/openapi/spec.json b/openapi/spec.json index fa9f4e5..f53c7bc 100644 --- a/openapi/spec.json +++ b/openapi/spec.json @@ -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" }, @@ -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" }, @@ -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" }, @@ -4265,7 +4271,7 @@ "use_cot" ] }, - "PreprocessorSavedFunctionId": { + "PreprocessorId": { "anyOf": [ { "type": "object", @@ -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", @@ -4337,7 +4364,7 @@ "$ref": "#/components/schemas/PromptParserNullish" }, "preprocessor": { - "$ref": "#/components/schemas/PreprocessorSavedFunctionId" + "$ref": "#/components/schemas/PreprocessorId" }, "tool_functions": { "type": "array", @@ -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" @@ -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", @@ -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, @@ -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" }, @@ -12060,7 +12152,7 @@ "$ref": "#/components/schemas/PromptParserNullish" }, "preprocessor": { - "$ref": "#/components/schemas/PreprocessorSavedFunctionId" + "$ref": "#/components/schemas/PreprocessorId" }, "tool_functions": { "type": "array", @@ -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" diff --git a/openapi/spec.yaml b/openapi/spec.yaml index db05a73..69815f0 100644 --- a/openapi/spec.yaml +++ b/openapi/spec.yaml @@ -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 @@ -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 @@ -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 @@ -3885,7 +3891,7 @@ components: required: - type - use_cot - PreprocessorSavedFunctionId: + PreprocessorId: anyOf: - type: object properties: @@ -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 @@ -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 @@ -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: @@ -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 @@ -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 @@ -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: @@ -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 @@ -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