File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 77from 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
1215from ..handlers .cua_handler import CUAHandler
1316from ..types .agent import (
You can’t perform that action at this time.
0 commit comments