Cohere models can now be tracked with AgentOps. Explore the Cohere API for more information.

Cohere’s LLM University is a great resource for learning about LLMs with a lot of hands on examples.

Cohere

First class support for Command-R-Plus

Steps to integrate Cohere with AgentOps

1

Install the AgentOps SDK

pip install agentops
2

Install the Cohere SDK

cohere>=5.4.0 is currently supported.

pip install cohere
3

Add 3 lines of code

Make sure to call agentops.init before calling any openai, cohere, crew, etc models.

import agentops
agentops.init(<INSERT YOUR API KEY HERE>)
co = cohere.Client()
...
# End of program (e.g. main.py)
agentops.end_session("Success") # Success|Fail|Indeterminate

Requires cohere>=5.4.0

Set your API key as an .env variable for easy access.

AGENTOPS_API_KEY=<YOUR API KEY>

Read more about environment variables in Advanced Configuration

4

Run your Agent

Execute your program and visit app.agentops.ai/drilldown to observe your Agent! πŸ•΅οΈ

After your run, AgentOps prints a clickable url to console linking directly to your session in the Dashboard

Clickable link to session

Full Examples

import cohere
import agentops

agentops.init(<INSERT YOUR API KEY HERE>)

co = cohere.Client()

chat = co.chat(
    message="Is it pronounced ceaux-hear or co-hehray?"
)

print(chat)

agentops.end_session('Success')