Class: CodexSDK::Turn
- Inherits:
-
Data
- Object
- Data
- CodexSDK::Turn
- Defined in:
- lib/codex_sdk/options.rb
Overview
Result of a blocking Thread#run call.
Instance Attribute Summary collapse
-
#context_snapshot ⇒ Object
readonly
Returns the value of attribute context_snapshot.
-
#final_response ⇒ Object
readonly
Returns the value of attribute final_response.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(items: [], final_response: "", usage: nil, context_snapshot: nil) ⇒ Turn
constructor
A new instance of Turn.
Constructor Details
#initialize(items: [], final_response: "", usage: nil, context_snapshot: nil) ⇒ Turn
Returns a new instance of Turn.
102 103 104 |
# File 'lib/codex_sdk/options.rb', line 102 def initialize(items: [], final_response: "", usage: nil, context_snapshot: nil) super end |
Instance Attribute Details
#context_snapshot ⇒ Object (readonly)
Returns the value of attribute context_snapshot
101 102 103 |
# File 'lib/codex_sdk/options.rb', line 101 def context_snapshot @context_snapshot end |
#final_response ⇒ Object (readonly)
Returns the value of attribute final_response
101 102 103 |
# File 'lib/codex_sdk/options.rb', line 101 def final_response @final_response end |
#items ⇒ Object (readonly)
Returns the value of attribute items
101 102 103 |
# File 'lib/codex_sdk/options.rb', line 101 def items @items end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage
101 102 103 |
# File 'lib/codex_sdk/options.rb', line 101 def usage @usage end |