MCPcopy Create free account
hub / github.com/cloudwego/eino-ext / getGraphNodeLevelFromCtx

Function getGraphNodeLevelFromCtx

callbacks/cozeloop/utils.go:141–148  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

139}
140
141func getGraphNodeLevelFromCtx(ctx context.Context) int64 {
142 level, ok := ctx.Value(consts.CozeLoopGraphNodeLevel).(int64)
143 if ok {
144 return level
145 }
146
147 return 0
148}
149
150func injectGraphNodeLevelToCtx(ctx context.Context, level int64) context.Context {
151 return context.WithValue(ctx, consts.CozeLoopGraphNodeLevel, level)

Callers 6

ParseInputMethod · 0.85
ParseOutputMethod · 0.85
OnStartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…