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.



1783
1784
1785
1786
# File 'lib/claude_agent_sdk/types.rb', line 1783

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

Instance Attribute Details

#pathObject

Returns the value of attribute path.



1781
1782
1783
# File 'lib/claude_agent_sdk/types.rb', line 1781

def path
  @path
end

#typeObject

Returns the value of attribute type.



1781
1782
1783
# File 'lib/claude_agent_sdk/types.rb', line 1781

def type
  @type
end

Instance Method Details

#to_hObject



1788
1789
1790
# File 'lib/claude_agent_sdk/types.rb', line 1788

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