Lux.LLM.ResponseSignal (Lux v0.5.0)

View Source

A SignalSchema to represent an LLM response. It contains the content, model,tool calls, and finish reason. Any other data should be stored in the Signal's metadata field.

Summary

Types

A signal with a schema_id set to this module.

Types

signal()

@type signal() :: %Lux.Signal{
  id: term(),
  metadata: term(),
  payload: term(),
  recipient: term(),
  schema_id: Lux.LLM.ResponseSignal,
  sender: term(),
  timestamp: term()
}

A signal with a schema_id set to this module.

Functions

id()

name()

schema()

schema_id()

validate(signal)

view()