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

Function WithInnerOptions

compose/batch/batch/options.go:43–47  ·  view source on GitHub ↗

WithInnerOptions passes compose.Option values to each inner task invocation. Use this for request-time options like: - compose.WithCallbacks: Add callbacks for progress tracking - compose.WithMaxRunSteps: Limit execution steps per task Example: batchNode.Invoke(ctx, inputs, batch.WithInnerOp

(opts ...compose.Option)

Source from the content-addressed store, hash-verified

41// ),
42// )
43func WithInnerOptions(opts ...compose.Option) Option {
44 return func(o *options) {
45 o.innerOptions = append(o.innerOptions, opts...)
46 }
47}
48
49// applyBatchOptions creates an options struct from the given Option functions.
50func applyBatchOptions(opts ...Option) *options {

Callers 1

runParentGraphWithReduceFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected