Class: ClaudeAgentSDK::SystemPromptPreset
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
System prompt preset configuration
Instance Attribute Summary collapse
-
#append ⇒ Object
Returns the value of attribute append.
-
#exclude_dynamic_sections ⇒ Object
Returns the value of attribute exclude_dynamic_sections.
-
#preset ⇒ Object
Returns the value of attribute preset.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SystemPromptPreset
constructor
A new instance of SystemPromptPreset.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ SystemPromptPreset
Returns a new instance of SystemPromptPreset.
1439 1440 1441 1442 |
# File 'lib/claude_agent_sdk/types.rb', line 1439 def initialize(attributes = {}) super @type = 'preset' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#append ⇒ Object
Returns the value of attribute append.
1437 1438 1439 |
# File 'lib/claude_agent_sdk/types.rb', line 1437 def append @append end |
#exclude_dynamic_sections ⇒ Object
Returns the value of attribute exclude_dynamic_sections.
1437 1438 1439 |
# File 'lib/claude_agent_sdk/types.rb', line 1437 def exclude_dynamic_sections @exclude_dynamic_sections end |
#preset ⇒ Object
Returns the value of attribute preset.
1437 1438 1439 |
# File 'lib/claude_agent_sdk/types.rb', line 1437 def preset @preset end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1436 1437 1438 |
# File 'lib/claude_agent_sdk/types.rb', line 1436 def type @type end |
Instance Method Details
#to_h ⇒ Object
1444 1445 1446 1447 1448 1449 |
# File 'lib/claude_agent_sdk/types.rb', line 1444 def to_h result = { type: @type, preset: @preset } result[:append] = @append if @append result[:exclude_dynamic_sections] = @exclude_dynamic_sections unless @exclude_dynamic_sections.nil? result end |