Snodo.Completion (snodo v0.1.0)

Copy Markdown View Source

A normalized, protocol-neutral completion request.

Completion callbacks receive the registered prompt or resource-template reference, the argument being completed, its partial value, and any previously resolved string arguments. Protocol dialects remain responsible for translating their wire representation into this shape.

Summary

Types

reference_type()

@type reference_type() :: :prompt | :resource_template

t()

@type t() :: %Snodo.Completion{
  argument: String.t(),
  arguments: %{optional(String.t()) => String.t()},
  reference: String.t(),
  reference_type: reference_type(),
  value: String.t()
}