Sake.Tool.Spec (Sake v0.4.3)

Copy Markdown View Source

The compiled definition of a tool.

mount is nil for a tool the server declares itself, and {server, prefix, spec} for one it mounted (Sake.Server.mount/2): the server it came from, the mount's prefix, and the spec as that server has it. proxy is the Sake.Proxy whose upstream serves a proxied tool; it has no module.

Summary

Types

t()

@type t() :: %Sake.Tool.Spec{
  annotations: term(),
  authentication: term(),
  description: term(),
  headers: term(),
  icons: term(),
  input_schema: term(),
  meta: term(),
  module: term(),
  mount: term(),
  name: term(),
  output_schema: term(),
  proxy: term(),
  scopes: term(),
  stream: term(),
  task: term(),
  title: term(),
  ttl: term(),
  ui: term(),
  visibility: term()
}

Functions

to_wire(s, revision)

@spec to_wire(t(), String.t()) :: map()