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

Method GetState

interpreter/runtimecost.go:85–90  ·  view source on GitHub ↗

GetState extracts the CostTracker from the Activation.

(frame *ExecutionFrame)

Source from the content-addressed store, hash-verified

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

Callers 1

ObserveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected