This project is an implementation of AutoGen to emulate the population health functions within a health system.
The end goal of the project is to develop an outreach plan for specific conditions, as inputed by the user. There are a number of team members involved in the project to complete this task.
- Hospital Administration / Planner
- Epidemiologist
- Data Analyst
- Outreach coordinator
The agents interact as follows:
flowchart LR;
A(User) --> B(Planner);
B <--> C(Critic);
B --> D(Epidemiologist);
D --> E(Data Analyst);
F <--> H[(FHIR Server)];
E <-- 1 --> F(Code Executor)
E -- 2 --> G(Outreach Coordinator);
G --> I((out.csv));
More details can be found in my Medium Article.
In order to run the code locally, you need to create the following files:
- OAI_CONFIG_LIST
- .env
The contents of OAI_CONFIG_LIST are:
[
{
"model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
"api_key": "xxxxxxxxxxxxxxxxxxxx",
"base_url": "https://api.deepinfra.com/v1/openai"
},
{
"model": "gpt-4",
"api_key": "xxxxxxxxxxxxxxxxxxxxxxx"
}
]
The contents of .env file are:
OPENAI_API_KEY=xxxxxxxxxxxxxxxxx