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.



160
161
162
163
164
165
# File 'lib/claude_agent_sdk/types.rb', line 160

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.



158
159
160
# File 'lib/claude_agent_sdk/types.rb', line 158

def description
  @description
end

#modelObject

Returns the value of attribute model.



158
159
160
# File 'lib/claude_agent_sdk/types.rb', line 158

def model
  @model
end

#promptObject

Returns the value of attribute prompt.



158
159
160
# File 'lib/claude_agent_sdk/types.rb', line 158

def prompt
  @prompt
end

#toolsObject

Returns the value of attribute tools.



158
159
160
# File 'lib/claude_agent_sdk/types.rb', line 158

def tools
  @tools
end