Class: ClaudeAgentSDK::SystemPromptPreset
- Inherits:
-
Object
- Object
- 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
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(preset:, append: nil, exclude_dynamic_sections: nil) ⇒ SystemPromptPreset
constructor
A new instance of SystemPromptPreset.
- #to_h ⇒ Object
Constructor Details
#initialize(preset:, append: nil, exclude_dynamic_sections: nil) ⇒ SystemPromptPreset
Returns a new instance of SystemPromptPreset.
1746 1747 1748 1749 1750 1751 |
# File 'lib/claude_agent_sdk/types.rb', line 1746 def initialize(preset:, append: nil, exclude_dynamic_sections: nil) @type = 'preset' @preset = preset @append = append @exclude_dynamic_sections = exclude_dynamic_sections end |
Instance Attribute Details
#append ⇒ Object
Returns the value of attribute append.
1744 1745 1746 |
# File 'lib/claude_agent_sdk/types.rb', line 1744 def append @append end |
#exclude_dynamic_sections ⇒ Object
Returns the value of attribute exclude_dynamic_sections.
1744 1745 1746 |
# File 'lib/claude_agent_sdk/types.rb', line 1744 def exclude_dynamic_sections @exclude_dynamic_sections end |
#preset ⇒ Object
Returns the value of attribute preset.
1744 1745 1746 |
# File 'lib/claude_agent_sdk/types.rb', line 1744 def preset @preset end |
#type ⇒ Object
Returns the value of attribute type.
1744 1745 1746 |
# File 'lib/claude_agent_sdk/types.rb', line 1744 def type @type end |
Instance Method Details
#to_h ⇒ Object
1753 1754 1755 1756 1757 1758 |
# File 'lib/claude_agent_sdk/types.rb', line 1753 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 |