Class: ClaudeAgentSDK::FiberBoundary::Break

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

Overview

Sentinel returned by .invoke_iteration when the user block attempted break.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Break

Returns a new instance of Break.



126
127
128
# File 'lib/claude_agent_sdk/fiber_boundary.rb', line 126

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



124
125
126
# File 'lib/claude_agent_sdk/fiber_boundary.rb', line 124

def value
  @value
end