forked from phoenix-oss/llama-stack-mirror
Fix openapi generator and regenerator OpenAPI types
This commit is contained in:
parent
343458479d
commit
47e7c2dc15
3 changed files with 1137 additions and 264 deletions
|
@ -358,6 +358,7 @@ def unwrap_union_types(typ: object) -> Tuple[object, ...]:
|
||||||
:returns: The inner types `T1`, `T2`, etc.
|
:returns: The inner types `T1`, `T2`, etc.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
typ = unwrap_annotated_type(typ)
|
||||||
return _unwrap_union_types(typ)
|
return _unwrap_union_types(typ)
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -720,10 +720,26 @@ components:
|
||||||
- epsilon
|
- epsilon
|
||||||
- gamma
|
- gamma
|
||||||
type: object
|
type: object
|
||||||
DatasetDefWithProvider:
|
Dataset:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
dataset_schema:
|
identifier:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
type: object
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
|
type: string
|
||||||
|
schema:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
oneOf:
|
oneOf:
|
||||||
- additionalProperties: false
|
- additionalProperties: false
|
||||||
|
@ -817,20 +833,6 @@ components:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
identifier:
|
|
||||||
type: string
|
|
||||||
metadata:
|
|
||||||
additionalProperties:
|
|
||||||
oneOf:
|
|
||||||
- type: 'null'
|
|
||||||
- type: boolean
|
|
||||||
- type: number
|
|
||||||
- type: string
|
|
||||||
- type: array
|
|
||||||
- type: object
|
|
||||||
type: object
|
|
||||||
provider_id:
|
|
||||||
type: string
|
|
||||||
type:
|
type:
|
||||||
const: dataset
|
const: dataset
|
||||||
default: dataset
|
default: dataset
|
||||||
|
@ -839,11 +841,12 @@ components:
|
||||||
$ref: '#/components/schemas/URL'
|
$ref: '#/components/schemas/URL'
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
- dataset_schema
|
- provider_resource_id
|
||||||
|
- provider_id
|
||||||
|
- type
|
||||||
|
- schema
|
||||||
- url
|
- url
|
||||||
- metadata
|
- metadata
|
||||||
- type
|
|
||||||
- provider_id
|
|
||||||
type: object
|
type: object
|
||||||
DeleteAgentsRequest:
|
DeleteAgentsRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -918,7 +921,7 @@ components:
|
||||||
required:
|
required:
|
||||||
- embeddings
|
- embeddings
|
||||||
type: object
|
type: object
|
||||||
EvalTaskDefWithProvider:
|
EvalTask:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
dataset_id:
|
dataset_id:
|
||||||
|
@ -937,6 +940,8 @@ components:
|
||||||
type: object
|
type: object
|
||||||
provider_id:
|
provider_id:
|
||||||
type: string
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
|
type: string
|
||||||
scoring_functions:
|
scoring_functions:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
@ -947,11 +952,12 @@ components:
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
|
- provider_resource_id
|
||||||
|
- provider_id
|
||||||
|
- type
|
||||||
- dataset_id
|
- dataset_id
|
||||||
- scoring_functions
|
- scoring_functions
|
||||||
- metadata
|
- metadata
|
||||||
- type
|
|
||||||
- provider_id
|
|
||||||
type: object
|
type: object
|
||||||
EvaluateResponse:
|
EvaluateResponse:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -1053,22 +1059,39 @@ components:
|
||||||
type: string
|
type: string
|
||||||
type: array
|
type: array
|
||||||
type: object
|
type: object
|
||||||
GraphMemoryBankDef:
|
GraphMemoryBank:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
identifier:
|
identifier:
|
||||||
type: string
|
type: string
|
||||||
|
memory_bank_type:
|
||||||
|
const: graph
|
||||||
|
default: graph
|
||||||
|
type: string
|
||||||
provider_id:
|
provider_id:
|
||||||
default: ''
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
|
const: memory_bank
|
||||||
|
default: memory_bank
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- identifier
|
||||||
|
- provider_resource_id
|
||||||
|
- provider_id
|
||||||
|
- type
|
||||||
|
- memory_bank_type
|
||||||
|
type: object
|
||||||
|
GraphMemoryBankParams:
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
memory_bank_type:
|
||||||
const: graph
|
const: graph
|
||||||
default: graph
|
default: graph
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- identifier
|
- memory_bank_type
|
||||||
- provider_id
|
|
||||||
- type
|
|
||||||
type: object
|
type: object
|
||||||
HealthInfo:
|
HealthInfo:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -1159,39 +1182,73 @@ components:
|
||||||
- completed
|
- completed
|
||||||
- in_progress
|
- in_progress
|
||||||
type: string
|
type: string
|
||||||
KeyValueMemoryBankDef:
|
KeyValueMemoryBank:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
identifier:
|
identifier:
|
||||||
type: string
|
type: string
|
||||||
|
memory_bank_type:
|
||||||
|
const: keyvalue
|
||||||
|
default: keyvalue
|
||||||
|
type: string
|
||||||
provider_id:
|
provider_id:
|
||||||
default: ''
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
|
const: memory_bank
|
||||||
|
default: memory_bank
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- identifier
|
||||||
|
- provider_resource_id
|
||||||
|
- provider_id
|
||||||
|
- type
|
||||||
|
- memory_bank_type
|
||||||
|
type: object
|
||||||
|
KeyValueMemoryBankParams:
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
memory_bank_type:
|
||||||
const: keyvalue
|
const: keyvalue
|
||||||
default: keyvalue
|
default: keyvalue
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- identifier
|
- memory_bank_type
|
||||||
- provider_id
|
|
||||||
- type
|
|
||||||
type: object
|
type: object
|
||||||
KeywordMemoryBankDef:
|
KeywordMemoryBank:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
identifier:
|
identifier:
|
||||||
type: string
|
type: string
|
||||||
|
memory_bank_type:
|
||||||
|
const: keyword
|
||||||
|
default: keyword
|
||||||
|
type: string
|
||||||
provider_id:
|
provider_id:
|
||||||
default: ''
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
|
const: memory_bank
|
||||||
|
default: memory_bank
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- identifier
|
||||||
|
- provider_resource_id
|
||||||
|
- provider_id
|
||||||
|
- type
|
||||||
|
- memory_bank_type
|
||||||
|
type: object
|
||||||
|
KeywordMemoryBankParams:
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
memory_bank_type:
|
||||||
const: keyword
|
const: keyword
|
||||||
default: keyword
|
default: keyword
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- identifier
|
- memory_bank_type
|
||||||
- provider_id
|
|
||||||
- type
|
|
||||||
type: object
|
type: object
|
||||||
LLMAsJudgeScoringFnParams:
|
LLMAsJudgeScoringFnParams:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -1851,30 +1908,171 @@ components:
|
||||||
RegisterDatasetRequest:
|
RegisterDatasetRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
dataset_def:
|
dataset_id:
|
||||||
$ref: '#/components/schemas/DatasetDefWithProvider'
|
type: string
|
||||||
|
metadata:
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
type: object
|
||||||
|
provider_dataset_id:
|
||||||
|
type: string
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
schema:
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: string
|
||||||
|
default: string
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- dataset_def
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: number
|
||||||
|
default: number
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: boolean
|
||||||
|
default: boolean
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: array
|
||||||
|
default: array
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: object
|
||||||
|
default: object
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: json
|
||||||
|
default: json
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: union
|
||||||
|
default: union
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: chat_completion_input
|
||||||
|
default: chat_completion_input
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: completion_input
|
||||||
|
default: completion_input
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: agent_turn_input
|
||||||
|
default: agent_turn_input
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
url:
|
||||||
|
$ref: '#/components/schemas/URL'
|
||||||
|
required:
|
||||||
|
- dataset_id
|
||||||
|
- schema
|
||||||
|
- url
|
||||||
type: object
|
type: object
|
||||||
RegisterEvalTaskRequest:
|
RegisterEvalTaskRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
eval_task_def:
|
dataset_id:
|
||||||
$ref: '#/components/schemas/EvalTaskDefWithProvider'
|
type: string
|
||||||
|
eval_task_id:
|
||||||
|
type: string
|
||||||
|
metadata:
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
type: object
|
||||||
|
provider_eval_task_id:
|
||||||
|
type: string
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
scoring_functions:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
required:
|
required:
|
||||||
- eval_task_def
|
- eval_task_id
|
||||||
|
- dataset_id
|
||||||
|
- scoring_functions
|
||||||
type: object
|
type: object
|
||||||
RegisterMemoryBankRequest:
|
RegisterMemoryBankRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
memory_bank:
|
memory_bank_id:
|
||||||
|
type: string
|
||||||
|
params:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/VectorMemoryBankDef'
|
- $ref: '#/components/schemas/VectorMemoryBankParams'
|
||||||
- $ref: '#/components/schemas/KeyValueMemoryBankDef'
|
- $ref: '#/components/schemas/KeyValueMemoryBankParams'
|
||||||
- $ref: '#/components/schemas/KeywordMemoryBankDef'
|
- $ref: '#/components/schemas/KeywordMemoryBankParams'
|
||||||
- $ref: '#/components/schemas/GraphMemoryBankDef'
|
- $ref: '#/components/schemas/GraphMemoryBankParams'
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
provider_memorybank_id:
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- memory_bank
|
- memory_bank_id
|
||||||
|
- params
|
||||||
type: object
|
type: object
|
||||||
RegisterModelRequest:
|
RegisterModelRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -1901,10 +2099,114 @@ components:
|
||||||
RegisterScoringFunctionRequest:
|
RegisterScoringFunctionRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
function_def:
|
description:
|
||||||
$ref: '#/components/schemas/ScoringFnDefWithProvider'
|
type: string
|
||||||
|
params:
|
||||||
|
oneOf:
|
||||||
|
- $ref: '#/components/schemas/LLMAsJudgeScoringFnParams'
|
||||||
|
- $ref: '#/components/schemas/RegexParserScoringFnParams'
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
provider_scoring_fn_id:
|
||||||
|
type: string
|
||||||
|
return_type:
|
||||||
|
oneOf:
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: string
|
||||||
|
default: string
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- function_def
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: number
|
||||||
|
default: number
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: boolean
|
||||||
|
default: boolean
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: array
|
||||||
|
default: array
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: object
|
||||||
|
default: object
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: json
|
||||||
|
default: json
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: union
|
||||||
|
default: union
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: chat_completion_input
|
||||||
|
default: chat_completion_input
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: completion_input
|
||||||
|
default: completion_input
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
- additionalProperties: false
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
const: agent_turn_input
|
||||||
|
default: agent_turn_input
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
type: object
|
||||||
|
scoring_fn_id:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- scoring_fn_id
|
||||||
|
- description
|
||||||
|
- return_type
|
||||||
type: object
|
type: object
|
||||||
RegisterShieldRequest:
|
RegisterShieldRequest:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -2162,7 +2464,7 @@ components:
|
||||||
required:
|
required:
|
||||||
- results
|
- results
|
||||||
type: object
|
type: object
|
||||||
ScoringFnDefWithProvider:
|
ScoringFn:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
description:
|
description:
|
||||||
|
@ -2185,6 +2487,8 @@ components:
|
||||||
- $ref: '#/components/schemas/RegexParserScoringFnParams'
|
- $ref: '#/components/schemas/RegexParserScoringFnParams'
|
||||||
provider_id:
|
provider_id:
|
||||||
type: string
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
|
type: string
|
||||||
return_type:
|
return_type:
|
||||||
oneOf:
|
oneOf:
|
||||||
- additionalProperties: false
|
- additionalProperties: false
|
||||||
|
@ -2278,15 +2582,16 @@ components:
|
||||||
- type
|
- type
|
||||||
type: object
|
type: object
|
||||||
type:
|
type:
|
||||||
const: scoring_fn
|
const: scoring_function
|
||||||
default: scoring_fn
|
default: scoring_function
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
|
- provider_resource_id
|
||||||
|
- provider_id
|
||||||
|
- type
|
||||||
- metadata
|
- metadata
|
||||||
- return_type
|
- return_type
|
||||||
- type
|
|
||||||
- provider_id
|
|
||||||
type: object
|
type: object
|
||||||
ScoringResult:
|
ScoringResult:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
@ -2352,10 +2657,10 @@ components:
|
||||||
properties:
|
properties:
|
||||||
memory_bank:
|
memory_bank:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/VectorMemoryBankDef'
|
- $ref: '#/components/schemas/VectorMemoryBank'
|
||||||
- $ref: '#/components/schemas/KeyValueMemoryBankDef'
|
- $ref: '#/components/schemas/KeyValueMemoryBank'
|
||||||
- $ref: '#/components/schemas/KeywordMemoryBankDef'
|
- $ref: '#/components/schemas/KeywordMemoryBank'
|
||||||
- $ref: '#/components/schemas/GraphMemoryBankDef'
|
- $ref: '#/components/schemas/GraphMemoryBank'
|
||||||
session_id:
|
session_id:
|
||||||
type: string
|
type: string
|
||||||
session_name:
|
session_name:
|
||||||
|
@ -3010,7 +3315,7 @@ components:
|
||||||
- role
|
- role
|
||||||
- content
|
- content
|
||||||
type: object
|
type: object
|
||||||
VectorMemoryBankDef:
|
VectorMemoryBank:
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
chunk_size_in_tokens:
|
chunk_size_in_tokens:
|
||||||
|
@ -3019,19 +3324,44 @@ components:
|
||||||
type: string
|
type: string
|
||||||
identifier:
|
identifier:
|
||||||
type: string
|
type: string
|
||||||
overlap_size_in_tokens:
|
memory_bank_type:
|
||||||
type: integer
|
|
||||||
provider_id:
|
|
||||||
default: ''
|
|
||||||
type: string
|
|
||||||
type:
|
|
||||||
const: vector
|
const: vector
|
||||||
default: vector
|
default: vector
|
||||||
type: string
|
type: string
|
||||||
|
overlap_size_in_tokens:
|
||||||
|
type: integer
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
provider_resource_id:
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
const: memory_bank
|
||||||
|
default: memory_bank
|
||||||
|
type: string
|
||||||
required:
|
required:
|
||||||
- identifier
|
- identifier
|
||||||
|
- provider_resource_id
|
||||||
- provider_id
|
- provider_id
|
||||||
- type
|
- type
|
||||||
|
- memory_bank_type
|
||||||
|
- embedding_model
|
||||||
|
- chunk_size_in_tokens
|
||||||
|
type: object
|
||||||
|
VectorMemoryBankParams:
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
chunk_size_in_tokens:
|
||||||
|
type: integer
|
||||||
|
embedding_model:
|
||||||
|
type: string
|
||||||
|
memory_bank_type:
|
||||||
|
const: vector
|
||||||
|
default: vector
|
||||||
|
type: string
|
||||||
|
overlap_size_in_tokens:
|
||||||
|
type: integer
|
||||||
|
required:
|
||||||
|
- memory_bank_type
|
||||||
- embedding_model
|
- embedding_model
|
||||||
- chunk_size_in_tokens
|
- chunk_size_in_tokens
|
||||||
type: object
|
type: object
|
||||||
|
@ -3068,7 +3398,7 @@ info:
|
||||||
description: "This is the specification of the llama stack that provides\n \
|
description: "This is the specification of the llama stack that provides\n \
|
||||||
\ a set of endpoints and their corresponding interfaces that are tailored\
|
\ a set of endpoints and their corresponding interfaces that are tailored\
|
||||||
\ to\n best leverage Llama Models. The specification is still in\
|
\ to\n best leverage Llama Models. The specification is still in\
|
||||||
\ draft and subject to change.\n Generated at 2024-11-11 18:11:42.086884"
|
\ draft and subject to change.\n Generated at 2024-11-11 18:44:30.967321"
|
||||||
title: '[DRAFT] Llama Stack Specification'
|
title: '[DRAFT] Llama Stack Specification'
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
|
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
|
||||||
|
@ -3395,7 +3725,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: dataset_identifier
|
name: dataset_id
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
@ -3412,7 +3742,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/DatasetDefWithProvider'
|
- $ref: '#/components/schemas/Dataset'
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
|
@ -3432,7 +3762,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/jsonl:
|
application/jsonl:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/DatasetDefWithProvider'
|
$ref: '#/components/schemas/Dataset'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- Datasets
|
- Datasets
|
||||||
|
@ -3609,7 +3939,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/EvalTaskDefWithProvider'
|
- $ref: '#/components/schemas/EvalTask'
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
|
@ -3629,7 +3959,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/jsonl:
|
application/jsonl:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/EvalTaskDefWithProvider'
|
$ref: '#/components/schemas/EvalTask'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- EvalTasks
|
- EvalTasks
|
||||||
|
@ -3802,7 +4132,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: identifier
|
name: memory_bank_id
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
@ -3820,10 +4150,10 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- oneOf:
|
- oneOf:
|
||||||
- $ref: '#/components/schemas/VectorMemoryBankDef'
|
- $ref: '#/components/schemas/VectorMemoryBank'
|
||||||
- $ref: '#/components/schemas/KeyValueMemoryBankDef'
|
- $ref: '#/components/schemas/KeyValueMemoryBank'
|
||||||
- $ref: '#/components/schemas/KeywordMemoryBankDef'
|
- $ref: '#/components/schemas/KeywordMemoryBank'
|
||||||
- $ref: '#/components/schemas/GraphMemoryBankDef'
|
- $ref: '#/components/schemas/GraphMemoryBank'
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
|
@ -3844,10 +4174,10 @@ paths:
|
||||||
application/jsonl:
|
application/jsonl:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/VectorMemoryBankDef'
|
- $ref: '#/components/schemas/VectorMemoryBank'
|
||||||
- $ref: '#/components/schemas/KeyValueMemoryBankDef'
|
- $ref: '#/components/schemas/KeyValueMemoryBank'
|
||||||
- $ref: '#/components/schemas/KeywordMemoryBankDef'
|
- $ref: '#/components/schemas/KeywordMemoryBank'
|
||||||
- $ref: '#/components/schemas/GraphMemoryBankDef'
|
- $ref: '#/components/schemas/GraphMemoryBank'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- MemoryBanks
|
- MemoryBanks
|
||||||
|
@ -3867,9 +4197,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/RegisterMemoryBankRequest'
|
$ref: '#/components/schemas/RegisterMemoryBankRequest'
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses: {}
|
||||||
'200':
|
|
||||||
description: OK
|
|
||||||
tags:
|
tags:
|
||||||
- MemoryBanks
|
- MemoryBanks
|
||||||
/models/get:
|
/models/get:
|
||||||
|
@ -4227,7 +4555,7 @@ paths:
|
||||||
get:
|
get:
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: name
|
name: scoring_fn_id
|
||||||
required: true
|
required: true
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
@ -4244,7 +4572,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/ScoringFnDefWithProvider'
|
- $ref: '#/components/schemas/ScoringFn'
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
|
@ -4264,7 +4592,7 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/jsonl:
|
application/jsonl:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ScoringFnDefWithProvider'
|
$ref: '#/components/schemas/ScoringFn'
|
||||||
description: OK
|
description: OK
|
||||||
tags:
|
tags:
|
||||||
- ScoringFunctions
|
- ScoringFunctions
|
||||||
|
@ -4434,24 +4762,24 @@ security:
|
||||||
servers:
|
servers:
|
||||||
- url: http://any-hosted-llama-stack.com
|
- url: http://any-hosted-llama-stack.com
|
||||||
tags:
|
tags:
|
||||||
- name: Memory
|
|
||||||
- name: DatasetIO
|
|
||||||
- name: Datasets
|
- name: Datasets
|
||||||
- name: Agents
|
|
||||||
- name: Models
|
|
||||||
- name: Telemetry
|
- name: Telemetry
|
||||||
- name: Inference
|
|
||||||
- name: Eval
|
|
||||||
- name: MemoryBanks
|
|
||||||
- name: Scoring
|
|
||||||
- name: EvalTasks
|
|
||||||
- name: Inspect
|
|
||||||
- name: PostTraining
|
- name: PostTraining
|
||||||
- name: ScoringFunctions
|
- name: MemoryBanks
|
||||||
|
- name: Eval
|
||||||
|
- name: Memory
|
||||||
|
- name: EvalTasks
|
||||||
|
- name: Models
|
||||||
|
- name: Scoring
|
||||||
|
- name: Inference
|
||||||
- name: Shields
|
- name: Shields
|
||||||
- name: BatchInference
|
- name: DatasetIO
|
||||||
- name: SyntheticDataGeneration
|
|
||||||
- name: Safety
|
- name: Safety
|
||||||
|
- name: Agents
|
||||||
|
- name: SyntheticDataGeneration
|
||||||
|
- name: ScoringFunctions
|
||||||
|
- name: BatchInference
|
||||||
|
- name: Inspect
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
|
- description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
|
||||||
name: BuiltinTool
|
name: BuiltinTool
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"
|
||||||
|
@ -4683,40 +5011,37 @@ tags:
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/GetAgentsSessionRequest"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/GetAgentsSessionRequest"
|
||||||
/>
|
/>
|
||||||
name: GetAgentsSessionRequest
|
name: GetAgentsSessionRequest
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/GraphMemoryBankDef"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/GraphMemoryBank"
|
||||||
/>
|
/>
|
||||||
name: GraphMemoryBankDef
|
name: GraphMemoryBank
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/KeyValueMemoryBankDef"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/KeyValueMemoryBank"
|
||||||
/>
|
/>
|
||||||
name: KeyValueMemoryBankDef
|
name: KeyValueMemoryBank
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/KeywordMemoryBankDef"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/KeywordMemoryBank"
|
||||||
/>
|
/>
|
||||||
name: KeywordMemoryBankDef
|
name: KeywordMemoryBank
|
||||||
- description: 'A single session of an interaction with an Agentic System.
|
- description: 'A single session of an interaction with an Agentic System.
|
||||||
|
|
||||||
|
|
||||||
<SchemaDefinition schemaRef="#/components/schemas/Session" />'
|
<SchemaDefinition schemaRef="#/components/schemas/Session" />'
|
||||||
name: Session
|
name: Session
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/VectorMemoryBankDef"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/VectorMemoryBank"
|
||||||
/>
|
/>
|
||||||
name: VectorMemoryBankDef
|
name: VectorMemoryBank
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/AgentStepResponse"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/AgentStepResponse"
|
||||||
/>
|
/>
|
||||||
name: AgentStepResponse
|
name: AgentStepResponse
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/DatasetDefWithProvider"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/Dataset" />
|
||||||
/>
|
name: Dataset
|
||||||
name: DatasetDefWithProvider
|
- description: <SchemaDefinition schemaRef="#/components/schemas/EvalTask" />
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/EvalTaskDefWithProvider"
|
name: EvalTask
|
||||||
/>
|
|
||||||
name: EvalTaskDefWithProvider
|
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/Model" />
|
- description: <SchemaDefinition schemaRef="#/components/schemas/Model" />
|
||||||
name: Model
|
name: Model
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/PaginatedRowsResult"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/PaginatedRowsResult"
|
||||||
/>
|
/>
|
||||||
name: PaginatedRowsResult
|
name: PaginatedRowsResult
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/ScoringFnDefWithProvider"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/ScoringFn" />
|
||||||
/>
|
name: ScoringFn
|
||||||
name: ScoringFnDefWithProvider
|
|
||||||
- description: 'A safety shield resource that can be used to check content
|
- description: 'A safety shield resource that can be used to check content
|
||||||
|
|
||||||
|
|
||||||
|
@ -4816,6 +5141,18 @@ tags:
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/RegisterEvalTaskRequest"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/RegisterEvalTaskRequest"
|
||||||
/>
|
/>
|
||||||
name: RegisterEvalTaskRequest
|
name: RegisterEvalTaskRequest
|
||||||
|
- description: <SchemaDefinition schemaRef="#/components/schemas/GraphMemoryBankParams"
|
||||||
|
/>
|
||||||
|
name: GraphMemoryBankParams
|
||||||
|
- description: <SchemaDefinition schemaRef="#/components/schemas/KeyValueMemoryBankParams"
|
||||||
|
/>
|
||||||
|
name: KeyValueMemoryBankParams
|
||||||
|
- description: <SchemaDefinition schemaRef="#/components/schemas/KeywordMemoryBankParams"
|
||||||
|
/>
|
||||||
|
name: KeywordMemoryBankParams
|
||||||
|
- description: <SchemaDefinition schemaRef="#/components/schemas/VectorMemoryBankParams"
|
||||||
|
/>
|
||||||
|
name: VectorMemoryBankParams
|
||||||
- description: <SchemaDefinition schemaRef="#/components/schemas/RegisterMemoryBankRequest"
|
- description: <SchemaDefinition schemaRef="#/components/schemas/RegisterMemoryBankRequest"
|
||||||
/>
|
/>
|
||||||
name: RegisterMemoryBankRequest
|
name: RegisterMemoryBankRequest
|
||||||
|
@ -4932,19 +5269,20 @@ x-tagGroups:
|
||||||
- CreateAgentSessionRequest
|
- CreateAgentSessionRequest
|
||||||
- CreateAgentTurnRequest
|
- CreateAgentTurnRequest
|
||||||
- DPOAlignmentConfig
|
- DPOAlignmentConfig
|
||||||
- DatasetDefWithProvider
|
- Dataset
|
||||||
- DeleteAgentsRequest
|
- DeleteAgentsRequest
|
||||||
- DeleteAgentsSessionRequest
|
- DeleteAgentsSessionRequest
|
||||||
- DoraFinetuningConfig
|
- DoraFinetuningConfig
|
||||||
- EmbeddingsRequest
|
- EmbeddingsRequest
|
||||||
- EmbeddingsResponse
|
- EmbeddingsResponse
|
||||||
- EvalTaskDefWithProvider
|
- EvalTask
|
||||||
- EvaluateResponse
|
- EvaluateResponse
|
||||||
- EvaluateRowsRequest
|
- EvaluateRowsRequest
|
||||||
- FinetuningAlgorithm
|
- FinetuningAlgorithm
|
||||||
- FunctionCallToolDefinition
|
- FunctionCallToolDefinition
|
||||||
- GetAgentsSessionRequest
|
- GetAgentsSessionRequest
|
||||||
- GraphMemoryBankDef
|
- GraphMemoryBank
|
||||||
|
- GraphMemoryBankParams
|
||||||
- HealthInfo
|
- HealthInfo
|
||||||
- ImageMedia
|
- ImageMedia
|
||||||
- InferenceStep
|
- InferenceStep
|
||||||
|
@ -4952,8 +5290,10 @@ x-tagGroups:
|
||||||
- Job
|
- Job
|
||||||
- JobCancelRequest
|
- JobCancelRequest
|
||||||
- JobStatus
|
- JobStatus
|
||||||
- KeyValueMemoryBankDef
|
- KeyValueMemoryBank
|
||||||
- KeywordMemoryBankDef
|
- KeyValueMemoryBankParams
|
||||||
|
- KeywordMemoryBank
|
||||||
|
- KeywordMemoryBankParams
|
||||||
- LLMAsJudgeScoringFnParams
|
- LLMAsJudgeScoringFnParams
|
||||||
- LogEventRequest
|
- LogEventRequest
|
||||||
- LogSeverity
|
- LogSeverity
|
||||||
|
@ -4998,7 +5338,7 @@ x-tagGroups:
|
||||||
- ScoreBatchResponse
|
- ScoreBatchResponse
|
||||||
- ScoreRequest
|
- ScoreRequest
|
||||||
- ScoreResponse
|
- ScoreResponse
|
||||||
- ScoringFnDefWithProvider
|
- ScoringFn
|
||||||
- ScoringResult
|
- ScoringResult
|
||||||
- SearchToolDefinition
|
- SearchToolDefinition
|
||||||
- Session
|
- Session
|
||||||
|
@ -5031,6 +5371,7 @@ x-tagGroups:
|
||||||
- URL
|
- URL
|
||||||
- UnstructuredLogEvent
|
- UnstructuredLogEvent
|
||||||
- UserMessage
|
- UserMessage
|
||||||
- VectorMemoryBankDef
|
- VectorMemoryBank
|
||||||
|
- VectorMemoryBankParams
|
||||||
- ViolationLevel
|
- ViolationLevel
|
||||||
- WolframAlphaToolDefinition
|
- WolframAlphaToolDefinition
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue