generate openapi

This commit is contained in:
Xi Yan 2024-10-10 15:30:34 -07:00
parent a3e65d58a9
commit 7ff5800dea
2 changed files with 46 additions and 46 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-10-09 21:10:09.073430" "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-10-10 15:29:56.831109"
}, },
"servers": [ "servers": [
{ {
@ -355,7 +355,7 @@
"200": { "200": {
"description": "OK", "description": "OK",
"content": { "content": {
"application/json": { "text/event-stream": {
"schema": { "schema": {
"$ref": "#/components/schemas/AgentTurnResponseStreamChunk" "$ref": "#/components/schemas/AgentTurnResponseStreamChunk"
} }
@ -6074,36 +6074,6 @@
} }
], ],
"tags": [ "tags": [
{
"name": "RewardScoring"
},
{
"name": "Memory"
},
{
"name": "SyntheticDataGeneration"
},
{
"name": "Models"
},
{
"name": "Safety"
},
{
"name": "BatchInference"
},
{
"name": "Agents"
},
{
"name": "MemoryBanks"
},
{
"name": "Shields"
},
{
"name": "Datasets"
},
{ {
"name": "Evaluations" "name": "Evaluations"
}, },
@ -6111,14 +6081,44 @@
"name": "Inspect" "name": "Inspect"
}, },
{ {
"name": "PostTraining" "name": "RewardScoring"
},
{
"name": "Datasets"
},
{
"name": "Models"
}, },
{ {
"name": "Telemetry" "name": "Telemetry"
}, },
{
"name": "PostTraining"
},
{
"name": "SyntheticDataGeneration"
},
{
"name": "BatchInference"
},
{ {
"name": "Inference" "name": "Inference"
}, },
{
"name": "Agents"
},
{
"name": "Memory"
},
{
"name": "Safety"
},
{
"name": "Shields"
},
{
"name": "MemoryBanks"
},
{ {
"name": "BuiltinTool", "name": "BuiltinTool",
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />" "description": "<SchemaDefinition schemaRef=\"#/components/schemas/BuiltinTool\" />"

View file

@ -2507,7 +2507,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-10-09 21:10:09.073430" \ draft and subject to change.\n Generated at 2024-10-10 15:29:56.831109"
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
@ -2693,7 +2693,7 @@ paths:
responses: responses:
'200': '200':
content: content:
application/json: text/event-stream:
schema: schema:
$ref: '#/components/schemas/AgentTurnResponseStreamChunk' $ref: '#/components/schemas/AgentTurnResponseStreamChunk'
description: OK description: OK
@ -3712,21 +3712,21 @@ security:
servers: servers:
- url: http://any-hosted-llama-stack.com - url: http://any-hosted-llama-stack.com
tags: tags:
- name: RewardScoring
- name: Memory
- name: SyntheticDataGeneration
- name: Models
- name: Safety
- name: BatchInference
- name: Agents
- name: MemoryBanks
- name: Shields
- name: Datasets
- name: Evaluations - name: Evaluations
- name: Inspect - name: Inspect
- name: PostTraining - name: RewardScoring
- name: Datasets
- name: Models
- name: Telemetry - name: Telemetry
- name: PostTraining
- name: SyntheticDataGeneration
- name: BatchInference
- name: Inference - name: Inference
- name: Agents
- name: Memory
- name: Safety
- name: Shields
- name: MemoryBanks
- 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"