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.



1732
1733
1734
1735
# File 'lib/claude_agent_sdk/types.rb', line 1732

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

Instance Attribute Details

#pathObject

Returns the value of attribute path.



1730
1731
1732
# File 'lib/claude_agent_sdk/types.rb', line 1730

def path
  @path
end

#typeObject

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_hObject



1737
1738
1739
# File 'lib/claude_agent_sdk/types.rb', line 1737

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