Spaces:
Running
Running
Update agents.py
Browse files
agents.py
CHANGED
@@ -10,11 +10,14 @@ from utils import function_to_schema
|
|
10 |
|
11 |
MODEL = "gpt-4o-mini"
|
12 |
|
13 |
-
_assistant = None
|
14 |
|
15 |
def set_current_agent(agent):
|
16 |
_assistant = agent
|
17 |
|
|
|
|
|
|
|
18 |
def create_triage_agent(client):
|
19 |
return client.beta.assistants.create(
|
20 |
name="Triage Agent",
|
|
|
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(
|
23 |
name="Triage Agent",
|