Skip to main content

Cyvia Client SDK

Project description

Cyvia Client SDK

Lean Python client for sending agent traces to the Cyvia platform.

Environment

  • CYVIA_API_KEY (required): Bearer token for the tenant API key.
  • CYVIA_BASE_URL (optional): API base URL.

Usage (Claude Agent SDK)

import cyvia

with cyvia.CyviaClient(api_key, base_url=base_url) as http:
    trace = cyvia.Trace(
        http,
        adapter=cyvia.CLAUDE_AGENT_SDK,
        runtime=cyvia.CLAUDE_AGENT_SDK,
        agent_display_name="Weather agent",
        agent_description="Looks up weather via tools and summarizes the answer.",
    )
    cyvia.observe(claude_client, trace)
    await claude_client.query("...")
    async for msg in claude_client.receive_response():
        ...

Usage (LangChain)

import cyvia

with cyvia.CyviaClient(api_key, base_url=base_url) as http:
    trace = cyvia.Trace(
        http,
        adapter=cyvia.LANGCHAIN,
        runtime=cyvia.LANGCHAIN,
        agent_display_name="My agent",
    )
    handler = cyvia.LangChainCallbackHandler(trace)
    try:
        model.invoke("Hello", config={"callbacks": [handler]})
    finally:
        trace.close()

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

cyvia-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

cyvia-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file cyvia-0.1.0.tar.gz.

File metadata

  • Download URL: cyvia-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cyvia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3edf8916495dca3e8c08b8dbb655607e84fac9cd51580756b191adad246d6da2
MD5 5f925ad60996bbf595da31f944b31d3f
BLAKE2b-256 e8f0cd2f045de2b6839871b62a41e4de24728ef5e5002b30745db54b4921f014

See more details on using hashes here.

File details

Details for the file cyvia-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cyvia-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cyvia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5882ce9448225e385ac7fec0c51ed84ac904c72db11942a4e4eb5ccaddb30d9
MD5 4e1e88980cae0530dda37562d00b5881
BLAKE2b-256 262f772bc9dad14bb94db6b3b1e13a0f555b226ea3eb989f6035fb22d66934c8

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