mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
31 lines
1.5 KiB
Python
31 lines
1.5 KiB
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from .advisorservertoolconfig import (
|
|
AdvisorServerToolConfig,
|
|
AdvisorServerToolConfigTypedDict,
|
|
)
|
|
from openrouter.types import BaseModel
|
|
from typing import Literal, Optional
|
|
from typing_extensions import NotRequired, TypedDict
|
|
|
|
|
|
AdvisorServerToolOpenRouterType = Literal["openrouter:advisor",]
|
|
|
|
|
|
class AdvisorServerToolOpenRouterTypedDict(TypedDict):
|
|
r"""OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor."""
|
|
|
|
type: AdvisorServerToolOpenRouterType
|
|
parameters: NotRequired[AdvisorServerToolConfigTypedDict]
|
|
r"""Configuration for one openrouter:advisor server tool entry."""
|
|
|
|
|
|
class AdvisorServerToolOpenRouter(BaseModel):
|
|
r"""OpenRouter built-in server tool: consults a higher-intelligence advisor model (any OpenRouter model) for guidance mid-generation and returns its response. The advisor may run as a sub-agent with its own tools. Include multiple entries to offer several named advisors; at most one entry may omit `name` to act as the default advisor."""
|
|
|
|
type: AdvisorServerToolOpenRouterType
|
|
|
|
parameters: Optional[AdvisorServerToolConfig] = None
|
|
r"""Configuration for one openrouter:advisor server tool entry."""
|