Skip to content

Commit

Permalink
agency-swarm example
Browse files Browse the repository at this point in the history
  • Loading branch information
phact committed Jun 13, 2024
1 parent cb49272 commit 245da5b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/python/agency-swarm/basic.py
Original file line number Diff line number Diff line change
@@ -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])
Binary file not shown.

0 comments on commit 245da5b

Please sign in to comment.