Class: ClaudeAgentSDK::ToolProgressMessage

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

Overview

Tool progress message (type: ‘tool_progress’)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uuid: nil, session_id: nil, tool_use_id: nil, tool_name: nil, parent_tool_use_id: nil, elapsed_time_seconds: nil, task_id: nil) ⇒ ToolProgressMessage

Returns a new instance of ToolProgressMessage.



491
492
493
494
495
496
497
498
499
500
# File 'lib/claude_agent_sdk/types.rb', line 491

def initialize(uuid: nil, session_id: nil, tool_use_id: nil, tool_name: nil,
               parent_tool_use_id: nil, elapsed_time_seconds: nil, task_id: nil)
  @uuid = uuid
  @session_id = session_id
  @tool_use_id = tool_use_id
  @tool_name = tool_name
  @parent_tool_use_id = parent_tool_use_id
  @elapsed_time_seconds = elapsed_time_seconds
  @task_id = task_id
end

Instance Attribute Details

#elapsed_time_secondsObject

Returns the value of attribute elapsed_time_seconds.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def elapsed_time_seconds
  @elapsed_time_seconds
end

#parent_tool_use_idObject

Returns the value of attribute parent_tool_use_id.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def parent_tool_use_id
  @parent_tool_use_id
end

#session_idObject

Returns the value of attribute session_id.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def session_id
  @session_id
end

#task_idObject

Returns the value of attribute task_id.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def task_id
  @task_id
end

#tool_nameObject

Returns the value of attribute tool_name.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def tool_name
  @tool_name
end

#tool_use_idObject

Returns the value of attribute tool_use_id.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def tool_use_id
  @tool_use_id
end

#uuidObject

Returns the value of attribute uuid.



488
489
490
# File 'lib/claude_agent_sdk/types.rb', line 488

def uuid
  @uuid
end