@@ -52,18 +52,19 @@ def tracer(self) -> Optional[trace.Tracer]:
5252 return self ._tracer
5353
5454 def action_context (self , anonymous_id : str , user_id : Optional [str ] = None , ** kwargs : Any ) -> Any :
55- """
56- Create an action context for sending multiple actions.
57- """
58- return ActionContext (emitter = self .actions_emitter , anonymous_id = anonymous_id , user_id = user_id , ** kwargs )
55+ """Create an action context for sending multiple actions."""
56+ return ActionContext (
57+ emitter = self .actions_emitter ,
58+ anonymous_id = anonymous_id ,
59+ user_id = user_id ,
60+ ** kwargs ,
61+ )
5962
6063 def action (self ) -> ActionEmitter :
6164 return self .actions_emitter
6265
63- async def initialize (self ):
64- """
65- Initialize tracer, actions_emitter, and fetch agent context (organization, workspace, agent name) from backend.
66- """
66+ async def initialize (self ) -> None :
67+ """Initialize tracer, actions_emitter, and fetch agent context from backend."""
6768 agent_info = await self ._api_client .get_agent_info ()
6869 self .organization_id = agent_info .get ("organization_id" , "unknown" )
6970 self .workspace_id = agent_info .get ("workspace_id" , "unknown" )
@@ -127,18 +128,19 @@ def tracer(self) -> Optional[trace.Tracer]:
127128 return self ._tracer
128129
129130 def action_context (self , anonymous_id : str , user_id : Optional [str ] = None , ** kwargs : Any ) -> Any :
130- """
131- Create an action context for sending multiple actions.
132- """
133- return ActionContext (emitter = self .actions_emitter , anonymous_id = anonymous_id , user_id = user_id , ** kwargs )
131+ """Create an action context for sending multiple actions."""
132+ return ActionContext (
133+ emitter = self .actions_emitter ,
134+ anonymous_id = anonymous_id ,
135+ user_id = user_id ,
136+ ** kwargs ,
137+ )
134138
135139 def action (self ) -> ActionEmitter :
136140 return self .actions_emitter
137141
138- def initialize (self ):
139- """
140- Initialize tracer, actions_emitter, and fetch agent context (organization, workspace, agent name) from backend.
141- """
142+ def initialize (self ) -> None :
143+ """Initialize tracer, actions_emitter, and fetch agent context from backend."""
142144 agent_info = self ._api_client .get_agent_info ()
143145 self .organization_id = agent_info .get ("organization_id" , "unknown" )
144146 self .workspace_id = agent_info .get ("workspace_id" , "unknown" )
0 commit comments