File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11import httpx
22
3- from agentex import AsyncAgentex
3+ from agentex import AsyncAgentex , Agentex
44from agentex .lib .environment_variables import EnvironmentVariables
55from agentex .lib .utils .logging import make_logger
66
@@ -27,3 +27,9 @@ def create_async_agentex_client(**kwargs) -> AsyncAgentex:
2727 client = AsyncAgentex (** kwargs )
2828 client ._client .auth = EnvAuth ()
2929 return client
30+
31+
32+ def create_sync_agentex_client (** kwargs ) -> Agentex :
33+ client = Agentex (** kwargs )
34+ client ._client .auth = EnvAuth ()
35+ return client
Original file line number Diff line number Diff line change 11from typing import Any , Dict , override
22
33from agentex import Agentex , AsyncAgentex
4- from agentex .lib .adk .utils ._modules .client import create_async_agentex_client
4+ from agentex .lib .adk .utils ._modules .client import create_async_agentex_client , create_sync_agentex_client
55from agentex .lib .core .tracing .processors .tracing_processor_interface import (
66 AsyncTracingProcessor ,
77 SyncTracingProcessor ,
1212
1313class AgentexSyncTracingProcessor (SyncTracingProcessor ):
1414 def __init__ (self , config : AgentexTracingProcessorConfig ):
15- self .client = Agentex ()
15+ self .client = create_sync_agentex_client ()
1616
1717 @override
1818 def on_span_start (self , span : Span ) -> None :
You can’t perform that action at this time.
0 commit comments