Copilot.Types.Tool (Copilot SDK v2.3.0)

Copy Markdown

Definition of a tool exposed to the Copilot CLI.

Summary

Functions

Serialize to the map sent in session.create / session.resume.

Types

t()

@type t() :: %Copilot.Types.Tool{
  description: String.t() | nil,
  handler: Copilot.Types.tool_handler(),
  name: String.t(),
  parameters: map() | nil
}

Functions

to_wire(tool)

@spec to_wire(t()) :: map()

Serialize to the map sent in session.create / session.resume.