PtcRunner.LLM.Invocation (PtcRunner v0.15.0)

Copy Markdown View Source

Closed per-call adapter request sealed by PtcRunner.LLM.callback/2.

Hosts receive an arity-two requester and do not construct this struct. Adapter call/2 receives the sealed request map, credential, cache flag, and optional per-call deadline. A nil deadline means the call is not bound to a live Kernel cutoff.

Summary

Types

t()

@type t() :: %PtcRunner.LLM.Invocation{
  cache: boolean(),
  credential: binary() | nil,
  llm_request_deadline_ms: integer() | nil,
  request: map()
}

Functions

valid?(invocation)

@spec valid?(term()) :: boolean()