Class: ClaudeAgentSDK::TaskStartedMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::TaskStartedMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Task started system message (subagent/background task started)
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#task_type ⇒ Object
Returns the value of attribute task_type.
-
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
-
#workflow_name ⇒ Object
Returns the value of attribute workflow_name.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, task_id:, description:, uuid:, session_id:, tool_use_id: nil, task_type: nil, workflow_name: nil, prompt: nil) ⇒ TaskStartedMessage
constructor
A new instance of TaskStartedMessage.
Constructor Details
#initialize(subtype:, data:, task_id:, description:, uuid:, session_id:, tool_use_id: nil, task_type: nil, workflow_name: nil, prompt: nil) ⇒ TaskStartedMessage
Returns a new instance of TaskStartedMessage.
393 394 395 396 397 398 399 400 401 402 403 404 |
# File 'lib/claude_agent_sdk/types.rb', line 393 def initialize(subtype:, data:, task_id:, description:, uuid:, session_id:, tool_use_id: nil, task_type: nil, workflow_name: nil, prompt: nil) super(subtype: subtype, data: data) @task_id = task_id @description = description @uuid = uuid @session_id = session_id @tool_use_id = tool_use_id @task_type = task_type @workflow_name = workflow_name @prompt = prompt end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def description @description end |
#prompt ⇒ Object
Returns the value of attribute prompt.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def prompt @prompt end |
#session_id ⇒ Object
Returns the value of attribute session_id.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def session_id @session_id end |
#task_id ⇒ Object
Returns the value of attribute task_id.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def task_id @task_id end |
#task_type ⇒ Object
Returns the value of attribute task_type.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def task_type @task_type end |
#tool_use_id ⇒ Object
Returns the value of attribute tool_use_id.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def tool_use_id @tool_use_id end |
#uuid ⇒ Object
Returns the value of attribute uuid.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def uuid @uuid end |
#workflow_name ⇒ Object
Returns the value of attribute workflow_name.
390 391 392 |
# File 'lib/claude_agent_sdk/types.rb', line 390 def workflow_name @workflow_name end |