This release is a pre-release and may not be stable for production use.
kcastle-agent
A minimal OpenAI Responses Agent core with optional harness infrastructure.
from openai import AsyncOpenAI
from pathlib import Path
from kagent import Agent, Session
session = Session.create(Path.home() / ".kcastle" / "sessions")
agent = Agent(
client=AsyncOpenAI(),
model="gpt-5.6-sol",
instructions="You are a helpful agent.",
state=session.state,
commit=session.commit,
)
async for event in agent.run("Hello"):
print(event)
Agent is the brain: it owns causal State, the loop, steering, follow-ups, cancellation, events,
and compaction. kagent.harness surrounds it with Session persistence, an explicit Env, and
executable ToolRuntime adapters. User interfaces render events and provide approvals only.
When one model response contains multiple function calls, execute_tool may run concurrently;
custom executors must be safe for concurrent use.
Metadata
Release files for kcastle-agent 0.1.0a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kcastle_agent-0.1.0a5.tar.gz | 11.9 kB | Without provenance | Details for kcastle_agent-0.1.0a5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kcastle_agent-0.1.0a5-py3-none-any.whl | Python 3 | none | any | Details for kcastle_agent-0.1.0a5-py3-none-any.whl |
Total release size: 29.0 kB
Release files / kcastle_agent-0.1.0a5.tar.gz
| Download URL | kcastle_agent-0.1.0a5.tar.gz |
|---|---|
| Size | 11.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a85393208e8df64e0203203f09f576e66269e7e284be16ab7758ea54d5a7afe
|
|
BLAKE2b-256 checksum How to use checksums |
af439b776772c3643f4fc0f5b2d595499995598e3029f156471cf8531e05aa59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / kcastle_agent-0.1.0a5-py3-none-any.whl
| Download URL | kcastle_agent-0.1.0a5-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20156feb0cbf5e5ab894c6267308dc59e31919e8caebbd00e5e0cb128082514d
|
|
BLAKE2b-256 checksum How to use checksums |
4160ab8b0cd9f1c4ae64f2955c3c954978516265ee535526298ea971d2e60f05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for kcastle-agent 0.1.0a5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.