Skip to content

Commit a258f9f

Browse files
committed
formatting
1 parent 2c2580b commit a258f9f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

stagehand/agent/google_cua.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ def _process_provider_response(
368368
try:
369369
# Directly construct the AgentActionType using the payload.
370370
# Pydantic will use the 'type' field in action_payload_dict to discriminate the Union.
371-
action_payload_for_agent_action_type = TypeAdapter(AgentActionType).validate_python(action_payload_dict)
371+
action_payload_for_agent_action_type = TypeAdapter(
372+
AgentActionType
373+
).validate_python(action_payload_dict)
372374

373375
agent_action = AgentAction(
374376
action_type=action_type_str, # This should match the 'type' in action_payload_dict

stagehand/agent/openai_cua.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
from openai import (
88
OpenAI as OpenAISDK, # Renamed to avoid conflict with a potential class name
99
)
10-
from pydantic import BaseModel, TypeAdapter # Ensure BaseModel is imported for isinstance check
10+
from pydantic import (
11+
BaseModel,
12+
TypeAdapter,
13+
) # Ensure BaseModel is imported for isinstance check
1114

1215
from ..handlers.cua_handler import CUAHandler
1316
from ..types.agent import (

0 commit comments

Comments
 (0)