Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/stagehand/types/session_observe_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
from __future__ import annotations

from typing import Dict, Union, Optional
from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict
from typing_extensions import Literal, Required, Annotated, TypedDict
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated

from .._utils import PropertyInfo
from .model_config_param import ModelConfigParam

__all__ = [
"SessionObserveParamsBase",
"Options",
"OptionsModel",
"OptionsVariables",
"OptionsVariablesUnionMember3",
"SessionObserveParamsNonStreaming",
Expand All @@ -31,10 +30,6 @@ class SessionObserveParamsBase(TypedDict, total=False):
x_stream_response: Annotated[Literal["true", "false"], PropertyInfo(alias="x-stream-response")]
"""Whether to stream the response via SSE"""


OptionsModel: TypeAlias = Union[ModelConfigParam, str]


class OptionsVariablesUnionMember3(TypedDict, total=False):
value: Required[Union[str, float, bool]]

Expand Down
6 changes: 1 addition & 5 deletions src/stagehand/types/session_start_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@

class SessionStartParams(TypedDict, total=False):
model_name: Required[Annotated[str, PropertyInfo(alias="modelName")]]
"""Model name to use for AI operations.

Always use the format 'provider/model-name' (e.g., 'openai/gpt-4o',
'anthropic/claude-sonnet-4-5-20250929', 'google/gemini-2.0-flash')
"""
"""Model name to use for AI operations"""

act_timeout_ms: Annotated[float, PropertyInfo(alias="actTimeoutMs")]
"""Timeout in ms for act operations (deprecated, v2 only)"""
Expand Down
Loading