Spectre.Skill.Runtime.Response (Spectre v0.3.0)

Copy Markdown View Source

Public result of one declarative runtime Skill response.

Operation responses contain a portable Spectre.Operation.Request; Work responses contain only a canonical program reference and closed input. The runtime never executes either boundary. The host completes it and releases the associated continuation explicitly.

Summary

Types

t()

@type t() :: %Spectre.Skill.Runtime.Response{
  continuation_id: String.t() | nil,
  definition_ref: Spectre.Definition.Ref.t(),
  kind: :reply | :operation | :work,
  metadata: map(),
  mount_id: term(),
  operation_request: Spectre.Operation.Request.t() | nil,
  output: String.t() | nil,
  program_digest: String.t() | nil,
  prompt_plan: Spectre.Prompt.Plan.t() | nil,
  prompt_receipt: Spectre.Prompt.Receipt.t() | nil,
  route_label: term(),
  work_input: term(),
  work_ref: String.t() | nil
}