chore: 🐝 Update SDK - Generate 0.9.2 (#205)

Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2026-06-11 12:10:31 -04:00
committed by GitHub
co-authored by speakeasybot speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent 0c735989c1
commit 0f116c9792
392 changed files with 49644 additions and 2501 deletions
+69 -10
View File
@@ -1,8 +1,21 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .advisorservertool_openrouter import (
AdvisorServerToolOpenRouter,
AdvisorServerToolOpenRouterTypedDict,
)
from .anthropiccachecontroldirective import (
AnthropicCacheControlDirective,
AnthropicCacheControlDirectiveTypedDict,
)
from .applypatchservertool import ApplyPatchServerTool, ApplyPatchServerToolTypedDict
from .applypatchservertool_openrouter import (
ApplyPatchServerToolOpenRouter,
ApplyPatchServerToolOpenRouterTypedDict,
)
from .autorouterplugin import AutoRouterPlugin, AutoRouterPluginTypedDict
from .bashservertool import BashServerTool, BashServerToolTypedDict
from .chatsearchmodelsservertool import (
ChatSearchModelsServerTool,
ChatSearchModelsServerToolTypedDict,
@@ -21,6 +34,11 @@ from .customtool import CustomTool, CustomToolTypedDict
from .datetimeservertool import DatetimeServerTool, DatetimeServerToolTypedDict
from .fileparserplugin import FileParserPlugin, FileParserPluginTypedDict
from .filesearchservertool import FileSearchServerTool, FileSearchServerToolTypedDict
from .fusionplugin import FusionPlugin, FusionPluginTypedDict
from .fusionservertool_openrouter import (
FusionServerToolOpenRouter,
FusionServerToolOpenRouterTypedDict,
)
from .imageconfig import ImageConfig, ImageConfigTypedDict
from .imagegenerationservertool import (
ImageGenerationServerTool,
@@ -43,6 +61,7 @@ from .openairesponsestoolchoice_union import (
)
from .openairesponsestruncation import OpenAIResponsesTruncation
from .outputmodalityenum import OutputModalityEnum
from .paretorouterplugin import ParetoRouterPlugin, ParetoRouterPluginTypedDict
from .preview_20250311_websearchservertool import (
Preview20250311WebSearchServerTool,
Preview20250311WebSearchServerToolTypedDict,
@@ -56,9 +75,19 @@ from .reasoningconfig import ReasoningConfig, ReasoningConfigTypedDict
from .responsehealingplugin import ResponseHealingPlugin, ResponseHealingPluginTypedDict
from .responseincludesenum import ResponseIncludesEnum
from .shellservertool import ShellServerTool, ShellServerToolTypedDict
from .shellservertool_openrouter import (
ShellServerToolOpenRouter,
ShellServerToolOpenRouterTypedDict,
)
from .stopservertoolswhencondition import (
StopServerToolsWhenCondition,
StopServerToolsWhenConditionTypedDict,
)
from .storedprompttemplate import StoredPromptTemplate, StoredPromptTemplateTypedDict
from .textextendedconfig import TextExtendedConfig, TextExtendedConfigTypedDict
from .traceconfig import TraceConfig, TraceConfigTypedDict
from .webfetchplugin import WebFetchPlugin, WebFetchPluginTypedDict
from .webfetchservertool import WebFetchServerTool, WebFetchServerToolTypedDict
from .websearchplugin import WebSearchPlugin, WebSearchPluginTypedDict
from .websearchservertool import WebSearchServerTool, WebSearchServerToolTypedDict
from .websearchservertool_openrouter import (
@@ -86,9 +115,12 @@ ResponsesRequestPluginTypedDict = TypeAliasType(
Union[
ModerationPluginTypedDict,
ResponseHealingPluginTypedDict,
AutoRouterPluginTypedDict,
FileParserPluginTypedDict,
ContextCompressionPluginTypedDict,
ParetoRouterPluginTypedDict,
AutoRouterPluginTypedDict,
WebFetchPluginTypedDict,
FusionPluginTypedDict,
WebSearchPluginTypedDict,
],
)
@@ -99,9 +131,12 @@ ResponsesRequestPlugin = Annotated[
Annotated[AutoRouterPlugin, Tag("auto-router")],
Annotated[ContextCompressionPlugin, Tag("context-compression")],
Annotated[FileParserPlugin, Tag("file-parser")],
Annotated[FusionPlugin, Tag("fusion")],
Annotated[ModerationPlugin, Tag("moderation")],
Annotated[ParetoRouterPlugin, Tag("pareto-router")],
Annotated[ResponseHealingPlugin, Tag("response-healing")],
Annotated[WebSearchPlugin, Tag("web")],
Annotated[WebFetchPlugin, Tag("web-fetch")],
],
Discriminator(lambda m: get_discriminator(m, "id", "id")),
]
@@ -179,22 +214,28 @@ class ResponsesRequestToolFunction(BaseModel):
ResponsesRequestToolUnionTypedDict = TypeAliasType(
"ResponsesRequestToolUnionTypedDict",
Union[
ApplyPatchServerToolTypedDict,
CodexLocalShellToolTypedDict,
ApplyPatchServerToolTypedDict,
ShellServerToolTypedDict,
WebSearchServerToolOpenRouterTypedDict,
ChatSearchModelsServerToolTypedDict,
ImageGenerationServerToolOpenRouterTypedDict,
WebFetchServerToolTypedDict,
ShellServerToolOpenRouterTypedDict,
BashServerToolTypedDict,
CodeInterpreterServerToolTypedDict,
ApplyPatchServerToolOpenRouterTypedDict,
WebSearchServerToolOpenRouterTypedDict,
ImageGenerationServerToolOpenRouterTypedDict,
FusionServerToolOpenRouterTypedDict,
DatetimeServerToolTypedDict,
ComputerUseServerToolTypedDict,
AdvisorServerToolOpenRouterTypedDict,
CustomToolTypedDict,
ComputerUseServerToolTypedDict,
ResponsesRequestToolFunctionTypedDict,
FileSearchServerToolTypedDict,
WebSearchServerToolTypedDict,
LegacyWebSearchServerToolTypedDict,
Preview20250311WebSearchServerToolTypedDict,
PreviewWebSearchServerToolTypedDict,
Preview20250311WebSearchServerToolTypedDict,
LegacyWebSearchServerToolTypedDict,
WebSearchServerToolTypedDict,
McpServerToolTypedDict,
ImageGenerationServerToolTypedDict,
],
@@ -219,14 +260,20 @@ ResponsesRequestToolUnion = Annotated[
Annotated[ShellServerTool, Tag("shell")],
Annotated[ApplyPatchServerTool, Tag("apply_patch")],
Annotated[CustomTool, Tag("custom")],
Annotated[AdvisorServerToolOpenRouter, Tag("openrouter:advisor")],
Annotated[DatetimeServerTool, Tag("openrouter:datetime")],
Annotated[FusionServerToolOpenRouter, Tag("openrouter:fusion")],
Annotated[
ImageGenerationServerToolOpenRouter, Tag("openrouter:image_generation")
],
Annotated[
ChatSearchModelsServerTool, Tag("openrouter:experimental__search_models")
],
Annotated[WebFetchServerTool, Tag("openrouter:web_fetch")],
Annotated[WebSearchServerToolOpenRouter, Tag("openrouter:web_search")],
Annotated[ApplyPatchServerToolOpenRouter, Tag("openrouter:apply_patch")],
Annotated[BashServerTool, Tag("openrouter:bash")],
Annotated[ShellServerToolOpenRouter, Tag("openrouter:shell")],
],
Discriminator(lambda m: get_discriminator(m, "type", "type")),
]
@@ -236,6 +283,8 @@ class ResponsesRequestTypedDict(TypedDict):
r"""Request schema for Responses endpoint"""
background: NotRequired[Nullable[bool]]
cache_control: NotRequired[AnthropicCacheControlDirectiveTypedDict]
r"""Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models."""
frequency_penalty: NotRequired[Nullable[float]]
image_config: NotRequired[Dict[str, ImageConfigTypedDict]]
r"""Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details."""
@@ -265,7 +314,9 @@ class ResponsesRequestTypedDict(TypedDict):
safety_identifier: NotRequired[Nullable[str]]
service_tier: NotRequired[Nullable[ResponsesRequestServiceTier]]
session_id: NotRequired[str]
r"""A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters."""
r"""A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters."""
stop_server_tools_when: NotRequired[List[StopServerToolsWhenConditionTypedDict]]
r"""Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`."""
store: Literal[False]
stream: NotRequired[bool]
temperature: NotRequired[Nullable[float]]
@@ -288,6 +339,9 @@ class ResponsesRequest(BaseModel):
background: OptionalNullable[bool] = UNSET
cache_control: Optional[AnthropicCacheControlDirective] = None
r"""Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models."""
frequency_penalty: OptionalNullable[float] = UNSET
image_config: Optional[Dict[str, ImageConfig]] = None
@@ -345,7 +399,10 @@ class ResponsesRequest(BaseModel):
] = "auto"
session_id: Optional[str] = None
r"""A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters."""
r"""A unique identifier for grouping related requests (e.g., a conversation or agent workflow). When provided, OpenRouter uses it as the sticky routing key, routing all requests in the session to the same provider to maximize prompt cache hits. Also used for observability grouping. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters."""
stop_server_tools_when: Optional[List[StopServerToolsWhenCondition]] = None
r"""Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`."""
STORE: Annotated[
Annotated[Optional[Literal[False]], AfterValidator(validate_const(False))],
@@ -384,6 +441,7 @@ class ResponsesRequest(BaseModel):
def serialize_model(self, handler):
optional_fields = [
"background",
"cache_control",
"frequency_penalty",
"image_config",
"include",
@@ -406,6 +464,7 @@ class ResponsesRequest(BaseModel):
"safety_identifier",
"service_tier",
"session_id",
"stop_server_tools_when",
"store",
"stream",
"temperature",