ClaudeCode.Session.AgentInfo (ClaudeCode v0.36.3)

View Source

Information about an available subagent.

Returned as part of the initialization response from the CLI, describing agents that can be invoked via the Task tool.

Fields

  • :name - Agent type identifier (e.g., "Explore")
  • :description - Description of when to use this agent
  • :model - Model alias this agent uses (nil if it inherits the parent's model)

Summary

Functions

Creates an AgentInfo from a JSON map.

Types

t()

@type t() :: %ClaudeCode.Session.AgentInfo{
  description: String.t(),
  model: String.t() | nil,
  name: String.t()
}

Functions

new(data)

@spec new(map()) :: t()

Creates an AgentInfo from a JSON map.

Examples

iex> ClaudeCode.Session.AgentInfo.new(%{"name" => "Explore", "description" => "Fast codebase exploration"})
%ClaudeCode.Session.AgentInfo{name: "Explore", description: "Fast codebase exploration", model: nil}