exoclaw-tools-llm-call
Single-shot LLM call tool with Jinja2 templating for exoclaw.
No agent loop, no tools — just prompt in, text out. Use with batch for parallel cheap-model processing.
Usage
from exoclaw_tools_llm_call import LLMCallTool
llm_call = LLMCallTool(
provider=provider,
allowed_models=["haiku", "sonnet"],
default_model="haiku",
)
app = Exoclaw(tools=[llm_call, ...])
The agent can then call:
{
"prompt": "Feed: {{ feed_name }}\n\n{{ file(data_path) }}\n\nExtract interesting URLs as JSON.",
"vars": {"feed_name": "Simon Willison", "data_path": "/tmp/batch_abc/0.json"},
"model": "haiku",
"output": "/tmp/results/0.json"
}
Template features
{{ var }}— variable substitution fromvarsdict{{ file('/path/to/file') }}— inline file contents- All Jinja2 features: filters, conditionals, loops
Combined with batch
batch(tool="llm_call", items=[
{prompt: "...", vars: {data_path: "/tmp/feeds/0.json"}, model: "haiku", output: "/tmp/out/0.json"},
{prompt: "...", vars: {data_path: "/tmp/feeds/1.json"}, model: "haiku", output: "/tmp/out/1.json"},
...
])
93 cheap LLM calls in parallel. Main agent only sees the filtered output.
Release files for exoclaw-tools-llm-call 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| exoclaw_tools_llm_call-0.3.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exoclaw_tools_llm_call-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / exoclaw_tools_llm_call-0.3.0.tar.gz
| Download URL | exoclaw_tools_llm_call-0.3.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edc97c367a320e3e5b9bbef4bd8a697bd150f69bc7b806a64caee0fc4e546b93
|
|
BLAKE2b-256 checksum How to use checksums |
c736fdce69dda38506da6a3141ecdbc2ebd863246d9fa91e101cfcff78425d5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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":null}
|
Release files / exoclaw_tools_llm_call-0.3.0-py3-none-any.whl
| Download URL | exoclaw_tools_llm_call-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f946d48fd3e479bd308e0d4dace8b2f9d8ae7e62313f7b6a50d2166e338928a2
|
|
BLAKE2b-256 checksum How to use checksums |
884767d6ac6a28dd8e5163cd97c3420ab9f04585d34558ee1d03cb4a7ead8abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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":null}
|