Jidoka.Adapter.ReqLLM (Jidoka v0.9.0)

Copy Markdown View Source

ReqLLM runtime support for Jidoka's LLM effect boundary.

This is an advanced extension seam. Normal application calls use the default ReqLLM capability through Jidoka.chat/3 or Jidoka.turn/3.

The runtime uses a constrained JSON protocol instead of native provider tool-calling. That keeps Jidoka's Runic spine provider-neutral while still letting a real model choose between final answers and operation calls.

Summary

Functions

Returns an LLM function suitable for Jidoka.turn/3.

Types

option()

@type option() ::
  {:model, ReqLLM.model_input()}
  | {:temperature, number()}
  | {:max_tokens, pos_integer()}
  | {:timeout, timeout()}
  | {:receive_timeout, timeout()}
  | {:provider_options, map()}
  | {:cache, term()}
  | {:api_key, String.t()}
  | {:stream, boolean()}
  | {:stream_to, pid() | {:pid, pid()}}
  | {:on_event, (Jidoka.Event.t() -> term())}

Functions

llm(opts \\ [])

Returns an LLM function suitable for Jidoka.turn/3.

llm = Jidoka.Adapter.ReqLLM.llm(model: "openai:gpt-4o-mini", temperature: 0.0)
Jidoka.turn(agent, "Use the available tool.", llm: llm, operations: ops)