codeinterpreter-api icon indicating copy to clipboard operation
codeinterpreter-api copied to clipboard

Use Additional Tools

Open sankethgadadinni opened this issue 2 years ago • 1 comments

async with CodeInterpreterSession(llm=llm, tools = [SimulatorTool()]) as session:

print("Code Interpreter Session started.")
prompt = '''
Simulate the sales, if unemployment_rate is 5.5, and fed_rate is 0.8? '''
user_request = prompt
files = [
File.from_path("/content/Final_Financial_Data_v2.csv"),]

response = await session.generate_response(user_request, files=files)

print(response)



why is the additional tools list is still empty even though I'm sending a tool here.

sankethgadadinni avatar Aug 18 '23 07:08 sankethgadadinni

I used additional_tools = [MyTool()] and it worked for me

YiruMu avatar Oct 13 '23 20:10 YiruMu