A few more fixes to the OpenAPI generator

This commit is contained in:
Ashwin Bharambe 2024-09-04 10:29:20 -07:00
parent 0167953d2d
commit bfee50aa83
3 changed files with 319 additions and 69 deletions

View file

@ -21,7 +21,7 @@
"info": { "info": {
"title": "[DRAFT] Llama Stack Specification", "title": "[DRAFT] Llama Stack Specification",
"version": "0.0.1", "version": "0.0.1",
"description": "This is the specification of the llama stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. The specification is still in draft and subject to change.\n Generated at 2024-09-04 09:26:21.634687" "description": "This is the specification of the llama stack that provides\n a set of endpoints and their corresponding interfaces that are tailored to\n best leverage Llama Models. The specification is still in draft and subject to change.\n Generated at 2024-09-04 10:28:38.779789"
}, },
"servers": [ "servers": [
{ {
@ -104,7 +104,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "string" "$ref": "#/components/schemas/CancelEvaluationJobRequest"
} }
} }
}, },
@ -127,7 +127,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "string" "$ref": "#/components/schemas/CancelTrainingJobRequest"
} }
} }
}, },
@ -217,7 +217,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"$ref": "#/components/schemas/AgentConfig" "$ref": "#/components/schemas/CreateAgenticSystemRequest"
} }
} }
}, },
@ -413,7 +413,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "string" "$ref": "#/components/schemas/DeleteAgenticSystemRequest"
} }
} }
}, },
@ -459,7 +459,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "string" "$ref": "#/components/schemas/DeleteDatasetRequest"
} }
} }
}, },
@ -512,7 +512,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "string" "$ref": "#/components/schemas/DropMemoryBankRequest"
} }
} }
}, },
@ -679,17 +679,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"oneOf": [ "$ref": "#/components/schemas/GetAgenticSystemSessionRequest"
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
} }
} }
}, },
@ -868,10 +858,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "array", "$ref": "#/components/schemas/GetDocumentsRequest"
"items": {
"type": "string"
}
} }
} }
}, },
@ -1262,7 +1249,7 @@
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
"type": "string" "$ref": "#/components/schemas/ListArtifactsRequest"
} }
} }
}, },
@ -2104,6 +2091,30 @@
"completion_message_batch" "completion_message_batch"
] ]
}, },
"CancelEvaluationJobRequest": {
"type": "object",
"properties": {
"job_uuid": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"job_uuid"
]
},
"CancelTrainingJobRequest": {
"type": "object",
"properties": {
"job_uuid": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"job_uuid"
]
},
"ChatCompletionRequest": { "ChatCompletionRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -2772,6 +2783,18 @@
"type" "type"
] ]
}, },
"CreateAgenticSystemRequest": {
"type": "object",
"properties": {
"agent_config": {
"$ref": "#/components/schemas/AgentConfig"
}
},
"additionalProperties": false,
"required": [
"agent_config"
]
},
"AgenticSystemCreateResponse": { "AgenticSystemCreateResponse": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -3864,6 +3887,18 @@
"metadata" "metadata"
] ]
}, },
"DeleteAgenticSystemRequest": {
"type": "object",
"properties": {
"agent_id": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"agent_id"
]
},
"DeleteAgenticSystemSessionRequest": { "DeleteAgenticSystemSessionRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -3880,6 +3915,18 @@
"session_id" "session_id"
] ]
}, },
"DeleteDatasetRequest": {
"type": "object",
"properties": {
"dataset_uuid": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"dataset_uuid"
]
},
"DeleteDocumentsRequest": { "DeleteDocumentsRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -3899,6 +3946,18 @@
"document_ids" "document_ids"
] ]
}, },
"DropMemoryBankRequest": {
"type": "object",
"properties": {
"bank_id": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"bank_id"
]
},
"EmbeddingsRequest": { "EmbeddingsRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -4070,6 +4129,18 @@
], ],
"title": "Request to evaluate text generation." "title": "Request to evaluate text generation."
}, },
"GetAgenticSystemSessionRequest": {
"type": "object",
"properties": {
"turn_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"Session": { "Session": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -4195,6 +4266,21 @@
"other" "other"
] ]
}, },
"GetDocumentsRequest": {
"type": "object",
"properties": {
"document_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"document_ids"
]
},
"MemoryBankDocument": { "MemoryBankDocument": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -4557,6 +4643,18 @@
"documents" "documents"
] ]
}, },
"ListArtifactsRequest": {
"type": "object",
"properties": {
"experiment_id": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"experiment_id"
]
},
"LogMessagesRequest": { "LogMessagesRequest": {
"type": "object", "type": "object",
"properties": { "properties": {
@ -5487,31 +5585,31 @@
"name": "Observability" "name": "Observability"
}, },
{ {
"name": "Evaluations" "name": "Inference"
},
{
"name": "Memory"
},
{
"name": "BatchInference"
},
{
"name": "RewardScoring"
},
{
"name": "SyntheticDataGeneration"
},
{
"name": "PostTraining"
},
{
"name": "AgenticSystem"
}, },
{ {
"name": "Datasets" "name": "Datasets"
}, },
{ {
"name": "Inference" "name": "Memory"
},
{
"name": "AgenticSystem"
},
{
"name": "Evaluations"
},
{
"name": "SyntheticDataGeneration"
},
{
"name": "RewardScoring"
},
{
"name": "PostTraining"
},
{
"name": "BatchInference"
}, },
{ {
"name": "BatchChatCompletionRequest", "name": "BatchChatCompletionRequest",
@ -5581,6 +5679,14 @@
"name": "BatchCompletionResponse", "name": "BatchCompletionResponse",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BatchCompletionResponse\" />"
}, },
{
"name": "CancelEvaluationJobRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelEvaluationJobRequest\" />"
},
{
"name": "CancelTrainingJobRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CancelTrainingJobRequest\" />"
},
{ {
"name": "ChatCompletionRequest", "name": "ChatCompletionRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ChatCompletionRequest\" />"
@ -5669,6 +5775,10 @@
"name": "WolframAlphaToolDefinition", "name": "WolframAlphaToolDefinition",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/WolframAlphaToolDefinition\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/WolframAlphaToolDefinition\" />"
}, },
{
"name": "CreateAgenticSystemRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/CreateAgenticSystemRequest\" />"
},
{ {
"name": "AgenticSystemCreateResponse", "name": "AgenticSystemCreateResponse",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemCreateResponse\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/AgenticSystemCreateResponse\" />"
@ -5785,14 +5895,26 @@
"name": "Run", "name": "Run",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/Run\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/Run\" />"
}, },
{
"name": "DeleteAgenticSystemRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemRequest\" />"
},
{ {
"name": "DeleteAgenticSystemSessionRequest", "name": "DeleteAgenticSystemSessionRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemSessionRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteAgenticSystemSessionRequest\" />"
}, },
{
"name": "DeleteDatasetRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDatasetRequest\" />"
},
{ {
"name": "DeleteDocumentsRequest", "name": "DeleteDocumentsRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDocumentsRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/DeleteDocumentsRequest\" />"
}, },
{
"name": "DropMemoryBankRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/DropMemoryBankRequest\" />"
},
{ {
"name": "EmbeddingsRequest", "name": "EmbeddingsRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/EmbeddingsRequest\" />"
@ -5821,6 +5943,10 @@
"name": "EvaluateTextGenerationRequest", "name": "EvaluateTextGenerationRequest",
"description": "Request to evaluate text generation.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequest\" />" "description": "Request to evaluate text generation.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/EvaluateTextGenerationRequest\" />"
}, },
{
"name": "GetAgenticSystemSessionRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetAgenticSystemSessionRequest\" />"
},
{ {
"name": "Session", "name": "Session",
"description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />" "description": "A single session of an interaction with an Agentic System.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/Session\" />"
@ -5837,6 +5963,10 @@
"name": "ArtifactType", "name": "ArtifactType",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ArtifactType\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/ArtifactType\" />"
}, },
{
"name": "GetDocumentsRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/GetDocumentsRequest\" />"
},
{ {
"name": "MemoryBankDocument", "name": "MemoryBankDocument",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankDocument\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/MemoryBankDocument\" />"
@ -5889,6 +6019,10 @@
"name": "InsertDocumentsRequest", "name": "InsertDocumentsRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/InsertDocumentsRequest\" />"
}, },
{
"name": "ListArtifactsRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/ListArtifactsRequest\" />"
},
{ {
"name": "LogMessagesRequest", "name": "LogMessagesRequest",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogMessagesRequest\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/LogMessagesRequest\" />"
@ -6031,6 +6165,8 @@
"BraveSearchToolDefinition", "BraveSearchToolDefinition",
"BuiltinShield", "BuiltinShield",
"BuiltinTool", "BuiltinTool",
"CancelEvaluationJobRequest",
"CancelTrainingJobRequest",
"ChatCompletionRequest", "ChatCompletionRequest",
"ChatCompletionResponseEvent", "ChatCompletionResponseEvent",
"ChatCompletionResponseEventType", "ChatCompletionResponseEventType",
@ -6040,16 +6176,20 @@
"CompletionMessage", "CompletionMessage",
"CompletionRequest", "CompletionRequest",
"CompletionResponseStreamChunk", "CompletionResponseStreamChunk",
"CreateAgenticSystemRequest",
"CreateAgenticSystemSessionRequest", "CreateAgenticSystemSessionRequest",
"CreateDatasetRequest", "CreateDatasetRequest",
"CreateExperimentRequest", "CreateExperimentRequest",
"CreateMemoryBankRequest", "CreateMemoryBankRequest",
"CreateRunRequest", "CreateRunRequest",
"DPOAlignmentConfig", "DPOAlignmentConfig",
"DeleteAgenticSystemRequest",
"DeleteAgenticSystemSessionRequest", "DeleteAgenticSystemSessionRequest",
"DeleteDatasetRequest",
"DeleteDocumentsRequest", "DeleteDocumentsRequest",
"DialogGenerations", "DialogGenerations",
"DoraFinetuningConfig", "DoraFinetuningConfig",
"DropMemoryBankRequest",
"EmbeddingsRequest", "EmbeddingsRequest",
"EmbeddingsResponse", "EmbeddingsResponse",
"EvaluateQuestionAnsweringRequest", "EvaluateQuestionAnsweringRequest",
@ -6063,8 +6203,11 @@
"ExperimentStatus", "ExperimentStatus",
"FinetuningAlgorithm", "FinetuningAlgorithm",
"FunctionCallToolDefinition", "FunctionCallToolDefinition",
"GetAgenticSystemSessionRequest",
"GetDocumentsRequest",
"InferenceStep", "InferenceStep",
"InsertDocumentsRequest", "InsertDocumentsRequest",
"ListArtifactsRequest",
"Log", "Log",
"LogMessagesRequest", "LogMessagesRequest",
"LogMetricsRequest", "LogMetricsRequest",

View file

@ -413,6 +413,22 @@ components:
- photogen - photogen
- code_interpreter - code_interpreter
type: string type: string
CancelEvaluationJobRequest:
additionalProperties: false
properties:
job_uuid:
type: string
required:
- job_uuid
type: object
CancelTrainingJobRequest:
additionalProperties: false
properties:
job_uuid:
type: string
required:
- job_uuid
type: object
ChatCompletionRequest: ChatCompletionRequest:
additionalProperties: false additionalProperties: false
properties: properties:
@ -571,6 +587,14 @@ components:
- delta - delta
title: streamed completion response. title: streamed completion response.
type: object type: object
CreateAgenticSystemRequest:
additionalProperties: false
properties:
agent_config:
$ref: '#/components/schemas/AgentConfig'
required:
- agent_config
type: object
CreateAgenticSystemSessionRequest: CreateAgenticSystemSessionRequest:
additionalProperties: false additionalProperties: false
properties: properties:
@ -700,6 +724,14 @@ components:
- epsilon - epsilon
- gamma - gamma
type: object type: object
DeleteAgenticSystemRequest:
additionalProperties: false
properties:
agent_id:
type: string
required:
- agent_id
type: object
DeleteAgenticSystemSessionRequest: DeleteAgenticSystemSessionRequest:
additionalProperties: false additionalProperties: false
properties: properties:
@ -711,6 +743,14 @@ components:
- agent_id - agent_id
- session_id - session_id
type: object type: object
DeleteDatasetRequest:
additionalProperties: false
properties:
dataset_uuid:
type: string
required:
- dataset_uuid
type: object
DeleteDocumentsRequest: DeleteDocumentsRequest:
additionalProperties: false additionalProperties: false
properties: properties:
@ -769,6 +809,14 @@ components:
- rank - rank
- alpha - alpha
type: object type: object
DropMemoryBankRequest:
additionalProperties: false
properties:
bank_id:
type: string
required:
- bank_id
type: object
EmbeddingsRequest: EmbeddingsRequest:
additionalProperties: false additionalProperties: false
properties: properties:
@ -987,6 +1035,24 @@ components:
- description - description
- parameters - parameters
type: object type: object
GetAgenticSystemSessionRequest:
additionalProperties: false
properties:
turn_ids:
items:
type: string
type: array
type: object
GetDocumentsRequest:
additionalProperties: false
properties:
document_ids:
items:
type: string
type: array
required:
- document_ids
type: object
InferenceStep: InferenceStep:
additionalProperties: false additionalProperties: false
properties: properties:
@ -1026,6 +1092,14 @@ components:
- bank_id - bank_id
- documents - documents
type: object type: object
ListArtifactsRequest:
additionalProperties: false
properties:
experiment_id:
type: string
required:
- experiment_id
type: object
Log: Log:
additionalProperties: false additionalProperties: false
properties: properties:
@ -2385,7 +2459,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-09-04 09:26:21.634687" \ draft and subject to change.\n Generated at 2024-09-04 10:28:38.779789"
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
@ -2398,7 +2472,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/AgentConfig' $ref: '#/components/schemas/CreateAgenticSystemRequest'
required: true required: true
responses: responses:
'200': '200':
@ -2416,7 +2490,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: '#/components/schemas/DeleteAgenticSystemRequest'
required: true required: true
responses: responses:
'200': '200':
@ -2472,11 +2546,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
oneOf: $ref: '#/components/schemas/GetAgenticSystemSessionRequest'
- items:
type: string
type: array
- type: 'null'
required: true required: true
responses: responses:
'200': '200':
@ -2628,7 +2698,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: '#/components/schemas/DeleteDatasetRequest'
required: true required: true
responses: responses:
'200': '200':
@ -2676,7 +2746,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: '#/components/schemas/CancelEvaluationJobRequest'
required: true required: true
responses: responses:
'200': '200':
@ -2790,7 +2860,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: '#/components/schemas/ListArtifactsRequest'
required: true required: true
responses: responses:
'200': '200':
@ -3014,9 +3084,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
items: $ref: '#/components/schemas/GetDocumentsRequest'
type: string
type: array
required: true required: true
responses: responses:
'200': '200':
@ -3098,7 +3166,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: '#/components/schemas/DropMemoryBankRequest'
required: true required: true
responses: responses:
'200': '200':
@ -3164,7 +3232,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: string $ref: '#/components/schemas/CancelTrainingJobRequest'
required: true required: true
responses: responses:
'200': '200':
@ -3344,15 +3412,15 @@ servers:
- url: http://any-hosted-llama-stack.com - url: http://any-hosted-llama-stack.com
tags: tags:
- name: Observability - name: Observability
- name: Evaluations
- name: Memory
- name: BatchInference
- name: RewardScoring
- name: SyntheticDataGeneration
- name: PostTraining
- name: AgenticSystem
- name: Datasets
- name: Inference - name: Inference
- name: Datasets
- name: Memory
- name: AgenticSystem
- name: Evaluations
- name: SyntheticDataGeneration
- name: RewardScoring
- name: PostTraining
- name: BatchInference
- description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/BatchChatCompletionRequest"
/> />
name: BatchChatCompletionRequest name: BatchChatCompletionRequest
@ -3404,6 +3472,12 @@ tags:
- description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionResponse" - description: <SchemaDefinition schemaRef="#/components/schemas/BatchCompletionResponse"
/> />
name: BatchCompletionResponse name: BatchCompletionResponse
- description: <SchemaDefinition schemaRef="#/components/schemas/CancelEvaluationJobRequest"
/>
name: CancelEvaluationJobRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/CancelTrainingJobRequest"
/>
name: CancelTrainingJobRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/ChatCompletionRequest"
/> />
name: ChatCompletionRequest name: ChatCompletionRequest
@ -3473,6 +3547,9 @@ tags:
- description: <SchemaDefinition schemaRef="#/components/schemas/WolframAlphaToolDefinition" - description: <SchemaDefinition schemaRef="#/components/schemas/WolframAlphaToolDefinition"
/> />
name: WolframAlphaToolDefinition name: WolframAlphaToolDefinition
- description: <SchemaDefinition schemaRef="#/components/schemas/CreateAgenticSystemRequest"
/>
name: CreateAgenticSystemRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemCreateResponse" - description: <SchemaDefinition schemaRef="#/components/schemas/AgenticSystemCreateResponse"
/> />
name: AgenticSystemCreateResponse name: AgenticSystemCreateResponse
@ -3561,12 +3638,21 @@ tags:
name: CreateRunRequest name: CreateRunRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/Run" /> - description: <SchemaDefinition schemaRef="#/components/schemas/Run" />
name: Run name: Run
- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteAgenticSystemRequest"
/>
name: DeleteAgenticSystemRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteAgenticSystemSessionRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/DeleteAgenticSystemSessionRequest"
/> />
name: DeleteAgenticSystemSessionRequest name: DeleteAgenticSystemSessionRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteDatasetRequest"
/>
name: DeleteDatasetRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/DeleteDocumentsRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/DeleteDocumentsRequest"
/> />
name: DeleteDocumentsRequest name: DeleteDocumentsRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/DropMemoryBankRequest"
/>
name: DropMemoryBankRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/EmbeddingsRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/EmbeddingsRequest"
/> />
name: EmbeddingsRequest name: EmbeddingsRequest
@ -3598,6 +3684,9 @@ tags:
<SchemaDefinition schemaRef="#/components/schemas/EvaluateTextGenerationRequest" <SchemaDefinition schemaRef="#/components/schemas/EvaluateTextGenerationRequest"
/>' />'
name: EvaluateTextGenerationRequest name: EvaluateTextGenerationRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/GetAgenticSystemSessionRequest"
/>
name: GetAgenticSystemSessionRequest
- description: 'A single session of an interaction with an Agentic System. - description: 'A single session of an interaction with an Agentic System.
@ -3610,6 +3699,9 @@ tags:
name: Artifact name: Artifact
- description: <SchemaDefinition schemaRef="#/components/schemas/ArtifactType" /> - description: <SchemaDefinition schemaRef="#/components/schemas/ArtifactType" />
name: ArtifactType name: ArtifactType
- description: <SchemaDefinition schemaRef="#/components/schemas/GetDocumentsRequest"
/>
name: GetDocumentsRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/MemoryBankDocument" - description: <SchemaDefinition schemaRef="#/components/schemas/MemoryBankDocument"
/> />
name: MemoryBankDocument name: MemoryBankDocument
@ -3658,6 +3750,9 @@ tags:
- description: <SchemaDefinition schemaRef="#/components/schemas/InsertDocumentsRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/InsertDocumentsRequest"
/> />
name: InsertDocumentsRequest name: InsertDocumentsRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/ListArtifactsRequest"
/>
name: ListArtifactsRequest
- description: <SchemaDefinition schemaRef="#/components/schemas/LogMessagesRequest" - description: <SchemaDefinition schemaRef="#/components/schemas/LogMessagesRequest"
/> />
name: LogMessagesRequest name: LogMessagesRequest
@ -3785,6 +3880,8 @@ x-tagGroups:
- BraveSearchToolDefinition - BraveSearchToolDefinition
- BuiltinShield - BuiltinShield
- BuiltinTool - BuiltinTool
- CancelEvaluationJobRequest
- CancelTrainingJobRequest
- ChatCompletionRequest - ChatCompletionRequest
- ChatCompletionResponseEvent - ChatCompletionResponseEvent
- ChatCompletionResponseEventType - ChatCompletionResponseEventType
@ -3794,16 +3891,20 @@ x-tagGroups:
- CompletionMessage - CompletionMessage
- CompletionRequest - CompletionRequest
- CompletionResponseStreamChunk - CompletionResponseStreamChunk
- CreateAgenticSystemRequest
- CreateAgenticSystemSessionRequest - CreateAgenticSystemSessionRequest
- CreateDatasetRequest - CreateDatasetRequest
- CreateExperimentRequest - CreateExperimentRequest
- CreateMemoryBankRequest - CreateMemoryBankRequest
- CreateRunRequest - CreateRunRequest
- DPOAlignmentConfig - DPOAlignmentConfig
- DeleteAgenticSystemRequest
- DeleteAgenticSystemSessionRequest - DeleteAgenticSystemSessionRequest
- DeleteDatasetRequest
- DeleteDocumentsRequest - DeleteDocumentsRequest
- DialogGenerations - DialogGenerations
- DoraFinetuningConfig - DoraFinetuningConfig
- DropMemoryBankRequest
- EmbeddingsRequest - EmbeddingsRequest
- EmbeddingsResponse - EmbeddingsResponse
- EvaluateQuestionAnsweringRequest - EvaluateQuestionAnsweringRequest
@ -3817,8 +3918,11 @@ x-tagGroups:
- ExperimentStatus - ExperimentStatus
- FinetuningAlgorithm - FinetuningAlgorithm
- FunctionCallToolDefinition - FunctionCallToolDefinition
- GetAgenticSystemSessionRequest
- GetDocumentsRequest
- InferenceStep - InferenceStep
- InsertDocumentsRequest - InsertDocumentsRequest
- ListArtifactsRequest
- Log - Log
- LogMessagesRequest - LogMessagesRequest
- LogMetricsRequest - LogMetricsRequest

View file

@ -466,8 +466,11 @@ class Generator:
# data passed in payload # data passed in payload
if op.request_params: if op.request_params:
builder = ContentBuilder(self.schema_builder) builder = ContentBuilder(self.schema_builder)
if len(op.request_params) == 1: first = next(iter(op.request_params))
request_name, request_type = op.request_params[0] request_name, request_type = first
if len(op.request_params) == 1 and "Request" in first[1].__name__:
# TODO(ashwin): Undo the "Request" hack and this entire block eventually
request_name, request_type = first
else: else:
from dataclasses import make_dataclass from dataclasses import make_dataclass