From 139d5bded62de6c6df1cbc796ba22bb156d050c4 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Thu, 13 Feb 2025 09:53:03 -0800 Subject: [PATCH] update --- docs/_static/llama-stack-spec.html | 59 +--------------- docs/_static/llama-stack-spec.yaml | 108 +++++------------------------ 2 files changed, 20 insertions(+), 147 deletions(-) diff --git a/docs/_static/llama-stack-spec.html b/docs/_static/llama-stack-spec.html index 6cd8b4758..b93f6a380 100644 --- a/docs/_static/llama-stack-spec.html +++ b/docs/_static/llama-stack-spec.html @@ -40,7 +40,6 @@ } ], "paths": { -<<<<<<< HEAD "/v1/eval/tasks/{task_id}/evaluations": { "post": { "responses": { @@ -235,8 +234,6 @@ "deprecated": true } }, -======= ->>>>>>> 974941be (deprecation in OpenAPI spec) "/v1/eval-tasks": { "get": { "responses": { @@ -245,27 +242,18 @@ "content": { "application/json": { "schema": { -<<<<<<< HEAD "$ref": "#/components/schemas/ListBenchmarksResponse" -======= - "$ref": "#/components/schemas/ListEvalTasksResponse" ->>>>>>> 974941be (deprecation in OpenAPI spec) } } } } }, "tags": [ -<<<<<<< HEAD "Benchmarks" -======= - "EvalTasks" ->>>>>>> 974941be (deprecation in OpenAPI spec) ], "description": "", "parameters": [], "deprecated": true -<<<<<<< HEAD }, "post": { "responses": { @@ -330,8 +318,6 @@ "required": true }, "deprecated": true -======= ->>>>>>> 974941be (deprecation in OpenAPI spec) } }, "/v1/datasetio/rows": { @@ -2659,50 +2645,7 @@ "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", "components": { "schemas": { -<<<<<<< HEAD "AgentCandidate": { -======= - "EvalTask": { - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "eval_task", - "default": "eval_task" - }, - "dataset_id": { - "type": "string" - }, - "config": { - "$ref": "#/components/schemas/AgentConfig" - } - }, - "additionalProperties": false, - "required": [ - "type", - "config" - ] - }, - "ListEvalTasksResponse": { - "type": "object", - "properties": { - "sampling_params": { - "$ref": "#/components/schemas/SamplingParams" - }, - "input_shields": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EvalTask" - } - } - }, - "additionalProperties": false, - "required": [ - "data" - ] - }, - "AppendRowsRequest": { ->>>>>>> 974941be (deprecation in OpenAPI spec) "type": "object", "properties": { "type": { @@ -2729,7 +2672,7 @@ "input_shields": { "type": "array", "items": { - "$ref": "#/components/schemas/ToolDef" + "type": "string" } }, "output_shields": { diff --git a/docs/_static/llama-stack-spec.yaml b/docs/_static/llama-stack-spec.yaml index c36c6e257..b30025020 100644 --- a/docs/_static/llama-stack-spec.yaml +++ b/docs/_static/llama-stack-spec.yaml @@ -10,7 +10,6 @@ info: servers: - url: http://any-hosted-llama-stack.com paths: -<<<<<<< HEAD /v1/eval/tasks/{task_id}/evaluations: post: responses: @@ -126,8 +125,6 @@ paths: schema: type: string deprecated: true -======= ->>>>>>> 974941be (deprecation in OpenAPI spec) /v1/eval-tasks: get: responses: @@ -136,7 +133,6 @@ paths: content: application/json: schema: -<<<<<<< HEAD $ref: '#/components/schemas/ListBenchmarksResponse' tags: - Benchmarks @@ -183,14 +179,6 @@ paths: $ref: '#/components/schemas/DeprecatedRunEvalRequest' required: true deprecated: true -======= - $ref: '#/components/schemas/ListEvalTasksResponse' - tags: - - EvalTasks - description: '' - parameters: [] - deprecated: true ->>>>>>> 974941be (deprecation in OpenAPI spec) /v1/datasetio/rows: get: responses: @@ -1610,52 +1598,7 @@ jsonSchemaDialect: >- https://json-schema.org/draft/2020-12/schema components: schemas: -<<<<<<< HEAD AgentCandidate: -======= - EvalTask: - type: object - properties: - type: - type: string - const: eval_task - default: eval_task - dataset_id: - type: string - scoring_functions: - type: array - items: - type: string - metadata: - type: object - additionalProperties: - oneOf: - - type: 'null' - - type: boolean - - type: number - - type: string - - type: array - - type: object - additionalProperties: false - required: - - type - - dataset_id - - scoring_functions - - metadata - ListEvalTasksResponse: - type: object - properties: - sampling_params: - $ref: '#/components/schemas/SamplingParams' - input_shields: - type: array - items: - $ref: '#/components/schemas/EvalTask' - additionalProperties: false - required: - - data - AppendRowsRequest: ->>>>>>> 974941be (deprecation in OpenAPI spec) type: object properties: type: @@ -2922,47 +2865,34 @@ components: TextDelta: type: object properties: - name: + type: type: string - description: + const: text + default: text + text: type: string - parameters: - type: array - items: - $ref: '#/components/schemas/ToolParameter' - metadata: - type: object - additionalProperties: - oneOf: - - type: 'null' - - type: boolean - - type: number - - type: string - - type: array - - type: object additionalProperties: false required: - - name - ToolParameter: + - type + - text + ToolCallDelta: type: object properties: - name: + type: type: string - parameter_type: - type: string - description: - type: string - required: - type: boolean - default: true - default: + const: tool_call + default: tool_call + tool_call: oneOf: - - type: 'null' - - type: boolean - - type: number - type: string - - type: array - - type: object + - $ref: '#/components/schemas/ToolCall' + parse_status: + type: string + enum: + - started + - in_progress + - failed + - succeeded additionalProperties: false required: - type