MCPcopy Create free account
hub / github.com/astercloud/aster / runtimeSnapshot

Method runtimeSnapshot

server/handlers/tool_runtime.go:131–144  ·  view source on GitHub ↗
(agentID, callID string)

Source from the content-addressed store, hash-verified

129}
130
131func (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
146func mapRecordToSnapshot(rec *types.ToolCallRecord) types.ToolCallSnapshot {
147 return types.ToolCallSnapshot{

Callers 2

GetStatusMethod · 0.95
GetResultMethod · 0.95

Calls 2

GetToolSnapshotMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected