How to track operations from multiple different agents
init()
function will look for an environment variable named AGENTOPS_API_KEY
. Or…
<your_agentops_key>
below and pass in the optional api_key
parameter to the AgentOps init(api_key=...)
function. Remember not to commit your API key to a public repo!
@agent
decorator. Any LLM calls that go through this class will now be tagged as agent calls in AgentOps.
Let’s use these agents!