mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
fix(api): ensure openapi spec has deprecated routes
This commit is contained in:
parent
840ad75fe9
commit
10e71386ba
3 changed files with 744 additions and 2 deletions
|
|
@ -998,6 +998,39 @@ paths:
|
||||||
description: List models using the OpenAI API.
|
description: List models using the OpenAI API.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: A Model.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Model'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Models
|
||||||
|
summary: Register model.
|
||||||
|
description: >-
|
||||||
|
Register model.
|
||||||
|
|
||||||
|
Register a model.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterModelRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/models/{model_id}:
|
/v1/models/{model_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1032,6 +1065,36 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Models
|
||||||
|
summary: Unregister model.
|
||||||
|
description: >-
|
||||||
|
Unregister model.
|
||||||
|
|
||||||
|
Unregister a model.
|
||||||
|
parameters:
|
||||||
|
- name: model_id
|
||||||
|
in: path
|
||||||
|
description: >-
|
||||||
|
The identifier of the model to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/moderations:
|
/v1/moderations:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1662,6 +1725,32 @@ paths:
|
||||||
description: List all scoring functions.
|
description: List all scoring functions.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ScoringFunctions
|
||||||
|
summary: Register a scoring function.
|
||||||
|
description: Register a scoring function.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterScoringFunctionRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/scoring-functions/{scoring_fn_id}:
|
/v1/scoring-functions/{scoring_fn_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1693,6 +1782,33 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ScoringFunctions
|
||||||
|
summary: Unregister a scoring function.
|
||||||
|
description: Unregister a scoring function.
|
||||||
|
parameters:
|
||||||
|
- name: scoring_fn_id
|
||||||
|
in: path
|
||||||
|
description: >-
|
||||||
|
The ID of the scoring function to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/scoring/score:
|
/v1/scoring/score:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1781,6 +1897,36 @@ paths:
|
||||||
description: List all shields.
|
description: List all shields.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: A Shield.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Shield'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Shields
|
||||||
|
summary: Register a shield.
|
||||||
|
description: Register a shield.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterShieldRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/shields/{identifier}:
|
/v1/shields/{identifier}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1812,6 +1958,33 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Shields
|
||||||
|
summary: Unregister a shield.
|
||||||
|
description: Unregister a shield.
|
||||||
|
parameters:
|
||||||
|
- name: identifier
|
||||||
|
in: path
|
||||||
|
description: >-
|
||||||
|
The identifier of the shield to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/tool-runtime/invoke:
|
/v1/tool-runtime/invoke:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1907,6 +2080,32 @@ paths:
|
||||||
description: List tool groups with optional provider.
|
description: List tool groups with optional provider.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ToolGroups
|
||||||
|
summary: Register a tool group.
|
||||||
|
description: Register a tool group.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterToolGroupRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/toolgroups/{toolgroup_id}:
|
/v1/toolgroups/{toolgroup_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1938,6 +2137,32 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ToolGroups
|
||||||
|
summary: Unregister a tool group.
|
||||||
|
description: Unregister a tool group.
|
||||||
|
parameters:
|
||||||
|
- name: toolgroup_id
|
||||||
|
in: path
|
||||||
|
description: The ID of the tool group to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/tools:
|
/v1/tools:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -11420,6 +11645,152 @@ components:
|
||||||
- hyperparam_search_config
|
- hyperparam_search_config
|
||||||
- logger_config
|
- logger_config
|
||||||
title: SupervisedFineTuneRequest
|
title: SupervisedFineTuneRequest
|
||||||
|
RegisterModelRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
model_id:
|
||||||
|
type: string
|
||||||
|
description: The identifier of the model to register.
|
||||||
|
provider_model_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The identifier of the model in the provider.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: The identifier of the provider.
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
description: Any additional metadata for this model.
|
||||||
|
model_type:
|
||||||
|
$ref: '#/components/schemas/ModelType'
|
||||||
|
description: The type of model to register.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- model_id
|
||||||
|
title: RegisterModelRequest
|
||||||
|
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'
|
||||||
|
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'
|
||||||
|
RegisterScoringFunctionRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
scoring_fn_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the scoring function to register.
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
description: The description of the scoring function.
|
||||||
|
return_type:
|
||||||
|
$ref: '#/components/schemas/ParamType'
|
||||||
|
description: The return type of the scoring function.
|
||||||
|
provider_scoring_fn_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the provider scoring function to use for the scoring function.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the provider to use for the scoring function.
|
||||||
|
params:
|
||||||
|
$ref: '#/components/schemas/ScoringFnParams'
|
||||||
|
description: >-
|
||||||
|
The parameters for the scoring function for benchmark eval, these can
|
||||||
|
be overridden for app eval.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- scoring_fn_id
|
||||||
|
- description
|
||||||
|
- return_type
|
||||||
|
title: RegisterScoringFunctionRequest
|
||||||
|
RegisterShieldRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
shield_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The identifier of the shield to register.
|
||||||
|
provider_shield_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The identifier of the shield in the provider.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: The identifier of the provider.
|
||||||
|
params:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
description: The parameters of the shield.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- shield_id
|
||||||
|
title: RegisterShieldRequest
|
||||||
|
RegisterToolGroupRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
toolgroup_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the tool group to register.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the provider to use for the tool group.
|
||||||
|
mcp_endpoint:
|
||||||
|
$ref: '#/components/schemas/URL'
|
||||||
|
description: >-
|
||||||
|
The MCP endpoint to use for the tool group.
|
||||||
|
args:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
description: >-
|
||||||
|
A dictionary of arguments to pass to the tool group.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- toolgroup_id
|
||||||
|
- provider_id
|
||||||
|
title: RegisterToolGroupRequest
|
||||||
DataSource:
|
DataSource:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/URIDataSource'
|
- $ref: '#/components/schemas/URIDataSource'
|
||||||
|
|
|
||||||
|
|
@ -979,8 +979,8 @@ class Generator:
|
||||||
if deprecated:
|
if deprecated:
|
||||||
filtered_operations.append(op)
|
filtered_operations.append(op)
|
||||||
elif self.options.stability_filter == "stainless":
|
elif self.options.stability_filter == "stainless":
|
||||||
# Include both stable (v1 non-deprecated) and experimental (v1alpha, v1beta) endpoints
|
# Include stable (v1), deprecated (v1 deprecated), and experimental (v1alpha, v1beta) endpoints
|
||||||
if (stability_level == "v1" and not deprecated) or stability_level in ["v1alpha", "v1beta"]:
|
if stability_level == "v1" or stability_level in ["v1alpha", "v1beta"]:
|
||||||
filtered_operations.append(op)
|
filtered_operations.append(op)
|
||||||
|
|
||||||
operations = filtered_operations
|
operations = filtered_operations
|
||||||
|
|
|
||||||
371
docs/static/stainless-llama-stack-spec.yaml
vendored
371
docs/static/stainless-llama-stack-spec.yaml
vendored
|
|
@ -998,6 +998,39 @@ paths:
|
||||||
description: List models using the OpenAI API.
|
description: List models using the OpenAI API.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: A Model.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Model'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Models
|
||||||
|
summary: Register model.
|
||||||
|
description: >-
|
||||||
|
Register model.
|
||||||
|
|
||||||
|
Register a model.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterModelRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/models/{model_id}:
|
/v1/models/{model_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1032,6 +1065,36 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Models
|
||||||
|
summary: Unregister model.
|
||||||
|
description: >-
|
||||||
|
Unregister model.
|
||||||
|
|
||||||
|
Unregister a model.
|
||||||
|
parameters:
|
||||||
|
- name: model_id
|
||||||
|
in: path
|
||||||
|
description: >-
|
||||||
|
The identifier of the model to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/moderations:
|
/v1/moderations:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1662,6 +1725,32 @@ paths:
|
||||||
description: List all scoring functions.
|
description: List all scoring functions.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ScoringFunctions
|
||||||
|
summary: Register a scoring function.
|
||||||
|
description: Register a scoring function.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterScoringFunctionRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/scoring-functions/{scoring_fn_id}:
|
/v1/scoring-functions/{scoring_fn_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1693,6 +1782,33 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ScoringFunctions
|
||||||
|
summary: Unregister a scoring function.
|
||||||
|
description: Unregister a scoring function.
|
||||||
|
parameters:
|
||||||
|
- name: scoring_fn_id
|
||||||
|
in: path
|
||||||
|
description: >-
|
||||||
|
The ID of the scoring function to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/scoring/score:
|
/v1/scoring/score:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1781,6 +1897,36 @@ paths:
|
||||||
description: List all shields.
|
description: List all shields.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: A Shield.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Shield'
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Shields
|
||||||
|
summary: Register a shield.
|
||||||
|
description: Register a shield.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterShieldRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/shields/{identifier}:
|
/v1/shields/{identifier}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1812,6 +1958,33 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- Shields
|
||||||
|
summary: Unregister a shield.
|
||||||
|
description: Unregister a shield.
|
||||||
|
parameters:
|
||||||
|
- name: identifier
|
||||||
|
in: path
|
||||||
|
description: >-
|
||||||
|
The identifier of the shield to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/tool-runtime/invoke:
|
/v1/tool-runtime/invoke:
|
||||||
post:
|
post:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1907,6 +2080,32 @@ paths:
|
||||||
description: List tool groups with optional provider.
|
description: List tool groups with optional provider.
|
||||||
parameters: []
|
parameters: []
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
post:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ToolGroups
|
||||||
|
summary: Register a tool group.
|
||||||
|
description: Register a tool group.
|
||||||
|
parameters: []
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RegisterToolGroupRequest'
|
||||||
|
required: true
|
||||||
|
deprecated: true
|
||||||
/v1/toolgroups/{toolgroup_id}:
|
/v1/toolgroups/{toolgroup_id}:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -1938,6 +2137,32 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
deprecated: false
|
deprecated: false
|
||||||
|
delete:
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
'400':
|
||||||
|
$ref: '#/components/responses/BadRequest400'
|
||||||
|
'429':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/TooManyRequests429
|
||||||
|
'500':
|
||||||
|
$ref: >-
|
||||||
|
#/components/responses/InternalServerError500
|
||||||
|
default:
|
||||||
|
$ref: '#/components/responses/DefaultError'
|
||||||
|
tags:
|
||||||
|
- ToolGroups
|
||||||
|
summary: Unregister a tool group.
|
||||||
|
description: Unregister a tool group.
|
||||||
|
parameters:
|
||||||
|
- name: toolgroup_id
|
||||||
|
in: path
|
||||||
|
description: The ID of the tool group to unregister.
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
deprecated: true
|
||||||
/v1/tools:
|
/v1/tools:
|
||||||
get:
|
get:
|
||||||
responses:
|
responses:
|
||||||
|
|
@ -11420,6 +11645,152 @@ components:
|
||||||
- hyperparam_search_config
|
- hyperparam_search_config
|
||||||
- logger_config
|
- logger_config
|
||||||
title: SupervisedFineTuneRequest
|
title: SupervisedFineTuneRequest
|
||||||
|
RegisterModelRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
model_id:
|
||||||
|
type: string
|
||||||
|
description: The identifier of the model to register.
|
||||||
|
provider_model_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The identifier of the model in the provider.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: The identifier of the provider.
|
||||||
|
metadata:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
description: Any additional metadata for this model.
|
||||||
|
model_type:
|
||||||
|
$ref: '#/components/schemas/ModelType'
|
||||||
|
description: The type of model to register.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- model_id
|
||||||
|
title: RegisterModelRequest
|
||||||
|
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'
|
||||||
|
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'
|
||||||
|
RegisterScoringFunctionRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
scoring_fn_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the scoring function to register.
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
description: The description of the scoring function.
|
||||||
|
return_type:
|
||||||
|
$ref: '#/components/schemas/ParamType'
|
||||||
|
description: The return type of the scoring function.
|
||||||
|
provider_scoring_fn_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the provider scoring function to use for the scoring function.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the provider to use for the scoring function.
|
||||||
|
params:
|
||||||
|
$ref: '#/components/schemas/ScoringFnParams'
|
||||||
|
description: >-
|
||||||
|
The parameters for the scoring function for benchmark eval, these can
|
||||||
|
be overridden for app eval.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- scoring_fn_id
|
||||||
|
- description
|
||||||
|
- return_type
|
||||||
|
title: RegisterScoringFunctionRequest
|
||||||
|
RegisterShieldRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
shield_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The identifier of the shield to register.
|
||||||
|
provider_shield_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The identifier of the shield in the provider.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: The identifier of the provider.
|
||||||
|
params:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
description: The parameters of the shield.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- shield_id
|
||||||
|
title: RegisterShieldRequest
|
||||||
|
RegisterToolGroupRequest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
toolgroup_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the tool group to register.
|
||||||
|
provider_id:
|
||||||
|
type: string
|
||||||
|
description: >-
|
||||||
|
The ID of the provider to use for the tool group.
|
||||||
|
mcp_endpoint:
|
||||||
|
$ref: '#/components/schemas/URL'
|
||||||
|
description: >-
|
||||||
|
The MCP endpoint to use for the tool group.
|
||||||
|
args:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
oneOf:
|
||||||
|
- type: 'null'
|
||||||
|
- type: boolean
|
||||||
|
- type: number
|
||||||
|
- type: string
|
||||||
|
- type: array
|
||||||
|
- type: object
|
||||||
|
description: >-
|
||||||
|
A dictionary of arguments to pass to the tool group.
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- toolgroup_id
|
||||||
|
- provider_id
|
||||||
|
title: RegisterToolGroupRequest
|
||||||
DataSource:
|
DataSource:
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/URIDataSource'
|
- $ref: '#/components/schemas/URIDataSource'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue