AI.Message.FunctionCallOutput (fnord v0.9.40)

View Source

Result of a tool execution, paired to a FunctionCall by call_id. Wire shape:

%{type: "function_call_output", call_id: "...", output: "..."}

Summary

Functions

Hydrate from a Responses-shaped map (atom or string keys).

Build a function-call-output. output is coerced to a binary if a tool returned something non-string (inspect/1 fallback) so the wire shape stays consistent.

Types

t()

@type t() :: %AI.Message.FunctionCallOutput{
  call_id: binary(),
  output: binary(),
  type: term()
}

Functions

from_map(raw)

@spec from_map(map()) :: t()

Hydrate from a Responses-shaped map (atom or string keys).

new(call_id, output)

@spec new(binary(), any()) :: t()

Build a function-call-output. output is coerced to a binary if a tool returned something non-string (inspect/1 fallback) so the wire shape stays consistent.