MCPcopy Create free account
hub / github.com/cel-expr/cel-go / GetState

Method GetState

interpreter/runtimecost.go:88–93  ·  view source on GitHub ↗

GetState extracts the CostTracker from the Activation.

(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

86
87// GetState extracts the CostTracker from the Activation.
88func (ct *costTrackerFactory) GetState(frame *ExecutionFrame) any {
89 if frame == nil || frame.ctx == nil {
90 return nil
91 }
92 return frame.ctx.costs
93}
94
95// Observe computes the incremental cost of each step and records it into the CostTracker associated
96// with the evaluation.

Callers 1

ObserveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected