Skip to main content

llama-index instrumentation agentops integration

Project description

LlamaIndex Callback Integration: Agentops

pip install llama-index-callbacks-agentops

To integrate AgentOps into your agent workflow, simply import and initialize an AgentOpsHandler, as demonstrated below. Note that all keyword arguments anticipated by AgentOps' AOClient can be provided to this client using the same keyword arguments in init().

You can initialize globally using

from llama_index.core import set_global_handler

set_global_handler("agentops", api_key="...")

or:

from llama_index.callbacks.agentops import AgentOpsHandler

AgentOpsHandler.init(api_key="...")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_callbacks_agentops-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page