zeroclaw/src
Giulio V 2575edb1d2
feat(tools): add LLM task tool for structured JSON-only sub-calls (#4241)
* feat(tools): add LLM task tool for structured JSON-only sub-calls

Add LlmTaskTool — a lightweight tool that runs a single prompt through
an LLM provider with no tool access and optionally validates the
response against a caller-supplied JSON Schema. Ideal for structured
data extraction, classification, and transformation in workflows.

- Parameters: prompt (required), schema (optional JSON Schema),
  model (optional override), temperature (optional override)
- Uses configured default provider/model from root config
- Validates response JSON against schema (required fields, type checks)
- Strips markdown code fences from LLM responses before validation
- Gated by ToolOperation::Act security policy
- Registered in all_tools_with_runtime (always available)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: use non-constant value instead of approximate PI in tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: rareba <rareba@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:50:22 -04:00
..
agent feat(agent): add loop detection guardrail for repetitive tool calls (#4240) 2026-03-23 12:49:47 -04:00
approval fix(approval): merge default auto_approve entries with user config (#4262) 2026-03-22 14:28:09 -04:00
auth feat(auth): add import functionality for existing OpenAI Codex auth p… (#3762) 2026-03-21 06:49:44 -04:00
channels feat(agent): add loop detection guardrail for repetitive tool calls (#4240) 2026-03-23 12:49:47 -04:00
commands fix(update): use exact target triples in find_asset_url to prevent wrong binary selection (#4377) 2026-03-23 12:41:17 -04:00
config feat(agent): add loop detection guardrail for repetitive tool calls (#4240) 2026-03-23 12:49:47 -04:00
cost fix(channels): add cost tracking and enforcement to all channels (#4143) 2026-03-21 07:37:15 -04:00
cron feat: declarative cron job configuration (#4045) 2026-03-22 19:03:00 -04:00
daemon fix(heartbeat): prevent UTF-8 panic, add memory bounds and path validation in session context 2026-03-22 00:01:44 -04:00
doctor feat(tool): enrich delegate sub-agent system prompt and add skills_directory config key (#3344) 2026-03-21 07:53:02 -04:00
gateway fix(gateway): send error responses for unrecognized WebSocket message types (#3681) (#4381) 2026-03-23 12:33:23 -04:00
hands feat(hands): add autonomous knowledge-accumulating agent packages (#3603) 2026-03-15 16:06:14 -04:00
hardware fix(hardware): drain stdin in subprocess test to prevent broken pipe flake (#4161) 2026-03-21 12:19:53 -04:00
health refactor(sync): migrate remaining std mutex usage to parking_lot 2026-02-18 00:45:26 +08:00
heartbeat feat(heartbeat): add health metrics, adaptive intervals, and task history 2026-03-16 12:08:32 -04:00
hooks feat(hooks): add webhook-audit builtin hook (#3212) 2026-03-11 23:34:17 -04:00
integrations feat(matrix): add allowed_rooms config for room-level gating (#4230) (#4260) 2026-03-22 14:41:43 -04:00
memory feat(memory): restore time-decay scoring lost in main→master migration (#4274) 2026-03-22 19:01:40 -04:00
nodes feat(nodes): add secure HMAC-SHA256 node transport layer (#3654) 2026-03-16 01:53:47 -04:00
observability fix(observability): handle missing OtelObserver match arms and add all-features CI check (#3981) 2026-03-19 17:48:35 -04:00
onboard fix(channels): link enricher title extraction byte offset bug (#4271) 2026-03-22 19:09:09 -04:00
peripherals feat(hardware): add RPi GPIO, Aardvark I2C/SPI/GPIO, and hardware plugin system (#4125) 2026-03-21 04:17:01 -04:00
plugins fix(plugins): integrate WASM tools into registry, add gateway routes and tests 2026-03-17 18:10:24 -04:00
providers fix(ollama): strip /api/chat suffix from user-provided base URL (#4376) 2026-03-23 12:19:26 -04:00
rag chore(lint): extend low-risk clippy cleanup batch 2026-02-17 16:40:58 +08:00
runtime feat(tools): add Windows support for shell tool_call execution (#3442) 2026-03-13 17:12:16 -04:00
security fix(security): add python, python3, pip, node to default allowed commands (#4375) 2026-03-23 12:19:23 -04:00
service fix: use POSIX-compatible sh -c instead of dash-specific -lc (#4209) (#4217) 2026-03-22 00:07:37 -04:00
skillforge chore: Remove blocking read strings 2026-02-19 14:52:29 +08:00
skills fix(skills): surface actionable warning when skills are skipped due to script policy (#4383) 2026-03-23 12:47:32 -04:00
sop fix(web): call doctor endpoint with authenticated POST 2026-02-24 16:02:59 +08:00
tools feat(tools): add LLM task tool for structured JSON-only sub-calls (#4241) 2026-03-23 12:50:22 -04:00
tunnel Feat/add pinggy tunnel (#4060) 2026-03-20 15:11:50 -04:00
verifiable_intent feat(verifiable_intent): add native verifiable intent lifecycle module (#2938) 2026-03-20 17:52:55 -04:00
cli_input.rs fix(onboard): make tmux paste safe for text prompts (#4106) 2026-03-21 05:14:37 -04:00
i18n.rs feat(i18n): externalize tool descriptions for translation (#3912) 2026-03-18 17:01:39 -04:00
identity.rs test: cover deterministic HashMap ordering paths 2026-02-18 21:55:40 +08:00
lib.rs fix(onboard): make tmux paste safe for text prompts (#4106) 2026-03-21 05:14:37 -04:00
main.rs feat(status): show service running state in zeroclaw status (#3751) 2026-03-21 06:49:47 -04:00
migration.rs readd tests, remove markdown files 2026-02-18 14:42:39 +08:00
multimodal.rs feat(multimodal): route image messages to dedicated vision provider (#4264) 2026-03-22 14:36:29 -04:00
util.rs feat(hardware): add RPi GPIO, Aardvark I2C/SPI/GPIO, and hardware plugin system (#4125) 2026-03-21 04:17:01 -04:00