@@ -25,14 +25,14 @@ class ActOptions(BaseModel):
25
25
Attributes:
26
26
action (str): The action command to be executed by the AI.
27
27
variables: Optional[Dict[str, str]] = None
28
- modelName : Optional[AvailableModel] = None
29
- slowDomBasedAct : Optional[bool] = None
28
+ model_name : Optional[AvailableModel] = None
29
+ slow_dom_based_act : Optional[bool] = None
30
30
"""
31
31
32
32
action : str = Field (..., description = "The action command to be executed by the AI." )
33
33
variables : Optional [Dict [str , str ]] = None
34
- modelName : Optional [AvailableModel ] = None
35
- slowDomBasedAct : Optional [bool ] = None
34
+ model_name : Optional [AvailableModel ] = Field ( None , alias = "modelName" )
35
+ slow_dom_based_act : Optional [bool ] = Field ( None , alias = "slowDomBasedAct" )
36
36
37
37
38
38
class ActResult (BaseModel ):
@@ -56,25 +56,26 @@ class ExtractOptions(BaseModel):
56
56
57
57
Attributes:
58
58
instruction (str): Instruction specifying what data to extract using AI.
59
- modelName : Optional[AvailableModel] = None
59
+ model_name : Optional[AvailableModel] = None
60
60
selector: Optional[str] = None
61
- schemaDefinition (Union[Dict[str, Any], Type[BaseModel]]): A JSON schema or Pydantic model that defines the structure of the expected data.
61
+ schema_definition (Union[Dict[str, Any], Type[BaseModel]]): A JSON schema or Pydantic model that defines the structure of the expected data.
62
62
Note: If passing a Pydantic model, invoke its .model_json_schema() method to ensure the schema is JSON serializable.
63
- useTextExtract : Optional[bool] = None
63
+ use_text_extract : Optional[bool] = None
64
64
"""
65
65
66
66
instruction : str = Field (
67
67
..., description = "Instruction specifying what data to extract using AI."
68
68
)
69
- modelName : Optional [AvailableModel ] = None
69
+ model_name : Optional [AvailableModel ] = Field ( None , alias = "modelName" )
70
70
selector : Optional [str ] = None
71
- # IMPORTANT: If using a Pydantic model for schemaDefinition , please call its .model_json_schema() method
71
+ # IMPORTANT: If using a Pydantic model for schema_definition , please call its .model_json_schema() method
72
72
# to convert it to a JSON serializable dictionary before sending it with the extract command.
73
- schemaDefinition : Union [Dict [str , Any ], Type [BaseModel ]] = Field (
73
+ schema_definition : Union [Dict [str , Any ], Type [BaseModel ]] = Field (
74
74
default = DEFAULT_EXTRACT_SCHEMA ,
75
75
description = "A JSON schema or Pydantic model that defines the structure of the expected data." ,
76
+ alias = "schemaDefinition" ,
76
77
)
77
- useTextExtract : Optional [bool ] = True
78
+ use_text_extract : Optional [bool ] = Field ( True , alias = "useTextExtract" )
78
79
79
80
class Config :
80
81
arbitrary_types_allowed = True
@@ -108,19 +109,19 @@ class ObserveOptions(BaseModel):
108
109
109
110
Attributes:
110
111
instruction (str): Instruction detailing what the AI should observe.
111
- modelName : Optional[AvailableModel] = None
112
- onlyVisible : Optional[bool] = None
113
- returnAction : Optional[bool] = None
114
- drawOverlay : Optional[bool] = None
112
+ model_name : Optional[AvailableModel] = None
113
+ only_visible : Optional[bool] = None
114
+ return_action : Optional[bool] = None
115
+ draw_overlay : Optional[bool] = None
115
116
"""
116
117
117
118
instruction : str = Field (
118
119
..., description = "Instruction detailing what the AI should observe."
119
120
)
120
- onlyVisible : Optional [bool ] = False
121
- modelName : Optional [AvailableModel ] = None
122
- returnAction : Optional [bool ] = None
123
- drawOverlay : Optional [bool ] = None
121
+ only_visible : Optional [bool ] = Field ( False , alias = "onlyVisible" )
122
+ model_name : Optional [AvailableModel ] = Field ( None , alias = "modelName" )
123
+ return_action : Optional [bool ] = Field ( None , alias = "returnAction" )
124
+ draw_overlay : Optional [bool ] = Field ( None , alias = "drawOverlay" )
124
125
125
126
126
127
class ObserveResult (BaseModel ):
@@ -132,7 +133,7 @@ class ObserveResult(BaseModel):
132
133
description : str = Field (
133
134
..., description = "The description of the observed element."
134
135
)
135
- backendNodeId : Optional [int ] = None
136
+ backend_node_id : Optional [int ] = Field ( None , alias = "backendNodeId" )
136
137
method : Optional [str ] = None
137
138
arguments : Optional [List [str ]] = None
138
139
0 commit comments