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.



151
152
153
154
155
156
# File 'lib/claude_agent_sdk/types.rb', line 151

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.



149
150
151
# File 'lib/claude_agent_sdk/types.rb', line 149

def description
  @description
end

#modelObject

Returns the value of attribute model.



149
150
151
# File 'lib/claude_agent_sdk/types.rb', line 149

def model
  @model
end

#promptObject

Returns the value of attribute prompt.



149
150
151
# File 'lib/claude_agent_sdk/types.rb', line 149

def prompt
  @prompt
end

#toolsObject

Returns the value of attribute tools.



149
150
151
# File 'lib/claude_agent_sdk/types.rb', line 149

def tools
  @tools
end