forked from phoenix-oss/llama-stack-mirror
openapi
This commit is contained in:
parent
8592c2b48a
commit
0e8a53ab69
2 changed files with 439 additions and 382 deletions
484
docs/_static/llama-stack-spec.html
vendored
484
docs/_static/llama-stack-spec.html
vendored
|
@ -2493,7 +2493,14 @@
|
||||||
"post": {
|
"post": {
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "OK"
|
"description": "OK",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/Dataset"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"$ref": "#/components/responses/BadRequest400"
|
"$ref": "#/components/responses/BadRequest400"
|
||||||
|
@ -2511,7 +2518,7 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"Datasets"
|
"Datasets"
|
||||||
],
|
],
|
||||||
"description": "",
|
"description": "Register a new dataset through a file or",
|
||||||
"parameters": [],
|
"parameters": [],
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"content": {
|
"content": {
|
||||||
|
@ -6831,81 +6838,6 @@
|
||||||
],
|
],
|
||||||
"title": "Benchmark"
|
"title": "Benchmark"
|
||||||
},
|
},
|
||||||
"AgentTurnInputType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "agent_turn_input",
|
|
||||||
"default": "agent_turn_input"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "AgentTurnInputType"
|
|
||||||
},
|
|
||||||
"ArrayType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "array",
|
|
||||||
"default": "array"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "ArrayType"
|
|
||||||
},
|
|
||||||
"BooleanType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "boolean",
|
|
||||||
"default": "boolean"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "BooleanType"
|
|
||||||
},
|
|
||||||
"ChatCompletionInputType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "chat_completion_input",
|
|
||||||
"default": "chat_completion_input"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "ChatCompletionInputType"
|
|
||||||
},
|
|
||||||
"CompletionInputType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "completion_input",
|
|
||||||
"default": "completion_input"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "CompletionInputType"
|
|
||||||
},
|
|
||||||
"Dataset": {
|
"Dataset": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -6923,14 +6855,11 @@
|
||||||
"const": "dataset",
|
"const": "dataset",
|
||||||
"default": "dataset"
|
"default": "dataset"
|
||||||
},
|
},
|
||||||
"dataset_schema": {
|
"schema": {
|
||||||
"type": "object",
|
"$ref": "#/components/schemas/Schema"
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/components/schemas/ParamType"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"url": {
|
"uri": {
|
||||||
"$ref": "#/components/schemas/URL"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -6964,135 +6893,19 @@
|
||||||
"provider_resource_id",
|
"provider_resource_id",
|
||||||
"provider_id",
|
"provider_id",
|
||||||
"type",
|
"type",
|
||||||
"dataset_schema",
|
"schema",
|
||||||
"url",
|
"uri",
|
||||||
"metadata"
|
"metadata"
|
||||||
],
|
],
|
||||||
"title": "Dataset"
|
"title": "Dataset"
|
||||||
},
|
},
|
||||||
"JsonType": {
|
"Schema": {
|
||||||
"type": "object",
|
"type": "string",
|
||||||
"properties": {
|
"enum": [
|
||||||
"type": {
|
"jsonl_messages"
|
||||||
"type": "string",
|
|
||||||
"const": "json",
|
|
||||||
"default": "json"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
],
|
||||||
"title": "JsonType"
|
"title": "Schema",
|
||||||
},
|
"description": "Schema of the dataset. Each type has a different column format."
|
||||||
"NumberType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "number",
|
|
||||||
"default": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "NumberType"
|
|
||||||
},
|
|
||||||
"ObjectType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "object",
|
|
||||||
"default": "object"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "ObjectType"
|
|
||||||
},
|
|
||||||
"ParamType": {
|
|
||||||
"oneOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/StringType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/NumberType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/BooleanType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/ArrayType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/ObjectType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/JsonType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/UnionType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/ChatCompletionInputType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/CompletionInputType"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/AgentTurnInputType"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"discriminator": {
|
|
||||||
"propertyName": "type",
|
|
||||||
"mapping": {
|
|
||||||
"string": "#/components/schemas/StringType",
|
|
||||||
"number": "#/components/schemas/NumberType",
|
|
||||||
"boolean": "#/components/schemas/BooleanType",
|
|
||||||
"array": "#/components/schemas/ArrayType",
|
|
||||||
"object": "#/components/schemas/ObjectType",
|
|
||||||
"json": "#/components/schemas/JsonType",
|
|
||||||
"union": "#/components/schemas/UnionType",
|
|
||||||
"chat_completion_input": "#/components/schemas/ChatCompletionInputType",
|
|
||||||
"completion_input": "#/components/schemas/CompletionInputType",
|
|
||||||
"agent_turn_input": "#/components/schemas/AgentTurnInputType"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"StringType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "string",
|
|
||||||
"default": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "StringType"
|
|
||||||
},
|
|
||||||
"UnionType": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "union",
|
|
||||||
"default": "union"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"title": "UnionType"
|
|
||||||
},
|
},
|
||||||
"Model": {
|
"Model": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -7209,6 +7022,175 @@
|
||||||
"title": "PaginatedRowsResult",
|
"title": "PaginatedRowsResult",
|
||||||
"description": "A paginated list of rows from a dataset."
|
"description": "A paginated list of rows from a dataset."
|
||||||
},
|
},
|
||||||
|
"AgentTurnInputType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "agent_turn_input",
|
||||||
|
"default": "agent_turn_input"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "AgentTurnInputType"
|
||||||
|
},
|
||||||
|
"ArrayType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "array",
|
||||||
|
"default": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "ArrayType"
|
||||||
|
},
|
||||||
|
"BooleanType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "boolean",
|
||||||
|
"default": "boolean"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "BooleanType"
|
||||||
|
},
|
||||||
|
"ChatCompletionInputType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "chat_completion_input",
|
||||||
|
"default": "chat_completion_input"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "ChatCompletionInputType"
|
||||||
|
},
|
||||||
|
"CompletionInputType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "completion_input",
|
||||||
|
"default": "completion_input"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "CompletionInputType"
|
||||||
|
},
|
||||||
|
"JsonType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "json",
|
||||||
|
"default": "json"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "JsonType"
|
||||||
|
},
|
||||||
|
"NumberType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "number",
|
||||||
|
"default": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "NumberType"
|
||||||
|
},
|
||||||
|
"ObjectType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "object",
|
||||||
|
"default": "object"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "ObjectType"
|
||||||
|
},
|
||||||
|
"ParamType": {
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/StringType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/NumberType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BooleanType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ArrayType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ObjectType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/JsonType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/UnionType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ChatCompletionInputType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/CompletionInputType"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/AgentTurnInputType"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"discriminator": {
|
||||||
|
"propertyName": "type",
|
||||||
|
"mapping": {
|
||||||
|
"string": "#/components/schemas/StringType",
|
||||||
|
"number": "#/components/schemas/NumberType",
|
||||||
|
"boolean": "#/components/schemas/BooleanType",
|
||||||
|
"array": "#/components/schemas/ArrayType",
|
||||||
|
"object": "#/components/schemas/ObjectType",
|
||||||
|
"json": "#/components/schemas/JsonType",
|
||||||
|
"union": "#/components/schemas/UnionType",
|
||||||
|
"chat_completion_input": "#/components/schemas/ChatCompletionInputType",
|
||||||
|
"completion_input": "#/components/schemas/CompletionInputType",
|
||||||
|
"agent_turn_input": "#/components/schemas/AgentTurnInputType"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"ScoringFn": {
|
"ScoringFn": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -7272,6 +7254,36 @@
|
||||||
],
|
],
|
||||||
"title": "ScoringFn"
|
"title": "ScoringFn"
|
||||||
},
|
},
|
||||||
|
"StringType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "string",
|
||||||
|
"default": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "StringType"
|
||||||
|
},
|
||||||
|
"UnionType": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "union",
|
||||||
|
"default": "union"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"title": "UnionType"
|
||||||
|
},
|
||||||
"Shield": {
|
"Shield": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9242,23 +9254,39 @@
|
||||||
"RegisterDatasetRequest": {
|
"RegisterDatasetRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"dataset_id": {
|
"schema": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/Schema",
|
||||||
|
"description": "The schema format of the dataset. One of - jsonl_messages: The dataset is a JSONL file with messages in column format"
|
||||||
},
|
},
|
||||||
"dataset_schema": {
|
"uri": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The URI of the dataset. Examples: - file://mydata.jsonl - s3://mybucket/myfile.jsonl - https://mywebsite.com/myfile.jsonl - huggingface://tatsu-lab/alpaca"
|
||||||
|
},
|
||||||
|
"uri_params": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"$ref": "#/components/schemas/ParamType"
|
"oneOf": [
|
||||||
}
|
{
|
||||||
},
|
"type": "null"
|
||||||
"url": {
|
},
|
||||||
"$ref": "#/components/schemas/URL"
|
{
|
||||||
},
|
"type": "boolean"
|
||||||
"provider_dataset_id": {
|
},
|
||||||
"type": "string"
|
{
|
||||||
},
|
"type": "number"
|
||||||
"provider_id": {
|
},
|
||||||
"type": "string"
|
{
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"description": "The parameters for the URI. - E.g. If URL is a huggingface dataset, parameters could be uri_params={\"split\": \"train\"}"
|
||||||
},
|
},
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -9283,14 +9311,18 @@
|
||||||
"type": "object"
|
"type": "object"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
"description": "The metadata for the dataset. - E.g. {\"description\": \"My dataset\"}"
|
||||||
|
},
|
||||||
|
"dataset_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the dataset. If not provided, a random ID will be generated."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"dataset_id",
|
"schema",
|
||||||
"dataset_schema",
|
"uri"
|
||||||
"url"
|
|
||||||
],
|
],
|
||||||
"title": "RegisterDatasetRequest"
|
"title": "RegisterDatasetRequest"
|
||||||
},
|
},
|
||||||
|
|
337
docs/_static/llama-stack-spec.yaml
vendored
337
docs/_static/llama-stack-spec.yaml
vendored
|
@ -1682,6 +1682,10 @@ paths:
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: OK
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Dataset'
|
||||||
'400':
|
'400':
|
||||||
$ref: '#/components/responses/BadRequest400'
|
$ref: '#/components/responses/BadRequest400'
|
||||||
'429':
|
'429':
|
||||||
|
@ -1694,7 +1698,7 @@ paths:
|
||||||
$ref: '#/components/responses/DefaultError'
|
$ref: '#/components/responses/DefaultError'
|
||||||
tags:
|
tags:
|
||||||
- Datasets
|
- Datasets
|
||||||
description: ''
|
description: Register a new dataset through a file or
|
||||||
parameters: []
|
parameters: []
|
||||||
requestBody:
|
requestBody:
|
||||||
content:
|
content:
|
||||||
|
@ -4727,61 +4731,6 @@ components:
|
||||||
- scoring_functions
|
- scoring_functions
|
||||||
- metadata
|
- metadata
|
||||||
title: Benchmark
|
title: Benchmark
|
||||||
AgentTurnInputType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: agent_turn_input
|
|
||||||
default: agent_turn_input
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: AgentTurnInputType
|
|
||||||
ArrayType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: array
|
|
||||||
default: array
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: ArrayType
|
|
||||||
BooleanType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: boolean
|
|
||||||
default: boolean
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: BooleanType
|
|
||||||
ChatCompletionInputType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: chat_completion_input
|
|
||||||
default: chat_completion_input
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: ChatCompletionInputType
|
|
||||||
CompletionInputType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: completion_input
|
|
||||||
default: completion_input
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: CompletionInputType
|
|
||||||
Dataset:
|
Dataset:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -4795,12 +4744,10 @@ components:
|
||||||
type: string
|
type: string
|
||||||
const: dataset
|
const: dataset
|
||||||
default: dataset
|
default: dataset
|
||||||
dataset_schema:
|
schema:
|
||||||
type: object
|
$ref: '#/components/schemas/Schema'
|
||||||
additionalProperties:
|
uri:
|
||||||
$ref: '#/components/schemas/ParamType'
|
type: string
|
||||||
url:
|
|
||||||
$ref: '#/components/schemas/URL'
|
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -4817,90 +4764,17 @@ components:
|
||||||
- provider_resource_id
|
- provider_resource_id
|
||||||
- provider_id
|
- provider_id
|
||||||
- type
|
- type
|
||||||
- dataset_schema
|
- schema
|
||||||
- url
|
- uri
|
||||||
- metadata
|
- metadata
|
||||||
title: Dataset
|
title: Dataset
|
||||||
JsonType:
|
Schema:
|
||||||
type: object
|
type: string
|
||||||
properties:
|
enum:
|
||||||
type:
|
- jsonl_messages
|
||||||
type: string
|
title: Schema
|
||||||
const: json
|
description: >-
|
||||||
default: json
|
Schema of the dataset. Each type has a different column format.
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: JsonType
|
|
||||||
NumberType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: number
|
|
||||||
default: number
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: NumberType
|
|
||||||
ObjectType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: object
|
|
||||||
default: object
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: ObjectType
|
|
||||||
ParamType:
|
|
||||||
oneOf:
|
|
||||||
- $ref: '#/components/schemas/StringType'
|
|
||||||
- $ref: '#/components/schemas/NumberType'
|
|
||||||
- $ref: '#/components/schemas/BooleanType'
|
|
||||||
- $ref: '#/components/schemas/ArrayType'
|
|
||||||
- $ref: '#/components/schemas/ObjectType'
|
|
||||||
- $ref: '#/components/schemas/JsonType'
|
|
||||||
- $ref: '#/components/schemas/UnionType'
|
|
||||||
- $ref: '#/components/schemas/ChatCompletionInputType'
|
|
||||||
- $ref: '#/components/schemas/CompletionInputType'
|
|
||||||
- $ref: '#/components/schemas/AgentTurnInputType'
|
|
||||||
discriminator:
|
|
||||||
propertyName: type
|
|
||||||
mapping:
|
|
||||||
string: '#/components/schemas/StringType'
|
|
||||||
number: '#/components/schemas/NumberType'
|
|
||||||
boolean: '#/components/schemas/BooleanType'
|
|
||||||
array: '#/components/schemas/ArrayType'
|
|
||||||
object: '#/components/schemas/ObjectType'
|
|
||||||
json: '#/components/schemas/JsonType'
|
|
||||||
union: '#/components/schemas/UnionType'
|
|
||||||
chat_completion_input: '#/components/schemas/ChatCompletionInputType'
|
|
||||||
completion_input: '#/components/schemas/CompletionInputType'
|
|
||||||
agent_turn_input: '#/components/schemas/AgentTurnInputType'
|
|
||||||
StringType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: string
|
|
||||||
default: string
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: StringType
|
|
||||||
UnionType:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: union
|
|
||||||
default: union
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
title: UnionType
|
|
||||||
Model:
|
Model:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -4970,6 +4844,119 @@ components:
|
||||||
- total_count
|
- total_count
|
||||||
title: PaginatedRowsResult
|
title: PaginatedRowsResult
|
||||||
description: A paginated list of rows from a dataset.
|
description: A paginated list of rows from a dataset.
|
||||||
|
AgentTurnInputType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: agent_turn_input
|
||||||
|
default: agent_turn_input
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: AgentTurnInputType
|
||||||
|
ArrayType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: array
|
||||||
|
default: array
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: ArrayType
|
||||||
|
BooleanType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: boolean
|
||||||
|
default: boolean
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: BooleanType
|
||||||
|
ChatCompletionInputType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: chat_completion_input
|
||||||
|
default: chat_completion_input
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: ChatCompletionInputType
|
||||||
|
CompletionInputType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: completion_input
|
||||||
|
default: completion_input
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: CompletionInputType
|
||||||
|
JsonType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: json
|
||||||
|
default: json
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: JsonType
|
||||||
|
NumberType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: number
|
||||||
|
default: number
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: NumberType
|
||||||
|
ObjectType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: object
|
||||||
|
default: object
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: ObjectType
|
||||||
|
ParamType:
|
||||||
|
oneOf:
|
||||||
|
- $ref: '#/components/schemas/StringType'
|
||||||
|
- $ref: '#/components/schemas/NumberType'
|
||||||
|
- $ref: '#/components/schemas/BooleanType'
|
||||||
|
- $ref: '#/components/schemas/ArrayType'
|
||||||
|
- $ref: '#/components/schemas/ObjectType'
|
||||||
|
- $ref: '#/components/schemas/JsonType'
|
||||||
|
- $ref: '#/components/schemas/UnionType'
|
||||||
|
- $ref: '#/components/schemas/ChatCompletionInputType'
|
||||||
|
- $ref: '#/components/schemas/CompletionInputType'
|
||||||
|
- $ref: '#/components/schemas/AgentTurnInputType'
|
||||||
|
discriminator:
|
||||||
|
propertyName: type
|
||||||
|
mapping:
|
||||||
|
string: '#/components/schemas/StringType'
|
||||||
|
number: '#/components/schemas/NumberType'
|
||||||
|
boolean: '#/components/schemas/BooleanType'
|
||||||
|
array: '#/components/schemas/ArrayType'
|
||||||
|
object: '#/components/schemas/ObjectType'
|
||||||
|
json: '#/components/schemas/JsonType'
|
||||||
|
union: '#/components/schemas/UnionType'
|
||||||
|
chat_completion_input: '#/components/schemas/ChatCompletionInputType'
|
||||||
|
completion_input: '#/components/schemas/CompletionInputType'
|
||||||
|
agent_turn_input: '#/components/schemas/AgentTurnInputType'
|
||||||
ScoringFn:
|
ScoringFn:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -5008,6 +4995,28 @@ components:
|
||||||
- metadata
|
- metadata
|
||||||
- return_type
|
- return_type
|
||||||
title: ScoringFn
|
title: ScoringFn
|
||||||
|
StringType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: string
|
||||||
|
default: string
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: StringType
|
||||||
|
UnionType:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: union
|
||||||
|
default: union
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
title: UnionType
|
||||||
Shield:
|
Shield:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -6262,18 +6271,29 @@ components:
|
||||||
RegisterDatasetRequest:
|
RegisterDatasetRequest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
dataset_id:
|
schema:
|
||||||
|
$ref: '#/components/schemas/Schema'
|
||||||
|
description: >-
|
||||||
|
The schema format of the dataset. One of - jsonl_messages: The dataset
|
||||||
|
is a JSONL file with messages in column format
|
||||||
|
uri:
|
||||||
type: string
|
type: string
|
||||||
dataset_schema:
|
description: >-
|
||||||
|
The URI of the dataset. Examples: - file://mydata.jsonl - s3://mybucket/myfile.jsonl
|
||||||
|
- https://mywebsite.com/myfile.jsonl - huggingface://tatsu-lab/alpaca
|
||||||
|
uri_params:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
$ref: '#/components/schemas/ParamType'
|
oneOf:
|
||||||
url:
|
- type: 'null'
|
||||||
$ref: '#/components/schemas/URL'
|
- type: boolean
|
||||||
provider_dataset_id:
|
- type: number
|
||||||
type: string
|
- type: string
|
||||||
provider_id:
|
- type: array
|
||||||
type: string
|
- type: object
|
||||||
|
description: >-
|
||||||
|
The parameters for the URI. - E.g. If URL is a huggingface dataset, parameters
|
||||||
|
could be uri_params={"split": "train"}
|
||||||
metadata:
|
metadata:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -6284,11 +6304,16 @@ components:
|
||||||
- type: string
|
- type: string
|
||||||
- type: array
|
- type: array
|
||||||
- type: object
|
- type: object
|
||||||
|
description: >-
|
||||||
|
The metadata for the dataset. - E.g. {"description": "My dataset"}
|
||||||
|
dataset_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the dataset. If not provided, a random ID will be generated.
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- dataset_id
|
- schema
|
||||||
- dataset_schema
|
- uri
|
||||||
- url
|
|
||||||
title: RegisterDatasetRequest
|
title: RegisterDatasetRequest
|
||||||
RegisterModelRequest:
|
RegisterModelRequest:
|
||||||
type: object
|
type: object
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue