You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to try to find a similar issue and didn't find one.
I searched the Marvin documentation for this issue.
Bug summary
Using marvin.beta.assistants.Retrieval marvin.beta.assistants.CodeInterpreter
in Assistant tools fails
Reproduction
frommarvin.betaimportAssistantfrommarvin.beta.assistantsimportpprint_messages, CodeInterpreterai=Assistant(name='Marvin', tools=[CodeInterpreter])
response=ai.say("Generate a plot of sin(x)")
# pretty-print the responsepprint_messages(response)
I would imagine a better solution would be to modify the Tool model so it does not include the "function" field and name it BaseTool, make RetrievalTool and CodeInterpreterTool inherit from BaseTool. Then create a Tool model that inherits from BaseTool and adds the "function" field
First check
Bug summary
Using
marvin.beta.assistants.Retrieval
marvin.beta.assistants.CodeInterpreter
in Assistant tools fails
Reproduction
Error
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: