Class: ClaudeAgentSDK::InitMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::InitMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Init system message (emitted at session start and after /clear)
Instance Attribute Summary collapse
-
#agents ⇒ Object
Returns the value of attribute agents.
-
#api_key_source ⇒ Object
Returns the value of attribute api_key_source.
-
#betas ⇒ Object
Returns the value of attribute betas.
-
#claude_code_version ⇒ Object
Returns the value of attribute claude_code_version.
-
#cwd ⇒ Object
Returns the value of attribute cwd.
-
#fast_mode_state ⇒ Object
Returns the value of attribute fast_mode_state.
-
#mcp_servers ⇒ Object
Returns the value of attribute mcp_servers.
-
#model ⇒ Object
Returns the value of attribute model.
-
#output_style ⇒ Object
Returns the value of attribute output_style.
-
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
-
#plugins ⇒ Object
Returns the value of attribute plugins.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#skills ⇒ Object
Returns the value of attribute skills.
-
#slash_commands ⇒ Object
Returns the value of attribute slash_commands.
-
#tools ⇒ Object
Returns the value of attribute tools.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, uuid: nil, session_id: nil, agents: nil, api_key_source: nil, betas: nil, claude_code_version: nil, cwd: nil, tools: nil, mcp_servers: nil, model: nil, permission_mode: nil, slash_commands: nil, output_style: nil, skills: nil, plugins: nil, fast_mode_state: nil) ⇒ InitMessage
constructor
A new instance of InitMessage.
Constructor Details
#initialize(subtype:, data:, uuid: nil, session_id: nil, agents: nil, api_key_source: nil, betas: nil, claude_code_version: nil, cwd: nil, tools: nil, mcp_servers: nil, model: nil, permission_mode: nil, slash_commands: nil, output_style: nil, skills: nil, plugins: nil, fast_mode_state: nil) ⇒ InitMessage
Returns a new instance of InitMessage.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/claude_agent_sdk/types.rb', line 164 def initialize(subtype:, data:, uuid: nil, session_id: nil, agents: nil, api_key_source: nil, betas: nil, claude_code_version: nil, cwd: nil, tools: nil, mcp_servers: nil, model: nil, permission_mode: nil, slash_commands: nil, output_style: nil, skills: nil, plugins: nil, fast_mode_state: nil) super(subtype: subtype, data: data) @uuid = uuid @session_id = session_id @agents = agents @api_key_source = api_key_source @betas = betas @claude_code_version = claude_code_version @cwd = cwd @tools = tools @mcp_servers = mcp_servers @model = model @permission_mode = @slash_commands = slash_commands @output_style = output_style @skills = skills @plugins = plugins @fast_mode_state = fast_mode_state # "off", "cooldown", or "on" end |
Instance Attribute Details
#agents ⇒ Object
Returns the value of attribute agents.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def agents @agents end |
#api_key_source ⇒ Object
Returns the value of attribute api_key_source.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def api_key_source @api_key_source end |
#betas ⇒ Object
Returns the value of attribute betas.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def betas @betas end |
#claude_code_version ⇒ Object
Returns the value of attribute claude_code_version.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def claude_code_version @claude_code_version end |
#cwd ⇒ Object
Returns the value of attribute cwd.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def cwd @cwd end |
#fast_mode_state ⇒ Object
Returns the value of attribute fast_mode_state.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def fast_mode_state @fast_mode_state end |
#mcp_servers ⇒ Object
Returns the value of attribute mcp_servers.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def mcp_servers @mcp_servers end |
#model ⇒ Object
Returns the value of attribute model.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def model @model end |
#output_style ⇒ Object
Returns the value of attribute output_style.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def output_style @output_style end |
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def @permission_mode end |
#plugins ⇒ Object
Returns the value of attribute plugins.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def plugins @plugins end |
#session_id ⇒ Object
Returns the value of attribute session_id.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def session_id @session_id end |
#skills ⇒ Object
Returns the value of attribute skills.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def skills @skills end |
#slash_commands ⇒ Object
Returns the value of attribute slash_commands.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def slash_commands @slash_commands end |
#tools ⇒ Object
Returns the value of attribute tools.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def tools @tools end |
#uuid ⇒ Object
Returns the value of attribute uuid.
159 160 161 |
# File 'lib/claude_agent_sdk/types.rb', line 159 def uuid @uuid end |