Skip to main content

Respan BeeAI Instrumentation

Respan instrumentation plugin for the BeeAI Framework.

The package wraps openinference-instrumentation-beeai with Respan's instrumentation lifecycle and registers Respan's OpenInference translator so BeeAI agent, workflow, tool, chat model, and embedding spans are exported through the Respan OTLP pipeline.

Install

pip install respan-ai respan-instrumentation-beeai beeai-framework

Usage

Initialize Respan before creating or running BeeAI Framework components.

import asyncio

from beeai_framework.agents.requirement import RequirementAgent
from beeai_framework.backend import ChatModel
from respan import Respan
from respan_instrumentation_beeai import BeeAIInstrumentor


async def main() -> None:
    respan = Respan(instrumentations=[BeeAIInstrumentor()])

    agent = RequirementAgent(
        llm=ChatModel.from_name("openai:gpt-4.1-nano"),
        role="friendly AI assistant",
        instructions="Answer clearly and concisely.",
    )
    response = await agent.run("Explain why observability matters for agents.")
    print(response.last_message.text)

    respan.flush()


if __name__ == "__main__":
    asyncio.run(main())

Any keyword arguments passed to BeeAIInstrumentor(...) are forwarded to the underlying OpenInference BeeAI instrumentor.

Download files

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

Source Distribution

respan_instrumentation_beeai-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

respan_instrumentation_beeai-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file respan_instrumentation_beeai-0.1.1.tar.gz.

File metadata

File hashes

Hashes for respan_instrumentation_beeai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8123a2945733ab60eb59e09bd9e9abb08ec42bcde26018b66e52e2c253a403bb
MD5 cc38f8b21a75f8f9f3f11ccb3ac2f2f5
BLAKE2b-256 4d22dc85f789210c4f05ccc87d5919f7fa0be621a766b077191ca9268b18d94e

See more details on using hashes here.

File details

Details for the file respan_instrumentation_beeai-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for respan_instrumentation_beeai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c653ef19d2865447b61b5a6cb3d13ad8983651af2512e7c82af84a006310d5b4
MD5 71f9a591d60174097cca1632d13084cf
BLAKE2b-256 3c779907d7c27a20b78dd69b4c2958aff7783ffa496a5c7e612a55b929308846

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

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