Elffuss BraidHub

kikocis/llama-stack public

regenerate openapi spec
Changeset780141a617b6154dbc3d66794876f3ac408fe5bd9a999b7925a1e5e690023ed6
AuthorXi Yan <xiyan@meta.com> · 2024-09-18 19:28 -07:00
CommitterXi Yan <xiyan@meta.com> · 2024-09-18 19:28 -07:00
Parentsfeb1cb9158d0

Browse the files at this changeset

3 files changed

modified docs/llama-stack-spec.html +20 −12
@@ -21,7 +21,7 @@
2121 "info": {
2222 "title": "[DRAFT] Llama Stack Specification",
2323 "version": "0.0.1",
24- "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-17 12:55:45.538053"
24+ "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-18 19:27:39.955190"
2525 },
2626 "servers": [
2727 {
@@ -2587,6 +2587,9 @@
25872587 "type": "string",
25882588 "const": "brave_search"
25892589 },
2590+ "api_key": {
2591+ "type": "string"
2592+ },
25902593 "engine": {
25912594 "type": "string",
25922595 "enum": [
@@ -2601,6 +2604,7 @@
26012604 "additionalProperties": false,
26022605 "required": [
26032606 "type",
2607+ "api_key",
26042608 "engine"
26052609 ]
26062610 },
@@ -2663,13 +2667,17 @@
26632667 "type": "string",
26642668 "const": "wolfram_alpha"
26652669 },
2670+ "api_key": {
2671+ "type": "string"
2672+ },
26662673 "remote_execution": {
26672674 "$ref": "#/components/schemas/RestAPIExecutionConfig"
26682675 }
26692676 },
26702677 "additionalProperties": false,
26712678 "required": [
2672- "type"
2679+ "type",
2680+ "api_key"
26732681 ]
26742682 },
26752683 "CreateAgentRequest": {
@@ -5141,37 +5149,37 @@
51415149 ],
51425150 "tags": [
51435151 {
5144- "name": "Agents"
5152+ "name": "BatchInference"
51455153 },
51465154 {
5147- "name": "Safety"
5155+ "name": "PostTraining"
51485156 },
51495157 {
5150- "name": "SyntheticDataGeneration"
5158+ "name": "Inference"
51515159 },
51525160 {
5153- "name": "Telemetry"
5161+ "name": "Safety"
51545162 },
51555163 {
5156- "name": "Datasets"
5164+ "name": "RewardScoring"
51575165 },
51585166 {
5159- "name": "RewardScoring"
5167+ "name": "Telemetry"
51605168 },
51615169 {
51625170 "name": "Evaluations"
51635171 },
51645172 {
5165- "name": "PostTraining"
5173+ "name": "SyntheticDataGeneration"
51665174 },
51675175 {
5168- "name": "Inference"
5176+ "name": "Memory"
51695177 },
51705178 {
5171- "name": "BatchInference"
5179+ "name": "Agents"
51725180 },
51735181 {
5174- "name": "Memory"
5182+ "name": "Datasets"
51755183 },
51765184 {
51775185 "name": "BuiltinTool",
modified docs/llama-stack-spec.yaml +14 −8
@@ -1651,6 +1651,8 @@
16511651 SearchToolDefinition:
16521652 additionalProperties: false
16531653 properties:
1654+ api_key:
1655+ type: string
16541656 engine:
16551657 enum:
16561658 - bing
@@ -1671,6 +1673,7 @@
16711673 type: string
16721674 required:
16731675 - type
1676+ - api_key
16741677 - engine
16751678 type: object
16761679 Session:
@@ -2336,6 +2339,8 @@
23362339 WolframAlphaToolDefinition:
23372340 additionalProperties: false
23382341 properties:
2342+ api_key:
2343+ type: string
23392344 input_shields:
23402345 items:
23412346 $ref: '#/components/schemas/ShieldDefinition'
@@ -2351,12 +2356,13 @@
23512356 type: string
23522357 required:
23532358 - type
2359+ - api_key
23542360 type: object
23552361 info:
23562362 description: "This is the specification of the llama stack that provides\n \
23572363 \ a set of endpoints and their corresponding interfaces that are tailored\
23582364 \ to\n best leverage Llama Models. The specification is still in\
2359- \ draft and subject to change.\n Generated at 2024-09-17 12:55:45.538053"
2365+ \ draft and subject to change.\n Generated at 2024-09-18 19:27:39.955190"
23602366 title: '[DRAFT] Llama Stack Specification'
23612367 version: 0.0.1
23622368 jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
@@ -3144,17 +3150,17 @@
31443150 servers:
31453151 - url: http://any-hosted-llama-stack.com
31463152 tags:
3147-- name: Agents
3153+- name: BatchInference
3154+- name: PostTraining
3155+- name: Inference
31483156 - name: Safety
3149-- name: SyntheticDataGeneration
3150-- name: Telemetry
3151-- name: Datasets
31523157 - name: RewardScoring
3158+- name: Telemetry
31533159 - name: Evaluations
3154-- name: PostTraining
3155-- name: Inference
3156-- name: BatchInference
3160+- name: SyntheticDataGeneration
31573161 - name: Memory
3162+- name: Agents
3163+- name: Datasets
31583164 - description: <SchemaDefinition schemaRef="#/components/schemas/BuiltinTool" />
31593165 name: BuiltinTool
31603166 - description: <SchemaDefinition schemaRef="#/components/schemas/CompletionMessage"
modified docs/openapi_generator/run_openapi_generator.sh +1 −1
@@ -28,4 +28,4 @@
2828 exit 1
2929 fi
3030
31-PYTHONPATH=$PYTHONPATH:../.. python -m rfcs.openapi_generator.generate $*
31+PYTHONPATH=$PYTHONPATH:../.. python -m docs.openapi_generator.generate $*