mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-02 12:30:00 +00:00
add schema type register
This commit is contained in:
parent
89e3f81520
commit
4f3fd22dd4
3 changed files with 114 additions and 59 deletions
|
|
@ -570,31 +570,8 @@ components:
|
|||
type: object
|
||||
ContentDelta:
|
||||
oneOf:
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
type:
|
||||
const: text
|
||||
default: text
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- text
|
||||
type: object
|
||||
- additionalProperties: false
|
||||
properties:
|
||||
data:
|
||||
contentEncoding: base64
|
||||
type: string
|
||||
type:
|
||||
const: image
|
||||
default: image
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- data
|
||||
type: object
|
||||
- $ref: '#/components/schemas/TextDelta'
|
||||
- $ref: '#/components/schemas/ImageDelta'
|
||||
- $ref: '#/components/schemas/ToolCallDelta'
|
||||
CreateAgentRequest:
|
||||
additionalProperties: false
|
||||
|
|
@ -680,6 +657,8 @@ components:
|
|||
properties:
|
||||
batch_size:
|
||||
type: integer
|
||||
data_format:
|
||||
$ref: '#/components/schemas/DatasetFormat'
|
||||
dataset_id:
|
||||
type: string
|
||||
packed:
|
||||
|
|
@ -696,6 +675,7 @@ components:
|
|||
- dataset_id
|
||||
- batch_size
|
||||
- shuffle
|
||||
- data_format
|
||||
type: object
|
||||
Dataset:
|
||||
additionalProperties: false
|
||||
|
|
@ -735,6 +715,11 @@ components:
|
|||
- url
|
||||
- metadata
|
||||
type: object
|
||||
DatasetFormat:
|
||||
enum:
|
||||
- instruct
|
||||
- dialog
|
||||
type: string
|
||||
DeleteAgentsRequest:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
|
|
@ -960,6 +945,20 @@ components:
|
|||
required:
|
||||
- type
|
||||
type: object
|
||||
ImageDelta:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
data:
|
||||
contentEncoding: base64
|
||||
type: string
|
||||
type:
|
||||
const: image
|
||||
default: image
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- data
|
||||
type: object
|
||||
InferenceStep:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
|
|
@ -2588,6 +2587,19 @@ components:
|
|||
- type
|
||||
- text
|
||||
type: object
|
||||
TextDelta:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
type:
|
||||
const: text
|
||||
default: text
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- text
|
||||
type: object
|
||||
TokenLogProbs:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
|
|
@ -5548,6 +5560,8 @@ tags:
|
|||
name: DataConfig
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/Dataset" />
|
||||
name: Dataset
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/DatasetFormat" />
|
||||
name: DatasetFormat
|
||||
- name: DatasetIO
|
||||
- name: Datasets
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteAgentsRequest"
|
||||
|
|
@ -5592,6 +5606,8 @@ tags:
|
|||
- description: <SchemaDefinition schemaRef="#/components/schemas/ImageContentItem"
|
||||
/>
|
||||
name: ImageContentItem
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ImageDelta" />
|
||||
name: ImageDelta
|
||||
- name: Inference
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/InferenceStep" />
|
||||
name: InferenceStep
|
||||
|
|
@ -5824,6 +5840,8 @@ tags:
|
|||
- description: <SchemaDefinition schemaRef="#/components/schemas/TextContentItem"
|
||||
/>
|
||||
name: TextContentItem
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/TextDelta" />
|
||||
name: TextDelta
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/TokenLogProbs" />
|
||||
name: TokenLogProbs
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/Tool" />
|
||||
|
|
@ -5978,6 +5996,7 @@ x-tagGroups:
|
|||
- DPOAlignmentConfig
|
||||
- DataConfig
|
||||
- Dataset
|
||||
- DatasetFormat
|
||||
- DeleteAgentsRequest
|
||||
- DeleteAgentsSessionRequest
|
||||
- EfficiencyConfig
|
||||
|
|
@ -5992,6 +6011,7 @@ x-tagGroups:
|
|||
- GraphMemoryBankParams
|
||||
- HealthInfo
|
||||
- ImageContentItem
|
||||
- ImageDelta
|
||||
- InferenceStep
|
||||
- InsertDocumentsRequest
|
||||
- InterleavedContent
|
||||
|
|
@ -6070,6 +6090,7 @@ x-tagGroups:
|
|||
- SyntheticDataGenerationResponse
|
||||
- SystemMessage
|
||||
- TextContentItem
|
||||
- TextDelta
|
||||
- TokenLogProbs
|
||||
- Tool
|
||||
- ToolCall
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue