Skip to main content

respan-instrumentation-agentspec

Respan instrumentation plugin for AgentSpec (pyagentspec).

This package activates the upstream OpenInference AgentSpec span processor through Respan's OpenInference translator, so AgentSpec spans are exported through the same Respan OTLP pipeline used by Respan.

Installation

pip install respan-ai respan-instrumentation-agentspec "pyagentspec[langgraph]"

Usage

from pyagentspec.adapters.langgraph import AgentSpecLoader
from pyagentspec.agent import Agent
from pyagentspec.llms import OpenAiConfig
from respan import Respan
from respan_instrumentation_agentspec import AgentSpecInstrumentor

respan = Respan(
    app_name="agentspec-haiku-agent",
    instrumentations=[
        AgentSpecInstrumentor(workflow_name="agentspec_haiku_agent")
    ],
)

try:
    agent = Agent(
        name="haiku_assistant",
        description="A helpful assistant that writes haikus.",
        llm_config=OpenAiConfig(name="openai", model_id="gpt-4.1-nano"),
        system_prompt="You are a helpful assistant. Respond only with a haiku.",
    )

    langgraph_agent = AgentSpecLoader().load_component(agent)
    result = langgraph_agent.invoke(
        input={"messages": [{"role": "user", "content": "Write a haiku about tracing."}]}
    )

    print(result["messages"][-1].content)
finally:
    respan.shutdown()
    respan.flush()

Metadata

Release files for respan-instrumentation-agentspec 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for respan-instrumentation-agentspec 0.1.1
File Size Uploaded Provenance Actions
respan_instrumentation_agentspec-0.1.1.tar.gz 6.0 kB Without provenance Details for respan_instrumentation_agentspec-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-agentspec 0.1.1
File Interpreter ABI Platform Actions
respan_instrumentation_agentspec-0.1.1-py3-none-any.whl Python 3 none any Details for respan_instrumentation_agentspec-0.1.1-py3-none-any.whl

Total release size: 13.3 kB

Release files / respan_instrumentation_agentspec-0.1.1.tar.gz

Download URL respan_instrumentation_agentspec-0.1.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f082460ed805ade17cb6bce903447aeefac2c61692cb65adb93ec68f58bc2b67
BLAKE2b-256 checksum
How to use checksums
4dbb6efc83f4b2b649ce886360e0bfb67af433bdc2b1fe766e403bda8c154885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / respan_instrumentation_agentspec-0.1.1-py3-none-any.whl

Download URL respan_instrumentation_agentspec-0.1.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6de512086e4d3b118e7054751c6089f17241a78d15eca7faa3f5fe0981b2e02e
BLAKE2b-256 checksum
How to use checksums
b8526bed06bc7c0990734ce6ebd4f837d9b381b4eb3919b5358a17f10b0f4734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for respan-instrumentation-agentspec 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page