diff --git a/examples/python/agency-swarm/basic.py b/examples/python/agency-swarm/basic.py new file mode 100644 index 0000000..c84081a --- /dev/null +++ b/examples/python/agency-swarm/basic.py @@ -0,0 +1,20 @@ +from openai import OpenAI +from astra_assistants import patch +from agency_swarm import Agent, Agency, set_openai_client +from dotenv import load_dotenv + +load_dotenv("./.env") +load_dotenv("../../../.env") + +client = patch(OpenAI()) + +set_openai_client(client) + +ceo = Agent(name="CEO", + description="Responsible for client communication, task planning, and management.", + instructions="Please communicate with users and other agents.", + model="anthropic/claude-3-haiku-20240307", + files_folder="./examples/python/agency-swarm/files", + tools=[]) + +agency = Agency([ceo]) \ No newline at end of file diff --git a/examples/python/agency-swarm/files/language_models_are_unsupervised_multitask_learners_65f9baa0-c9f9-be58-955b-a937382dd0dd.pdf b/examples/python/agency-swarm/files/language_models_are_unsupervised_multitask_learners_65f9baa0-c9f9-be58-955b-a937382dd0dd.pdf new file mode 100644 index 0000000..b714945 Binary files /dev/null and b/examples/python/agency-swarm/files/language_models_are_unsupervised_multitask_learners_65f9baa0-c9f9-be58-955b-a937382dd0dd.pdf differ