forked from openai/swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
150 changed files
with
1,832 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "ff429110-2591-4762-98fc-7c9c1d8b74f6", "role": "user", "content": "What is the square root of 16?"}, {"task_id": "ff429110-2591-4762-98fc-7c9c1d8b74f6", "role": "assistant", "content": "Response to user: 4"}, {"task_id": "05f8eeac-3df6-4a43-a509-771061c11f0b", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "05f8eeac-3df6-4a43-a509-771061c11f0b", "role": "assistant", "content": "Selecting sub-assistant: help_center"}, {"task_id": "05f8eeac-3df6-4a43-a509-771061c11f0b", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "phone verification for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "05f8eeac-3df6-4a43-a509-771061c11f0b", "role": "assistant", "content": "The task failed because the tool execution to check if phone verification is required for new OpenAI account creation or ChatGPT usage did not complete successfully."}, {"task_id": "fc5dce7a-ef01-4364-977c-f9fea1c7e0a2", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "fc5dce7a-ef01-4364-977c-f9fea1c7e0a2", "role": "assistant", "content": "Selecting sub-assistant: help_center"}, {"task_id": "fc5dce7a-ef01-4364-977c-f9fea1c7e0a2", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens for new OpenAI account"}}}, {"task_id": "fc5dce7a-ef01-4364-977c-f9fea1c7e0a2", "role": "assistant", "content": "Error evaluating output"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "7bca3f49-d5f3-440b-a542-9bf03e85b646", "role": "user", "content": "What is the square root of 16?"}, {"task_id": "7bca3f49-d5f3-440b-a542-9bf03e85b646", "role": "assistant", "content": "Response to user: What is the square root of 16? The square root of 16 is 4."}, {"task_id": "61ee88cf-13fa-4dec-a1db-d71e86bd452e", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "61ee88cf-13fa-4dec-a1db-d71e86bd452e", "role": "assistant", "content": "Selecting sub-assistant: help_center"}, {"task_id": "61ee88cf-13fa-4dec-a1db-d71e86bd452e", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "7e16df75-de6c-499a-ae5f-64efd35e9092", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "7e16df75-de6c-499a-ae5f-64efd35e9092", "role": "assistant", "content": "Selecting sub-assistant: help_center"}, {"task_id": "7e16df75-de6c-499a-ae5f-64efd35e9092", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens for new OpenAI account"}}}, {"task_id": "7e16df75-de6c-499a-ae5f-64efd35e9092", "role": "user", "tool": {"tool": "submit_ticket", "args": {"description": "Inquiry about the number of free tokens received when signing up for a new OpenAI account."}}}, {"task_id": "7e16df75-de6c-499a-ae5f-64efd35e9092", "role": "user", "tool": {"tool": "send_email", "args": {"email_address": "[email protected]", "message": "We have submitted a ticket to inquire about the number of free tokens received when signing up for a new OpenAI account. We will update you with the answer as soon as we receive a response."}}}, {"task_id": "7e16df75-de6c-499a-ae5f-64efd35e9092", "role": "assistant", "content": "Tool send_email execution skipped by user."}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "89f4d472-5ff1-4ca0-aeb4-1d83d31ce12c", "role": "user", "content": "What is the square root of 16? Be verbose and return a paragraph about how to find square roots of numbers."}, {"task_id": "89f4d472-5ff1-4ca0-aeb4-1d83d31ce12c", "role": "assistant", "content": "Response to user: Just to clarify, you're asking about the square root of 16 and want a detailed explanation on how to find square roots in general. The square root of a number is a value that, when multiplied by itself, gives the original number. For example, the square root of 16 is 4 because 4 times 4 equals 16. To find the square root of a number, you can use various methods such as the prime factorization method, the long division method, or even a calculator for quicker results. The concept of square roots is essential in mathematics, especially in solving quadratic equations and in various applications within geometry and algebra."}, {"task_id": "f20170f4-a9e6-4f74-b034-9548bfe876a5", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "f20170f4-a9e6-4f74-b034-9548bfe876a5", "role": "assistant", "content": "Selecting sub-assistant: help_center"}, {"task_id": "f20170f4-a9e6-4f74-b034-9548bfe876a5", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "2ea438ae-0cc9-49f8-b2f8-dd4c8f84b654", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "2ea438ae-0cc9-49f8-b2f8-dd4c8f84b654", "role": "assistant", "content": "Selecting sub-assistant: help_center"}, {"task_id": "2ea438ae-0cc9-49f8-b2f8-dd4c8f84b654", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens for new OpenAI account"}}}, {"task_id": "2ea438ae-0cc9-49f8-b2f8-dd4c8f84b654", "role": "user", "tool": {"tool": "submit_ticket", "args": {"description": "Inquiring about the number of free tokens received when signing up for a new OpenAI account."}}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "1a3e25d8-603b-48ee-b781-8358a2da0b6d", "role": "user", "content": "What is the square root of 16? Be verbose and return a paragraph about how to find square roots of numbers."}, {"task_id": "0ade3928-9555-44fe-a9ac-78e28084ee23", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "1f2daf43-8b31-4838-8841-e3e2ab889119", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "f349bb9c-e304-4e38-88af-c2b0f26dabc0", "role": "user", "content": "What is the square root of 16? Be verbose and return a paragraph about how to find square roots of numbers."}, {"task_id": "a82ca81d-7cb4-4788-9d68-00cec07a24df", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "8c8629eb-b5ae-40ed-ab90-87fe2648788c", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}] |
1 change: 1 addition & 0 deletions
1
examples/customer_service_lite/logs/session_20240425-175026.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "c643ad15-58c1-4f35-85ec-3ebcd4201dae", "role": "user", "content": "What is the square root of 16?"}, {"task_id": "c643ad15-58c1-4f35-85ec-3ebcd4201dae", "role": "assistant", "content": "Response to user: 4"}, {"task_id": "3005a206-17db-4014-a0f2-39be1a7b2104", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "3005a206-17db-4014-a0f2-39be1a7b2104", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "3005a206-17db-4014-a0f2-39be1a7b2104", "role": "assistant", "content": "The task failed because the tool to query the documentation or perform the necessary steps did not execute successfully."}, {"task_id": "c953fb36-2e10-4a2a-aa5c-f85a1469d4c7", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "c953fb36-2e10-4a2a-aa5c-f85a1469d4c7", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens for new OpenAI account"}}}, {"task_id": "c953fb36-2e10-4a2a-aa5c-f85a1469d4c7", "role": "assistant", "content": "The task could not be completed because I am unable to send emails or access current OpenAI account sign-up benefits directly."}] |
1 change: 1 addition & 0 deletions
1
examples/customer_service_lite/logs/session_20240425-175112.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "8870de5c-b121-4d76-94c4-be39ff75823c", "role": "user", "content": "What is the square root of 16?"}, {"task_id": "8870de5c-b121-4d76-94c4-be39ff75823c", "role": "assistant", "content": "Response to user: 4"}, {"task_id": "8ded2126-0899-4bba-a136-36f9ddc003fd", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "8ded2126-0899-4bba-a136-36f9ddc003fd", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "8ded2126-0899-4bba-a136-36f9ddc003fd", "role": "assistant", "content": "The task failed because the system was unable to execute the necessary tool to determine if phone verification is required for new OpenAI account creation or ChatGPT usage."}, {"task_id": "a4c57692-d131-45b1-8ac8-69023d2b5d34", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "a4c57692-d131-45b1-8ac8-69023d2b5d34", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens for new OpenAI account"}}}, {"task_id": "a4c57692-d131-45b1-8ac8-69023d2b5d34", "role": "user", "tool": {"tool": "submit_ticket", "args": {"description": "Inquiring about the number of free tokens received when signing up for an OpenAI account."}}}, {"task_id": "a4c57692-d131-45b1-8ac8-69023d2b5d34", "role": "assistant", "content": "The task was to find out and communicate the number of free tokens given with a new OpenAI account. Although a ticket was created to inquire about this, the actual information was not obtained or relayed via email as requested."}] |
1 change: 1 addition & 0 deletions
1
examples/customer_service_lite/logs/session_20240425-175154.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "6312e707-31d2-45bb-9dcc-40cd48122046", "role": "user", "content": "What are the main organelles of the cell?"}, {"task_id": "6312e707-31d2-45bb-9dcc-40cd48122046", "role": "assistant", "content": "Response to user: First, please provide the context in which you need this information. Are you looking for the main organelles in animal cells, plant cells, or both? Additionally, is this for a specific level of study, such as high school biology or more advanced research?"}, {"task_id": "9585b92a-2406-432b-b620-f96fd6b19023", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "9585b92a-2406-432b-b620-f96fd6b19023", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "phone verification for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "9585b92a-2406-432b-b620-f96fd6b19023", "role": "assistant", "content": "The task failed because the tool execution to query documentation regarding phone verification for OpenAI account creation or ChatGPT usage failed."}, {"task_id": "a8a3dfff-e68b-4f66-b5c5-abc812af553d", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "a8a3dfff-e68b-4f66-b5c5-abc812af553d", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens sign up"}}}, {"task_id": "a8a3dfff-e68b-4f66-b5c5-abc812af553d", "role": "assistant", "content": "I am unable to send emails or access current information about OpenAI sign-up benefits, including free tokens."}] |
1 change: 1 addition & 0 deletions
1
examples/customer_service_lite/logs/session_20240425-175210.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"task_id": "e76c7fa7-9adb-44d4-87ae-76da09170916", "role": "user", "content": "What are the main organelles of the cell?"}, {"task_id": "e76c7fa7-9adb-44d4-87ae-76da09170916", "role": "assistant", "content": "Response to user: Unfortunately, I don't have the tools to directly provide educational content or answers to scientific questions. Please refer to a reliable scientific resource or educational platform for detailed information on cell organelles."}, {"task_id": "71910d21-81b4-42f7-a6de-4bcdbfb7b97f", "role": "user", "content": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}, {"task_id": "71910d21-81b4-42f7-a6de-4bcdbfb7b97f", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "Is phone verification required for new OpenAI account creation or ChatGPT usage"}}}, {"task_id": "71910d21-81b4-42f7-a6de-4bcdbfb7b97f", "role": "assistant", "content": "The task failed because the tool did not execute successfully, preventing the determination of whether phone verification is required for new OpenAI account creation or ChatGPT usage."}, {"task_id": "50487c71-51be-4de1-99da-b4451fc8d050", "role": "user", "content": "How many free tokens do I get when I sign up for an OpenAI account? Send an email to [email protected] containing that answer"}, {"task_id": "50487c71-51be-4de1-99da-b4451fc8d050", "role": "user", "tool": {"tool": "query_docs", "args": {"query": "free tokens for new OpenAI account"}}}, {"task_id": "50487c71-51be-4de1-99da-b4451fc8d050", "role": "user", "tool": {"tool": "submit_ticket", "args": {"description": "How many free tokens do I get when I sign up for an OpenAI account?"}}}, {"task_id": "50487c71-51be-4de1-99da-b4451fc8d050", "role": "assistant", "content": "The task was not successfully completed because the attempt to query documentation for the answer failed and the creation of a ticket does not directly provide the information requested."}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/src/threads/thread_data.json | ||
**/__pycache__/** | ||
**/threads/thread_data.json | ||
**/logs/session_* | ||
**/test_runs/test_* |
Empty file.
11 changes: 11 additions & 0 deletions
11
examples/customer_service_streaming/configs/assistants/user_interface/assistant.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
{ | ||
"model": "gpt-4-0125-preview", | ||
"description": "You are a user interface assistant that handles all interactions with the user. Call this assistant for general questions and when no other assistant is correct for the user query.", | ||
"log_flag": false, | ||
"tools":["query_docs", | ||
"submit_ticket", | ||
"send_email"], | ||
"planner": "sequential" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class Colors: | ||
HEADER = '\033[95m' | ||
OKBLUE = '\033[94m' | ||
OKCYAN = '\033[96m' | ||
OKGREEN = '\033[92m' | ||
WARNING = '\033[93m' | ||
RED = '\033[91m' | ||
ENDC = '\033[0m' | ||
BOLD = '\033[1m' | ||
UNDERLINE = '\033[4m' | ||
GREY = '\033[90m' | ||
|
||
test_root = 'tests' | ||
test_file = 'test_prompts.jsonl' | ||
tasks_path = 'configs/swarm_tasks.json' | ||
|
||
#Options are 'assistants' or 'local' | ||
engine_name = 'local' | ||
|
||
max_iterations = 5 | ||
|
||
persist = False |
Oops, something went wrong.