KRIM SDK
Programmable coding agent core. Build custom AI agents with ease.
Installation
pip install krim-sdk
Supported model backends:
- Claude
- OpenAI
- OpenRouter
Quick Start
from krim_sdk import Agent, AgentOptions
from krim_sdk.models import ClaudeModel
from krim_sdk.tools import default_tools
# Create agent
agent = Agent(
model=ClaudeModel(),
provider="claude",
system_prompt="You are a helpful coding assistant.",
tools=default_tools(),
)
# Run
result = agent.run("Hello!")
print(agent.last_response)
OpenRouter Example
from krim_sdk import Agent
from krim_sdk.models import OpenRouterModel
from krim_sdk.tools import default_tools
agent = Agent(
model=OpenRouterModel("minimax/minimax-m2.5"),
provider="openrouter",
system_prompt="You are a helpful coding assistant.",
tools=default_tools(),
)
Custom Tools
from krim_sdk import Tool
class MyTool(Tool):
name = "my_tool"
description = "Does something useful"
parameters = {
"input": {"type": "string", "description": "Input data"},
}
def run(self, input: str) -> str:
return f"Processed: {input}"
Event Handling
from krim_sdk import Agent, EventHandler
class MyHandler(EventHandler):
def on_stream(self, text: str) -> None:
print(text, end="", flush=True)
def on_tool_start(self, name: str, args: dict) -> None:
print(f"\nRunning {name}...")
agent = Agent(
model=model,
system_prompt=prompt,
tools=tools,
event_handler=MyHandler(),
)
License
MIT
Metadata
Release files for krim-sdk 0.4.7
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 |
|---|---|---|---|---|
| krim_sdk-0.4.7.tar.gz | 39.7 kB | Without provenance | Details for krim_sdk-0.4.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| krim_sdk-0.4.7-py3-none-any.whl | Python 3 | none | any | Details for krim_sdk-0.4.7-py3-none-any.whl |
Total release size: 84.0 kB
Release files / krim_sdk-0.4.7.tar.gz
| Download URL | krim_sdk-0.4.7.tar.gz |
|---|---|
| Size | 39.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d330f1551fd32869f0f2ada47bfddb7d8d213bb0e2f08e1cc57b40404a35c49
|
|
BLAKE2b-256 checksum How to use checksums |
d2ce917ab43447560082c00d3782e258fd7f13008bd0e615311ba3c9138d6b86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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}
|
Release files / krim_sdk-0.4.7-py3-none-any.whl
| Download URL | krim_sdk-0.4.7-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90bec769b9b44b3fc7e309925d5936cf9e5e4646f60cb7166a2b82b3646c0b82
|
|
BLAKE2b-256 checksum How to use checksums |
00076c00b65a1e7bd2b112a1a0e5b1418ec78e2eefbd858b5c2ada8f20d52417
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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}
|
Security for krim-sdk 0.4.7
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.