Self-evolving tool registry for AI agents — runtime, compiler, and HTTP server.
Project description
kiln-registry-api
Kiln is a self-evolving tool registry for AI agents. Define a tool once (spec + Python impl), then call it from any framework — AG2, LangChain, Pydantic AI, Mistral, OpenAI tools, MCP, or plain HTTP. When a tool you need doesn't exist, the synthesis pipeline writes it for you and hot-loads it.
This package ships:
- The Kiln registry SDK — load/register/compile tools to your chosen framework.
- The Kiln HTTP server — production-ready FastAPI app the [
server] extra unlocks.
Install
SDK only (a few small deps):
pip install kiln-registry-api
Plus a target framework — install just what you need:
pip install "kiln-registry-api[langchain]" # LangChain StructuredTool
pip install "kiln-registry-api[ag2]" # AG2 / AutoGen
pip install "kiln-registry-api[pydantic_ai]" # Pydantic AI Tool
pip install "kiln-registry-api[mistral]" # Mistral function schema
pip install "kiln-registry-api[server]" # Run the FastAPI registry yourself
pip install "kiln-registry-api[all]" # Everything
Use a Kiln tool from your agent
from kiln_registry.runtime import KilnRuntime
runtime = KilnRuntime(target="langchain")
weather = runtime.get("com.kiln.tools.weather_forecast") # native StructuredTool
# Plug it into any LangChain agent:
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_openai import ChatOpenAI
agent = create_tool_calling_agent(ChatOpenAI(model="gpt-4o-mini"), [weather], prompt)
AgentExecutor(agent=agent, tools=[weather]).invoke({"input": "Will it rain in Singapore today?"})
The same one-liner works for AG2, Pydantic AI, and Mistral by switching the
target= argument. Or skip the SDK entirely and POST to /tools/{id}/execute
from any language.
Or call any tool over plain HTTP
curl -X POST https://your-kiln-host/tools/com.kiln.tools.weather_forecast/execute \
-H 'Authorization: Bearer YOUR_KILN_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"args": {"location": "Singapore"}}'
Get the integration snippet for any tool
The registry exposes a GET /tools/{id}/integrations endpoint that returns a
copy-pasteable code block for every supported framework — plus the JSON Schema
for the tool's arguments. The Kiln UI uses this to power the Integrations
tab on every tool page.
Run the registry yourself
pip install "kiln-registry-api[server]"
uvicorn kiln_registry.main:app --host 0.0.0.0 --port 8766
By default the registry loads every tool found under ./registry/tools/. Drop
in a spec.yaml + impl file and they appear on the next process start.
Repository
Source, examples, the synthesis pipeline, the chat console, and the MCP bridge all live in the monorepo at https://github.com/aryabyte21/kiln.
License
Apache 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file kiln_registry_api-1.0.0.tar.gz.
File metadata
- Download URL: kiln_registry_api-1.0.0.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbfaea8c4f160384b80b215fedbcb6b7d973b3b7e0c4439f27f3494248f649ce
|
|
| MD5 |
fb37899fb5d58e45570fc621e4e0e29b
|
|
| BLAKE2b-256 |
944dc62a14bb7850a35e97a69d4a81728086f490ba17aab614d4afc50d39903e
|
File details
Details for the file kiln_registry_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kiln_registry_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 51.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a5b8c62fb435f889e70ad626b133386179da67908a24e7331e9185506394396
|
|
| MD5 |
cd8e1fe68c2a43a11f5541e28647d238
|
|
| BLAKE2b-256 |
1a2eecf83acfb121356d6529cd9fbfe562c7389a9102bacf734ad178f8909c69
|