Find answers from the community

Home
Members
victormimo
v
victormimo
Offline, last seen 3 months ago
Joined September 25, 2024
v
victormimo
·

Images

Has anyone tried building an OpenAIAssistantAgent with code-interpreter to generate charts?

doing something like
Plain Text
response = agent.chat(""" 
    I have a company with 10 shareholders, each with 20,000,000 shares. Can you calculate the ownership % of each and display it in a pie chart?
""")
print(response)


results in
Plain Text
The ownership percentage for each of the 10 shareholders, who each have 20,000,000 shares, has been calculated and is displayed in the pie chart below. Each shareholder holds 10% of the company.

![Ownership Percentage of Each Shareholder](sandbox:/mnt/data/shareholders_ownership_pie_chart.png)


It's unclear to me how to access the image. If I used Open AI's API directly, I'd be able to get the image bytes.
4 comments
v
L
Hi all, I'm creating my own BaseToolSpec class and I'm wondering if anyone has bumped into the issue where you want to validate user data from the prompt prior to calling a function.

In this way, the agent would first confirm the structure of the data with the user before calling the correct function of the BaseToolSpec
2 comments
v
r
hey guys, I love this notebook example from Jerry

https://colab.research.google.com/drive/18aCO8CKoENkPfdq-kTr3D6j5m5zOwR_n?usp=sharing#scrollTo=33d92b77-5975-4d18-a1e8-15aa028a55f5

To easily import OpenAPI and RequestToolSpec. However, with the release of OpenAIAssistants, I wonder if anyone has been able to get this flow to work with assistants.

for me, when I pass the tools to the assistant object it doesn't recognize the function toolspec. Anyone else run into this issue?
8 comments
v
k