From c345d32e51ab12bf33ecfd6065ea0fb93491e8c9 Mon Sep 17 00:00:00 2001 From: Lucas Fayoux Date: Fri, 23 Aug 2024 14:23:22 -0400 Subject: [PATCH] regen --- cohere-openapi.yaml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/cohere-openapi.yaml b/cohere-openapi.yaml index 1721f5b97..9bae0dd4b 100644 --- a/cohere-openapi.yaml +++ b/cohere-openapi.yaml @@ -5839,7 +5839,7 @@ paths: finish_reason: $ref: "#/components/schemas/ChatFinishReason" message: - $ref: "#/components/schemas/AssistantMessage" + $ref: "#/components/schemas/AssistantMessageResponse" usage: $ref: "#/components/schemas/Usage" response-stream: @@ -16070,6 +16070,37 @@ components: - error - content_blocked - error_limit + AssistantMessageResponse: + x-fern-sdk-group-name: v2 + type: object + description: A message from the assistant role can contain text and tool call + information. + required: + - role + properties: + role: + type: string + enum: + - assistant + tool_calls: + type: array + items: + $ref: "#/components/schemas/ToolCall-2" + tool_plan: + type: string + content: + type: array + items: + oneOf: + - $ref: "#/components/schemas/TextContent" + discriminator: + propertyName: type + mapping: + text: "#/components/schemas/TextContent" + citations: + type: array + items: + $ref: "#/components/schemas/Citation" Usage: x-fern-sdk-group-name: v2 type: object @@ -16118,7 +16149,7 @@ components: finish_reason: $ref: "#/components/schemas/ChatFinishReason" message: - $ref: "#/components/schemas/AssistantMessage" + $ref: "#/components/schemas/AssistantMessageResponse" usage: $ref: "#/components/schemas/Usage" ChatStreamEventType: