File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and 
1313# limitations under the License. 
1414
15+ import  logging 
1516import  signal 
1617from  threading  import  Event 
1718from  typing  import  List 
1819
1920from  rai .agents .base  import  BaseAgent 
2021
22+ logger  =  logging .getLogger (__name__ )
23+ 
2124
2225def  wait_for_shutdown (agents : List [BaseAgent ]):
2326    """Blocks execution until shutdown signal (SIGINT/SIGTERM) is received. 
@@ -50,6 +53,11 @@ def run_agents(agents: List[BaseAgent]):
5053    Args: 
5154        agents: List of agent instances 
5255    """ 
56+     logger .info (
57+         "run_agents is an experimental function. \  
58+ \ 
59+ 
60+     )
5361    for  agent  in  agents :
5462        agent .run ()
5563
@@ -63,8 +71,14 @@ class AgentRunner:
6371
6472    def  __init__ (self , agents : List [BaseAgent ]):
6573        self .agents  =  agents 
74+         self .logger  =  logging .getLogger (__name__ )
6675
6776    def  run (self ):
77+         self .logger .info (
78+             f"{ self .__class__ .__name__ } { self .run .__name__ } \  
79+ \ 
80+ 
81+         )
6882        for  agent  in  self .agents :
6983            agent .run ()
7084
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments