Class: ClaudeAgentSDK::AgentDefinition
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::AgentDefinition
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Agent definition configuration
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#model ⇒ Object
Returns the value of attribute model.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#tools ⇒ Object
Returns the value of attribute tools.
Instance Method Summary collapse
-
#initialize(description:, prompt:, tools: nil, model: nil) ⇒ AgentDefinition
constructor
A new instance of AgentDefinition.
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
#description ⇒ Object
Returns the value of attribute description.
149 150 151 |
# File 'lib/claude_agent_sdk/types.rb', line 149 def description @description end |
#model ⇒ Object
Returns the value of attribute model.
149 150 151 |
# File 'lib/claude_agent_sdk/types.rb', line 149 def model @model end |
#prompt ⇒ Object
Returns the value of attribute prompt.
149 150 151 |
# File 'lib/claude_agent_sdk/types.rb', line 149 def prompt @prompt end |
#tools ⇒ Object
Returns the value of attribute tools.
149 150 151 |
# File 'lib/claude_agent_sdk/types.rb', line 149 def tools @tools end |