ToolCall.IR.Field (ToolCall v0.4.0)

Copy Markdown

One entry of an object-shaped type.

name is the wire name (always a string, as JSON objects use). key is the value-domain key: an atom when the spec declared one, which is what the function receives. description is optional and is rendered as the property description. default is the struct default when has_default is true; has_default distinguishes an explicit nil from no default. A non-nil default is emitted even when has_default is false.

Summary

Types

t()

@type t() :: %ToolCall.IR.Field{
  default: term(),
  description: term(),
  has_default: term(),
  key: term(),
  name: term(),
  required: term(),
  type: term()
}