Skip to main content

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 from vars dict
  • {{ 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)

Source distribution for exoclaw-tools-llm-call 0.3.0
File Size Uploaded
exoclaw_tools_llm_call-0.3.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exoclaw-tools-llm-call 0.3.0
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page