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.
-
#preset ⇒ Object
Returns the value of attribute preset.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(preset:, append: nil) ⇒ SystemPromptPreset
constructor
A new instance of SystemPromptPreset.
- #to_h ⇒ Object
Constructor Details
#initialize(preset:, append: nil) ⇒ SystemPromptPreset
Returns a new instance of SystemPromptPreset.
757 758 759 760 761 |
# File 'lib/claude_agent_sdk/types.rb', line 757 def initialize(preset:, append: nil) @type = 'preset' @preset = preset @append = append end |
Instance Attribute Details
#append ⇒ Object
Returns the value of attribute append.
755 756 757 |
# File 'lib/claude_agent_sdk/types.rb', line 755 def append @append end |
#preset ⇒ Object
Returns the value of attribute preset.
755 756 757 |
# File 'lib/claude_agent_sdk/types.rb', line 755 def preset @preset end |
#type ⇒ Object
Returns the value of attribute type.
755 756 757 |
# File 'lib/claude_agent_sdk/types.rb', line 755 def type @type end |
Instance Method Details
#to_h ⇒ Object
763 764 765 766 767 |
# File 'lib/claude_agent_sdk/types.rb', line 763 def to_h result = { type: @type, preset: @preset } result[:append] = @append if @append result end |