Class: Xeno::Action
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Xeno::Action
- Defined in:
- app/models/xeno/action.rb
Overview
One requested tool call: the durability checkpoint and the approval state. A completed action means executed and its result is in the transcript — committed in one transaction, so replay can trust either signal.
Class Method Summary collapse
Class Method Details
.record!(turn, tool_call, kind: "tool") ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/models/xeno/action.rb', line 13 def self.record!(turn, tool_call, kind: "tool") find_or_create_by!(turn: turn, tool_call_id: tool_call.id) do |action| action.tool_name = tool_call.name action.kind = kind action.input = tool_call.arguments end end |