Jidoka.Agent.Spec.Generation (Jidoka v0.8.0-beta.1)

Copy Markdown View Source

Provider-facing generation defaults for an agent.

Generation parameters are intentionally permissive because the supported option set varies by model and provider. Jidoka owns the merge shape, while ReqLLM/provider clients own final option validation.

Summary

Types

t()

@type t() :: %Jidoka.Agent.Spec.Generation{
  extra: map(),
  params: map(),
  provider_options: map()
}

Functions

from_input(generation)

@spec from_input(t() | keyword() | map() | nil) :: {:ok, t()} | {:error, term()}

new(attrs \\ [])

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

new!(attrs \\ [])

@spec new!(keyword() | map()) :: t()

schema()

@spec schema() :: Zoi.schema()

to_req_llm_opts(input)

@spec to_req_llm_opts(t() | keyword() | map() | nil) :: keyword()