KRIM Agent SDK - programmable coding agent core
Project description
KRIM SDK
Programmable coding agent core. Build custom AI agents with ease.
Installation
pip install krim-sdk
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)
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
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
krim_sdk-0.4.5.tar.gz
(38.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
krim_sdk-0.4.5-py3-none-any.whl
(43.7 kB
view details)
File details
Details for the file krim_sdk-0.4.5.tar.gz.
File metadata
- Download URL: krim_sdk-0.4.5.tar.gz
- Upload date:
- Size: 38.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82eb30ab25397870d25ad51d16960b3d915bd24e488786ebe05286f6f18e8a42
|
|
| MD5 |
2a9608939bbe02a7df1fe5debf1ca355
|
|
| BLAKE2b-256 |
2c43bd43f8d32d6667f401ca9823fbe83752c8c224020449622d11b2e648ab0f
|
File details
Details for the file krim_sdk-0.4.5-py3-none-any.whl.
File metadata
- Download URL: krim_sdk-0.4.5-py3-none-any.whl
- Upload date:
- Size: 43.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e18526289198b1ec02eee30d3c8b26ef6c251c543db9ab204d92152a8361f607
|
|
| MD5 |
e916ef335ae9141a3bcdc5963a62af21
|
|
| BLAKE2b-256 |
48e693ecac3988f3bbd40af34ab06b0eb79f68a7181be30090344e84f3e55730
|