mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-01 14:20:01 +00:00
add schema type register
This commit is contained in:
parent
89e3f81520
commit
4f3fd22dd4
3 changed files with 114 additions and 59 deletions
|
|
@ -4228,47 +4228,53 @@
|
|||
"ContentDelta": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "text",
|
||||
"default": "text"
|
||||
},
|
||||
"text": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"text"
|
||||
]
|
||||
"$ref": "#/components/schemas/TextDelta"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "image",
|
||||
"default": "image"
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"contentEncoding": "base64"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"data"
|
||||
]
|
||||
"$ref": "#/components/schemas/ImageDelta"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/ToolCallDelta"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ImageDelta": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "image",
|
||||
"default": "image"
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"contentEncoding": "base64"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"data"
|
||||
]
|
||||
},
|
||||
"TextDelta": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "text",
|
||||
"default": "text"
|
||||
},
|
||||
"text": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"TokenLogProbs": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -7261,6 +7267,9 @@
|
|||
"shuffle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"data_format": {
|
||||
"$ref": "#/components/schemas/DatasetFormat"
|
||||
},
|
||||
"validation_dataset_id": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -7277,7 +7286,15 @@
|
|||
"required": [
|
||||
"dataset_id",
|
||||
"batch_size",
|
||||
"shuffle"
|
||||
"shuffle",
|
||||
"data_format"
|
||||
]
|
||||
},
|
||||
"DatasetFormat": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"instruct",
|
||||
"dialog"
|
||||
]
|
||||
},
|
||||
"EfficiencyConfig": {
|
||||
|
|
@ -8827,6 +8844,10 @@
|
|||
"name": "Dataset",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Dataset\" />"
|
||||
},
|
||||
{
|
||||
"name": "DatasetFormat",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DatasetFormat\" />"
|
||||
},
|
||||
{
|
||||
"name": "DatasetIO"
|
||||
},
|
||||
|
|
@ -8895,6 +8916,10 @@
|
|||
"name": "ImageContentItem",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ImageContentItem\" />"
|
||||
},
|
||||
{
|
||||
"name": "ImageDelta",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ImageDelta\" />"
|
||||
},
|
||||
{
|
||||
"name": "Inference"
|
||||
},
|
||||
|
|
@ -9243,6 +9268,10 @@
|
|||
"name": "TextContentItem",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TextContentItem\" />"
|
||||
},
|
||||
{
|
||||
"name": "TextDelta",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TextDelta\" />"
|
||||
},
|
||||
{
|
||||
"name": "TokenLogProbs",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/TokenLogProbs\" />"
|
||||
|
|
@ -9444,6 +9473,7 @@
|
|||
"DPOAlignmentConfig",
|
||||
"DataConfig",
|
||||
"Dataset",
|
||||
"DatasetFormat",
|
||||
"DeleteAgentsRequest",
|
||||
"DeleteAgentsSessionRequest",
|
||||
"EfficiencyConfig",
|
||||
|
|
@ -9458,6 +9488,7 @@
|
|||
"GraphMemoryBankParams",
|
||||
"HealthInfo",
|
||||
"ImageContentItem",
|
||||
"ImageDelta",
|
||||
"InferenceStep",
|
||||
"InsertDocumentsRequest",
|
||||
"InterleavedContent",
|
||||
|
|
@ -9536,6 +9567,7 @@
|
|||
"SyntheticDataGenerationResponse",
|
||||
"SystemMessage",
|
||||
"TextContentItem",
|
||||
"TextDelta",
|
||||
"TokenLogProbs",
|
||||
"Tool",
|
||||
"ToolCall",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue