mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
feat: support thought_signature
according to gemini docs: https://ai.google.dev/gemini-api/docs/thought-signatures thought_signature lives in the extra_content of the tool_call, add extra_content to OpenAIChatCompletionToolCall to support this Signed-off-by: Charlie Doern <cdoern@redhat.com>
This commit is contained in:
parent
b1851dc9ef
commit
b99eb2a1d2
6 changed files with 26 additions and 0 deletions
|
|
@ -4228,6 +4228,11 @@ components:
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
|
extra_content:
|
||||||
|
anyOf:
|
||||||
|
- additionalProperties: true
|
||||||
|
type: object
|
||||||
|
- type: 'null'
|
||||||
type: object
|
type: object
|
||||||
title: OpenAIChatCompletionToolCall
|
title: OpenAIChatCompletionToolCall
|
||||||
description: Tool call specification for OpenAI-compatible chat completion responses.
|
description: Tool call specification for OpenAI-compatible chat completion responses.
|
||||||
|
|
|
||||||
5
docs/static/deprecated-llama-stack-spec.yaml
vendored
5
docs/static/deprecated-llama-stack-spec.yaml
vendored
|
|
@ -1071,6 +1071,11 @@ components:
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
|
extra_content:
|
||||||
|
anyOf:
|
||||||
|
- additionalProperties: true
|
||||||
|
type: object
|
||||||
|
- type: 'null'
|
||||||
type: object
|
type: object
|
||||||
title: OpenAIChatCompletionToolCall
|
title: OpenAIChatCompletionToolCall
|
||||||
description: Tool call specification for OpenAI-compatible chat completion responses.
|
description: Tool call specification for OpenAI-compatible chat completion responses.
|
||||||
|
|
|
||||||
|
|
@ -936,6 +936,11 @@ components:
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
|
extra_content:
|
||||||
|
anyOf:
|
||||||
|
- additionalProperties: true
|
||||||
|
type: object
|
||||||
|
- type: 'null'
|
||||||
type: object
|
type: object
|
||||||
title: OpenAIChatCompletionToolCall
|
title: OpenAIChatCompletionToolCall
|
||||||
description: Tool call specification for OpenAI-compatible chat completion responses.
|
description: Tool call specification for OpenAI-compatible chat completion responses.
|
||||||
|
|
|
||||||
5
docs/static/llama-stack-spec.yaml
vendored
5
docs/static/llama-stack-spec.yaml
vendored
|
|
@ -3249,6 +3249,11 @@ components:
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
|
extra_content:
|
||||||
|
anyOf:
|
||||||
|
- additionalProperties: true
|
||||||
|
type: object
|
||||||
|
- type: 'null'
|
||||||
type: object
|
type: object
|
||||||
title: OpenAIChatCompletionToolCall
|
title: OpenAIChatCompletionToolCall
|
||||||
description: Tool call specification for OpenAI-compatible chat completion responses.
|
description: Tool call specification for OpenAI-compatible chat completion responses.
|
||||||
|
|
|
||||||
5
docs/static/stainless-llama-stack-spec.yaml
vendored
5
docs/static/stainless-llama-stack-spec.yaml
vendored
|
|
@ -4228,6 +4228,11 @@ components:
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
- type: 'null'
|
- type: 'null'
|
||||||
title: OpenAIChatCompletionToolCallFunction
|
title: OpenAIChatCompletionToolCallFunction
|
||||||
|
extra_content:
|
||||||
|
anyOf:
|
||||||
|
- additionalProperties: true
|
||||||
|
type: object
|
||||||
|
- type: 'null'
|
||||||
type: object
|
type: object
|
||||||
title: OpenAIChatCompletionToolCall
|
title: OpenAIChatCompletionToolCall
|
||||||
description: Tool call specification for OpenAI-compatible chat completion responses.
|
description: Tool call specification for OpenAI-compatible chat completion responses.
|
||||||
|
|
|
||||||
|
|
@ -438,6 +438,7 @@ class OpenAIChatCompletionToolCall(BaseModel):
|
||||||
id: str | None = None
|
id: str | None = None
|
||||||
type: Literal["function"] = "function"
|
type: Literal["function"] = "function"
|
||||||
function: OpenAIChatCompletionToolCallFunction | None = None
|
function: OpenAIChatCompletionToolCallFunction | None = None
|
||||||
|
extra_content: dict[str, Any] | None = None
|
||||||
|
|
||||||
|
|
||||||
@json_schema_type
|
@json_schema_type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue