File tree Expand file tree Collapse file tree
packages/uipath-google-adk/samples/multi-agent-remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,33 +58,12 @@ class ReportOutput(BaseModel):
5858 code_snippet : str = Field (description = "A relevant Python code example" )
5959
6060
61- # --- Shared HTTP client with authorization ---
62- #
63- # UIPATH_ACCESS_TOKEN is used to authenticate requests to the remote A2A endpoints.
64- # Set it in your .env file before running.
61+ # UIPATH_ACCESS_TOKEN is set automatically by `uipath auth`
6562_access_token = os .environ .get ("UIPATH_ACCESS_TOKEN" , "" )
6663
67-
68- async def _log_request (request : httpx .Request ):
69- body = (request .content or b"" )[:4000 ]
70- print (
71- f">>> { request .method } { request .url } \n body={ body .decode (errors = 'replace' )} " ,
72- flush = True ,
73- )
74-
75-
76- async def _log_response (response : httpx .Response ):
77- await response .aread ()
78- print (
79- f"<<< { response .status_code } { response .request .url } \n body={ response .text [:4000 ]} " ,
80- flush = True ,
81- )
82-
83-
8464_http_client = httpx .AsyncClient (
8565 headers = {"Authorization" : f"Bearer { _access_token } " },
86- timeout = httpx .Timeout (120.0 ),
87- event_hooks = {"request" : [_log_request ], "response" : [_log_response ]},
66+ timeout = httpx .Timeout (300.0 ),
8867)
8968
9069_a2a_client_factory = A2AClientFactory (
You can’t perform that action at this time.
0 commit comments