Class: 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
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SystemPromptFile
constructor
A new instance of SystemPromptFile.
- #to_h ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(attributes = {}) ⇒ SystemPromptFile
Returns a new instance of SystemPromptFile.
1458 1459 1460 1461 |
# File 'lib/claude_agent_sdk/types.rb', line 1458 def initialize(attributes = {}) super @type = 'file' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
1455 1456 1457 |
# File 'lib/claude_agent_sdk/types.rb', line 1455 def path @path end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1456 1457 1458 |
# File 'lib/claude_agent_sdk/types.rb', line 1456 def type @type end |
Instance Method Details
#to_h ⇒ Object
1463 1464 1465 |
# File 'lib/claude_agent_sdk/types.rb', line 1463 def to_h { type: @type, path: @path } end |