Skip to main content

Respan exporter for Agno traces

Project description

Keywords AI Exporter for Agno

Installation

pip install keywordsai-exporter-agno

Usage

import os
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from keywordsai_exporter_agno import KeywordsAIAgnoInstrumentor

KeywordsAIAgnoInstrumentor().instrument(api_key="your-keywordsai-api-key")

agent = Agent(
    name="Example Agent",
    model=OpenAIChat(id="gpt-4o-mini", api_key=os.getenv("OPENAI_API_KEY")),
)
agent.run("hello from agno")

Gateway Calls (optional)

import os
from agno.agent import Agent
from agno.models.openai import OpenAIChat

gateway_base_url = os.getenv(
    "KEYWORDSAI_GATEWAY_BASE_URL",
    "https://api.keywordsai.co/api",
)
agent = Agent(
    name="Gateway Agent",
    model=OpenAIChat(
        id="gpt-4o-mini",
        api_key=os.getenv("KEYWORDSAI_API_KEY"),
        base_url=gateway_base_url,
    ),
)
agent.run("hello from KeywordsAI gateway")

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

respan_exporter_agno-1.0.0.tar.gz (11.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_exporter_agno-1.0.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file respan_exporter_agno-1.0.0.tar.gz.

File metadata

  • Download URL: respan_exporter_agno-1.0.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.8 Darwin/25.2.0

File hashes

Hashes for respan_exporter_agno-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7aae599c625d8cd824a2858d01242cbe6656059fb5b6c62efe71d9ccd843082d
MD5 34eba81044d453981fe6c6665377707b
BLAKE2b-256 8703ed8e4e7123f42fc0566f721dcb3bcbc6d81ffde06f783cd443f1c2742b17

See more details on using hashes here.

File details

Details for the file respan_exporter_agno-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for respan_exporter_agno-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11532b8351311b8bd75d9c35914deb66f41749386eba22a30632e902003998ac
MD5 926c93704827d0c298e0af09af5ea056
BLAKE2b-256 0e0e20ded561e01c36d68266f246d80e3dcaef21adfb46b527221c51a95f20dd

See more details on using hashes here.

Supported by

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