Skip to main content

kantan-agents is a thin, opinionated wrapper around the OpenAI Agents SDK that makes observability and evaluation “just happen” by default.

Project description

kantan-agents

kantan-agents is a thin, opinionated wrapper around the OpenAI Agents SDK that makes observability and evaluation "just happen" by default.

What it does

  • Re-exports the Agents SDK tracing API.
  • Provides an Agent wrapper that injects standardized Trace metadata.
  • Provides a minimal Prompt model for versioned instructions.
  • Injects Prompt metadata into Trace metadata when Prompt is used.
  • Stores recent input/output pairs in context history.
  • Supports output_dest to store structured output under a custom context key.
  • Supports structured outputs via output_type and a RUBRIC schema helper.
  • Supports handoffs between Agent instances.

Quick Start

from kantan_agents import Agent

agent = Agent(name="basic-agent", instructions="You are a helpful assistant.")
context = agent.run("Hello")
print(context["result"].final_output)

Async usage

from kantan_agents import Agent

agent = Agent(name="basic-agent", instructions="You are a helpful assistant.")
context = await agent.run_async("Hello")
print(context["result"].final_output)

Docs

  • docs/concept.md
  • docs/spec.md
  • docs/architecture.md
  • docs/plan.md
  • docs/tutorial.md
  • docs/usage.md

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

kantan_agents-0.1.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

kantan_agents-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kantan_agents-0.1.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for kantan_agents-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6288b3a796362e169ceff0a489b04c48191fa5f35d09f1f3d5731779db31c201
MD5 fe1e1d8f10b5b2fdb13eb5507dbe70d9
BLAKE2b-256 c3b5ff741afa5141acae81aebf3ec161a10de539fdae37c4f088c31747ed401e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kantan_agents-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for kantan_agents-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7277ef025214c1dd4a2ab9183aec39262bde14beac11fe1d0ccb2e89b5545bef
MD5 84c2582dc75992d00b91a2dd1a0ee324
BLAKE2b-256 7d548b17b9c9798aa837636a016e8283259448df630b0ad64178aaf28a7a42c4

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