Tool calling & structured output
Multi-turn tool loops and JSON-schema constrained decoding, OpenAI wire shape.Malibu ships both features as OpenAI-compatible wire surfaces. Any framework built on the OpenAI SDK sees them transparently.
Tool calling
Multi-turn tool loops, streamed tool-call deltas,tool_call_id back-references, and role: "tool" acceptance all work. Anchor framework: Cline — Malibu is a drop-in target.
Full multi-turn example lives in Agentic tooling → Tool calling.
Buyer-side validation obligation
Emittedtool_calls[] reflect model output, not provider-verified intent. Buyer-side agent frameworks MUST validate before execution. Malibu transports the parsed OpenAI-compatible shape; it does not decide whether a requested tool name or argument payload is safe for your agent policy. Treat emitted tool calls with the same trust posture you would apply to a model running on local hardware. See Agentic tooling → Buyer-side validation.
Structured output
Grammar-constrained sampling viaresponse_format. Works in streaming and non-streaming. strict: true guarantees schema conformance via constrained decoding.
response_format: {"type": "json_object"} also works — Malibu ships the bundled fix that actually enforces top-level JSON on this form.
Full reference: Agentic tooling → Structured output.