File size: 526 Bytes
9ac9d5e
 
 
 
 
 
 
 
 
 
 
 
 
a9182c5
9ac9d5e
 
11ae913
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
import pandas as pd
import requests
from smolagents import OpenAIServerModel, CodeAgent, InferenceClientModel
from smolagents.tools import tool
import markdownify

import prompts
import agents


def orchestrate(message, file_path):
    final_prompt = prompts.get_manager_prompt(message, file_path)
    initial_answer = agents.create_manager_agent(message).run(message)
    final_answer = agents.create_final_answer_agent(message).run(prompts.get_final_answer_prompt(message, initial_answer))

    return final_answer