Parameters for tracing a callback execution

interface TraceCallbackParams {
    callbackType:
        | "before_agent"
        | "after_agent"
        | "before_tool"
        | "after_tool"
        | "before_model"
        | "after_model";
    callbackName?: string;
    callbackIndex: number;
    invocationContext?: InvocationContext;
}

Properties

callbackType:
    | "before_agent"
    | "after_agent"
    | "before_tool"
    | "after_tool"
    | "before_model"
    | "after_model"
callbackName?: string
callbackIndex: number
invocationContext?: InvocationContext