The entity of a request, found by the bind stage of the pipeline
(OzMcp.Pipeline.Bind). The stage puts the struct in the field
bound of the context and the authorize/3 callback of a verifier
receives it as its third argument.
kind is the kind of the entity the request names:
:toolfortools/call:nameis the tool name,modulethe tool module andentitythe tool configuration.argumentsholds the arguments (with the defaults of the input schema applied),input_errorsthe messages of a schema violation andtaskthe metadata of a task-augmented call.:resourceor:templateforresources/readandresources/subscribe:nameis the uri,uri_paramsthe values of the template variables.:promptforprompts/get:argumentsholds the arguments of the request.:completionforcompletion/complete:completionholds the reference, the argument and the context of the completion.:taskfortasks/get,tasks/list,tasks/cancelandtasks/result:nameis the task id when the method carries one.:nonefor every other method:paramsholds the params of the request.
The bound entity of a kind that names an entity carries the
required_scopes of the entity, whatever form the module gave (the
catalog stores a struct) and params holds the params of the request
as the bind stage received or adjusted them.
Summary
Types
@type kind() :: :tool | :resource | :template | :prompt | :completion | :task | :none
@type t() :: %OzMcp.Pipeline.Bound{ arguments: map(), completion: map() | nil, entity: struct() | nil, input_errors: [String.t()] | nil, kind: kind(), module: module() | nil, name: String.t() | nil, params: map(), required_scopes: [String.t()], task: %{ttl: non_neg_integer() | nil} | nil, uri_params: map() | nil }