MCPcopy Create free account
hub / github.com/cloudwego/eino-examples / ExampleOfLambdaInChain

Function ExampleOfLambdaInChain

components/lambda/lambda.go:87–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87func ExampleOfLambdaInChain() {
88 chain := compose.NewChain[string, string]()
89 chain.AppendLambda(compose.InvokableLambda(func(ctx context.Context, input string) (string, error) {
90 // some logic
91 return "", nil
92 }))
93
94 _ = chain
95}
96
97func ExampleOfLambdaInGraph() {
98 graph := compose.NewGraph[string, *MyStruct]()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected