Get started with AgentOps in minutes with just 2 lines of code for basic monitoring, and explore powerful decorators for custom tracing.
npx mint-mcp add agentops
python-dotenv
for easy API key management.
import agentops
to your script.agentops.init()
with your API key..env
file, make sure load_dotenv()
is called before agentops.init()
.
@operation
@agent
@agent
decorator on the class and @operation
on its methods to group all downstream operations under that agent’s context.
@tool
@trace
or manual)@trace
decorator or manage traces manually for more complex scenarios.
auto_start_session=False
in agentops.init()
, you must use @trace
or agentops.start_trace()
for any data to be recorded.