Class: ClaudeAgentSDK::SystemPromptFile

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

System prompt file configuration — loads system prompt from a file path

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:) ⇒ SystemPromptFile

Returns a new instance of SystemPromptFile.



1753
1754
1755
1756
# File 'lib/claude_agent_sdk/types.rb', line 1753

def initialize(path:)
  @type = 'file'
  @path = path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



1751
1752
1753
# File 'lib/claude_agent_sdk/types.rb', line 1751

def path
  @path
end

#typeObject

Returns the value of attribute type.



1751
1752
1753
# File 'lib/claude_agent_sdk/types.rb', line 1751

def type
  @type
end

Instance Method Details

#to_hObject



1758
1759
1760
# File 'lib/claude_agent_sdk/types.rb', line 1758

def to_h
  { type: @type, path: @path }
end