Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Update agents.py
Browse files
    	
        agents.py
    CHANGED
    
    | @@ -2,21 +2,13 @@ | |
| 2 |  | 
| 3 | 
             
            from openai import OpenAI
         | 
| 4 |  | 
| 5 | 
            -
            from  | 
| 6 | 
             
            from tools import escalate_to_human
         | 
| 7 | 
             
            from tools import execute_order, execute_refund, look_up_item
         | 
| 8 |  | 
| 9 | 
             
            from utils import function_to_schema
         | 
| 10 |  | 
| 11 | 
             
            MODEL = "gpt-4o-mini"
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            _assistant, _thread = None, None
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            def set_current_agent(agent):
         | 
| 16 | 
            -
                _assistant = agent
         | 
| 17 | 
            -
             | 
| 18 | 
            -
            def set_current_thread(thread):
         | 
| 19 | 
            -
                _thread = thread
         | 
| 20 |  | 
| 21 | 
             
            def create_triage_agent(client):
         | 
| 22 | 
             
                return client.beta.assistants.create(
         | 
|  | |
| 2 |  | 
| 3 | 
             
            from openai import OpenAI
         | 
| 4 |  | 
| 5 | 
            +
            from tools import transfer_to_sales_agent, transfer_to_issues_repairs_agent, transfer_to_triage_agent 
         | 
| 6 | 
             
            from tools import escalate_to_human
         | 
| 7 | 
             
            from tools import execute_order, execute_refund, look_up_item
         | 
| 8 |  | 
| 9 | 
             
            from utils import function_to_schema
         | 
| 10 |  | 
| 11 | 
             
            MODEL = "gpt-4o-mini"
         | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 12 |  | 
| 13 | 
             
            def create_triage_agent(client):
         | 
| 14 | 
             
                return client.beta.assistants.create(
         | 
