Class: ClaudeAgentSDK::SystemPromptFile
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::SystemPromptFile
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
System prompt file configuration — loads system prompt from a file path
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(path:) ⇒ SystemPromptFile
constructor
A new instance of SystemPromptFile.
- #to_h ⇒ Object
Constructor Details
#initialize(path:) ⇒ SystemPromptFile
Returns a new instance of SystemPromptFile.
1732 1733 1734 1735 |
# File 'lib/claude_agent_sdk/types.rb', line 1732 def initialize(path:) @type = 'file' @path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
1730 1731 1732 |
# File 'lib/claude_agent_sdk/types.rb', line 1730 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
1730 1731 1732 |
# File 'lib/claude_agent_sdk/types.rb', line 1730 def type @type end |
Instance Method Details
#to_h ⇒ Object
1737 1738 1739 |
# File 'lib/claude_agent_sdk/types.rb', line 1737 def to_h { type: @type, path: @path } end |