Helper module used to build the Completion structure.
(MCP protocol: 2025-11-25)
Short example:
%Completion{}
|> Completion.values(["python", "pytorch", "pyside"])
|> Completion.build()Result:
%{values: ["python", "pytorch", "pyside"]}Long example:
%Completion{}
|> Completion.values(["python", "pytorch", "pyside"])
|> Completion.total(10)
|> Completion.has_more(true)
|> Completion.build()Result:
%{values: ["python", "pytorch", "pyside"], total: 10, hasMore: true}Specification: Completion
Fields
| Field | Setter | Type | Required |
|---|---|---|---|
values | values/2 | list | yes |
total | total/2 | non-negative integer | no |
hasMore | has_more/2 | boolean | no |
Summary
Types
@type t() :: %OzMcp.Structs.Completion{ hasMore: boolean() | nil, total: non_neg_integer() | nil, values: list() }