(agentID, callID string)
| 129 | } |
| 130 | |
| 131 | func (h *ToolRuntimeHandler) runtimeSnapshot(agentID, callID string) *types.ToolCallSnapshot { |
| 132 | if h.reg == nil { |
| 133 | return nil |
| 134 | } |
| 135 | ag := h.reg.Get(agentID) |
| 136 | if ag == nil { |
| 137 | return nil |
| 138 | } |
| 139 | snap := ag.GetToolSnapshot(callID) |
| 140 | if snap.ID == "" { |
| 141 | return nil |
| 142 | } |
| 143 | return &snap |
| 144 | } |
| 145 | |
| 146 | func mapRecordToSnapshot(rec *types.ToolCallRecord) types.ToolCallSnapshot { |
| 147 | return types.ToolCallSnapshot{ |
no test coverage detected