diff --git a/client-sdks/stainless/openapi.yml b/client-sdks/stainless/openapi.yml index 448b08908..d8159be62 100644 --- a/client-sdks/stainless/openapi.yml +++ b/client-sdks/stainless/openapi.yml @@ -6791,6 +6791,8 @@ components: const: web_search_preview - type: string const: web_search_preview_2025_03_11 + - type: string + const: web_search_2025_08_26 default: web_search description: Web search tool type variant to use search_context_size: diff --git a/docs/static/llama-stack-spec.yaml b/docs/static/llama-stack-spec.yaml index cc720ad18..ea7fd6eec 100644 --- a/docs/static/llama-stack-spec.yaml +++ b/docs/static/llama-stack-spec.yaml @@ -6075,6 +6075,8 @@ components: const: web_search_preview - type: string const: web_search_preview_2025_03_11 + - type: string + const: web_search_2025_08_26 default: web_search description: Web search tool type variant to use search_context_size: diff --git a/docs/static/stainless-llama-stack-spec.yaml b/docs/static/stainless-llama-stack-spec.yaml index 448b08908..d8159be62 100644 --- a/docs/static/stainless-llama-stack-spec.yaml +++ b/docs/static/stainless-llama-stack-spec.yaml @@ -6791,6 +6791,8 @@ components: const: web_search_preview - type: string const: web_search_preview_2025_03_11 + - type: string + const: web_search_2025_08_26 default: web_search description: Web search tool type variant to use search_context_size: diff --git a/src/llama_stack/apis/agents/openai_responses.py b/src/llama_stack/apis/agents/openai_responses.py index 553ac16c2..a38d1cba6 100644 --- a/src/llama_stack/apis/agents/openai_responses.py +++ b/src/llama_stack/apis/agents/openai_responses.py @@ -415,9 +415,12 @@ class OpenAIResponseInputToolWebSearch(BaseModel): """ # Must match values of WebSearchToolTypes above - type: Literal["web_search"] | Literal["web_search_preview"] | Literal["web_search_preview_2025_03_11"] | Literal["web_search_2025_08_26"] = ( - "web_search" - ) + type: ( + Literal["web_search"] + | Literal["web_search_preview"] + | Literal["web_search_preview_2025_03_11"] + | Literal["web_search_2025_08_26"] + ) = "web_search" # TODO: actually use search_context_size somewhere... search_context_size: str | None = Field(default="medium", pattern="^low|medium|high$") # TODO: add user_location