Skip to content

Implementing a tool that doesn't require the assistant to interpretate the results #701

Closed Answered by andreibondarev
fguillen asked this question in Q&A
Discussion options

You must be logged in to vote

@fguillen Are you expecting that the Chart tool would return an image that the LLM would then display back to the user?

It is hallucinating a chart attachment.

You can always tell it in the instructions to stop doing that, basically you want to tell it in the instructions how to behave.

Also, I don't know if I can skip (or if I should) the step of sending the function result back to the assistant for its interpretation.

You can return you'd like from the Tool, e.g.:

    def create_line_chart(data:)
      # Creating the line chart
      
      return true # or return("Successfully created the line chart")
    end

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fguillen
Comment options

@andreibondarev
Comment options

@fguillen
Comment options

Answer selected by fguillen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants