Skip to content

OperationCallbacks

Namespace: Vercel.AI.Operations

public static class OperationCallbacks

Invokes callbacks and swallows their exceptions.

Inheritance: object

View source

NotifyAsync<T>(T, params Func<T, Task>?[])

Section titled “NotifyAsync<T>(T, params Func<T, Task>?[])”
public static Task NotifyAsync<T>(T payload, params Func<T, Task>?[] callbacks)

Invokes each callback. A thrown callback does not fail the operation.

Type parameters

Name Description
T

Parameters

Name Type Description
payload T
callbacks Func<T, Task>[]

Returns: Task

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product