Multi-Agent Support
This is an example implementation of tracking operations from two separate agents First let’s install the required packages-
Create an environment variable in a .env file or other method. By default, the AgentOps
init()
function will look for an environment variable namedAGENTOPS_API_KEY
. Or… -
Replace
<your_agentops_key>
below and pass in the optionalapi_key
parameter to the AgentOpsinit(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!