mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
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:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
0c735989c1
commit
0f116c9792
@@ -0,0 +1,39 @@
|
||||
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
||||
|
||||
from __future__ import annotations
|
||||
from .shellservertoolengine import ShellServerToolEngine
|
||||
from .shellservertoolenvironment import (
|
||||
ShellServerToolEnvironment,
|
||||
ShellServerToolEnvironmentTypedDict,
|
||||
)
|
||||
from openrouter.types import BaseModel
|
||||
from openrouter.utils import validate_open_enum
|
||||
from pydantic.functional_validators import PlainValidator
|
||||
from typing import Optional
|
||||
from typing_extensions import Annotated, NotRequired, TypedDict
|
||||
|
||||
|
||||
class ShellServerToolConfigTypedDict(TypedDict):
|
||||
r"""Configuration for the openrouter:shell server tool"""
|
||||
|
||||
engine: NotRequired[ShellServerToolEngine]
|
||||
r"""Which shell engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox."""
|
||||
environment: NotRequired[ShellServerToolEnvironmentTypedDict]
|
||||
r"""Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not."""
|
||||
sleep_after_seconds: NotRequired[int]
|
||||
r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 2592000 (30 days)."""
|
||||
|
||||
|
||||
class ShellServerToolConfig(BaseModel):
|
||||
r"""Configuration for the openrouter:shell server tool"""
|
||||
|
||||
engine: Annotated[
|
||||
Optional[ShellServerToolEngine], PlainValidator(validate_open_enum(False))
|
||||
] = None
|
||||
r"""Which shell engine to use. \"openrouter\" runs commands server-side in the OpenRouter sandbox. \"auto\" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox."""
|
||||
|
||||
environment: Optional[ShellServerToolEnvironment] = None
|
||||
r"""Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not."""
|
||||
|
||||
sleep_after_seconds: Optional[int] = None
|
||||
r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 2592000 (30 days)."""
|
||||
Reference in New Issue
Block a user