Instrumentation API¶
agentlightning.instrumentation.instrument_all()
¶
Instrument all the instrumentation libraries.
agentlightning.instrumentation.uninstrument_all()
¶
Uninstrument all the instrumentation libraries.
AgentOps LangChain¶
agentlightning.instrumentation.agentops_langchain
¶
AgentOps¶
agentlightning.instrumentation.agentops
¶
AgentOpsServerManager
¶
Manages a AgentOps local server to bypass the online service of AgentOps.
agentops_local_server()
¶
Returns a Flask app that can be used to test agentops integration. This server provides endpoints for token fetching and a catch-all endpoint.
instrument_agentops()
¶
Instrument agentops to capture token IDs. Automatically detects and uses the appropriate patching method based on the installed agentops version.
uninstrument_agentops()
¶
Uninstrument agentops to stop capturing token IDs.
LiteLLM¶
agentlightning.instrumentation.litellm
¶
LiteLLM instrumentations.
It's unclear whether or not this file is useful. It seems that LiteLLM owns its own telemetry from their own entrance