Class: ClaudeAgentSDK::AgentDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Agent definition configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description:, prompt:, tools: nil, model: nil) ⇒ AgentDefinition

Returns a new instance of AgentDefinition.



191
192
193
194
195
196
# File 'lib/claude_agent_sdk/types.rb', line 191

def initialize(description:, prompt:, tools: nil, model: nil)
  @description = description
  @prompt = prompt
  @tools = tools
  @model = model
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



189
190
191
# File 'lib/claude_agent_sdk/types.rb', line 189

def description
  @description
end

#modelObject

Returns the value of attribute model.



189
190
191
# File 'lib/claude_agent_sdk/types.rb', line 189

def model
  @model
end

#promptObject

Returns the value of attribute prompt.



189
190
191
# File 'lib/claude_agent_sdk/types.rb', line 189

def prompt
  @prompt
end

#toolsObject

Returns the value of attribute tools.



189
190
191
# File 'lib/claude_agent_sdk/types.rb', line 189

def tools
  @tools
end