Skip to content

API Stability

Kirak follows semantic versioning. From 1.0.0, a minor or patch release does not rename, remove or change the behaviour of anything in the public API; that waits for the next major version.

The public API is what these docs describe:

  • The kirak package’s documented functions, classes, methods and decorators, at the import path the docs use (for example from kirak import user_context, from kirak.core.context import as_system, kirak.mcp("<name>").tool).
  • The extension points for custom providers and modules: the provider base classes, the register_provider functions and entry-point groups (Adding a Provider), the documented helpers on those base classes (for example PaymentProvider.claim_completion), and the conformance check kirak.core.providers.provider_problems / assert_provider_conforms.
  • The file formats and their JSON Schemas: kirak.json (and kirak.local.json), models/, agents/, mcp/ and the tools map.
  • The HTTP routes Kirak serves, with their request and response shapes (HTTP API Reference).
  • The CLI commands, their options and their --json output (CLI). kirak modules --json carries a catalog_format number that changes when its shape does.
  • Error codes and problem codes (Problem Codes).
  • Hook names and the payloads hooks receive (Hooks & Events).

Anything else under kirak.* is internal, even when its name has no leading underscore, and may change in any release. That includes the Python API behind the public files and commands, for example:

Internal Public way to get the same thing
kirak.catalog Python functions and dataclasses (OperationSpec, ParamSpec, …) kirak modules --json, kirak providers --json, kirak catalog --json
kirak.core.tool_declarations, kirak.core.operation_refs, kirak.core.param_check The tools map in agent and MCP files
kirak.core.model_schemas, kirak.core.route_operation /docs and openapi.json
kirak.core.access_levels The access key of agent and MCP files
kirak.validation Python functions kirak validate --json, kirak mcp inspect --json
kirak.ai.agent_definition, kirak.ai.mcp_toolsets The agent file format
The configure_* functions in kirak.core.base_module The matching kirak.json keys (hook_timeout_seconds, log_path, …)
kirak.auth.operations.get_current_user.resolve_caller / require_access kirak.Caller and kirak.auth.requires(level) in a custom route (Access Control)

Internal modules say so in their module docstring.