Add Cohere API agent #4
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for publishing Tool Sandbox! It's been a lot of fun to work with so far, and it's great to see your efforts open sourced.
It's noted in the paper that Cohere models are incapable of consuming tool responses, and the implementation therefore achieves a lower score. This isn't the case, however, as all versions of Command R and Command R+ (including those on HF) work well with tool responses.
My PR contains an agent that uses the Cohere hosted API, but it's also possible to use a locally hosted version together with our prompting guide. These prompts are also in our Langchain package.
The API agent in this PR is implemented in a similar fashion to other API based agents. My thinking was that it's simpler to use the hosted API version, but if the preference is to use the locally hosted version please let me know and I'd be happy to implement it.
When I ran these agents I got a score that approximately doubled - if desired I can share the score that my run of the agents achieved.