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.
  • Collects tools and tool rules via entry points.
  • Provides helpers to inspect provider tools and settings.

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.2.tar.gz (13.8 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.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kantan_agents-0.1.2.tar.gz
  • Upload date:
  • Size: 13.8 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.2.tar.gz
Algorithm Hash digest
SHA256 6bbfd931399c0b692107bfa2fa92d56aeec98be90e10fe2f3503f614afd7dd18
MD5 2ea4f40e7248be5299b32fd233f23d3a
BLAKE2b-256 7f0ff372b8cf886d7dfb53f15ed5956f515697b36f7261db182234578f7ef6bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kantan_agents-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 463d6dd01ef1215bc3aa4a33be31993a5b3f34c88c84720ffbe4807407f2f6cc
MD5 ed466f0cba8841b4e7ca8fa4863a901c
BLAKE2b-256 bb51f0ea21a730ea032168be4e1c0c1d280fa97d83c8fd4192e1c47d3b8f72d6

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