File size: 552 Bytes
92a86ff
97c9e71
92a86ff
 
97c9e71
 
 
 
 
 
92a86ff
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from agency_swarm import Agency
from agency_swarm import set_openai_key
from ExpertDataAnalyst import ExpertDataAnalyst
from SalesManagerCEO import SalesManagerCEO
from dotenv import load_dotenv
import os

load_dotenv('.env')
API_KEY = os.getenv('OPENAI_API_KEY')
set_openai_key(API_KEY)

salesManagerCEO = SalesManagerCEO()
expertDataAnalyst = ExpertDataAnalyst()

agency = Agency([salesManagerCEO, [salesManagerCEO, expertDataAnalyst]],
                shared_instructions='./agency_manifesto.md')

if __name__ == '__main__':
    agency.demo_gradio()