Skip to content

Commit

Permalink
feat: remove WithGraphCallback&WithNodeCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
meguminnnnnnnnn committed Dec 18, 2024
1 parent 3c01c4c commit 7b45c91
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions compose/graph_call_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,13 @@ func WithCallbacks(cbs ...callbacks.Handler) Option {
}
}

// Deprecated: use WithCallbacks and perform the type checking for component within it instead
func WithNodeCallbacks(cbs ...callbacks.Handler) Option {
return WithCallbacks(cbs...)
}

// Deprecated: use WithCallbacks and perform the type checking for component within it instead
func WithGraphCallbacks(cbs ...callbacks.Handler) Option {
return WithCallbacks(cbs...)
}

// Deprecated: use WithRuntimeMaxSteps directly instead.
func WithGraphRunOption(opt Option) Option {
return opt
}

// WithRuntimeMaxSteps sets the maximum number of steps for the graph runtime.
// eg.
// e.g.
//
// runnable.Invoke(ctx, "input", compose.WithRuntimeMaxSteps(20))
func WithRuntimeMaxSteps(maxSteps int) Option {
Expand Down

0 comments on commit 7b45c91

Please sign in to comment.