Pure context reducer projecting visible transcript entries, agent settings,
and tool descriptors into a provider-neutral request map and ReqLLM structs.
Summary
Functions
Builds a provider-neutral request map from visible entries, agent config,
and offered tool_specs.
Converts a provider-neutral request_map into {%ReqLLM.Context{}, [%ReqLLM.Tool{}]}.
Types
@type request_map() :: %{ model: term(), thinking: term(), max_tokens: pos_integer() | nil, messages: [map()], tools: [map()] }
Functions
@spec build_request([map()], map(), [map()], keyword()) :: request_map()
Builds a provider-neutral request map from visible entries, agent config,
and offered tool_specs.
@spec to_req_llm(map()) :: {ReqLLM.Context.t(), [ReqLLM.Tool.t()]}
Converts a provider-neutral request_map into {%ReqLLM.Context{}, [%ReqLLM.Tool{}]}.