33from __future__ import annotations
44
55from typing import Dict , Union , Optional
6- from typing_extensions import Literal , Required , Annotated , TypedDict
6+ from typing_extensions import Literal , Required , Annotated , TypeAlias , TypedDict
77
88from .._utils import PropertyInfo
99from .model_config_param import ModelConfigParam
1010
1111__all__ = [
1212 "SessionObserveParamsBase" ,
1313 "Options" ,
14+ "OptionsModel" ,
1415 "OptionsVariables" ,
1516 "OptionsVariablesUnionMember3" ,
1617 "SessionObserveParamsNonStreaming" ,
@@ -30,6 +31,10 @@ class SessionObserveParamsBase(TypedDict, total=False):
3031 x_stream_response : Annotated [Literal ["true" , "false" ], PropertyInfo (alias = "x-stream-response" )]
3132 """Whether to stream the response via SSE"""
3233
34+
35+ OptionsModel : TypeAlias = Union [ModelConfigParam , str ]
36+
37+
3338class OptionsVariablesUnionMember3 (TypedDict , total = False ):
3439 value : Required [Union [str , float , bool ]]
3540
@@ -40,11 +45,8 @@ class OptionsVariablesUnionMember3(TypedDict, total=False):
4045
4146
4247class Options (TypedDict , total = False ):
43- model : ModelConfigParam
44- """
45- Model name string with provider prefix (e.g., 'openai/gpt-5-nano',
46- 'anthropic/claude-4.5-opus')
47- """
48+ model : OptionsModel
49+ """Model configuration object or model name string (e.g., 'openai/gpt-5-nano')"""
4850
4951 selector : str
5052 """CSS selector to scope observation to a specific element"""
0 commit comments