ADK for TypeScript: API Reference
    Preparing search index...

    Type Alias SingleAfterToolCallback

    SingleAfterToolCallback: (
        params: {
            args: Dict;
            context: ToolContext;
            response: Dict;
            tool: BaseTool;
        },
    ) => Dict
    | undefined
    | Promise<Dict | undefined>

    A callback that runs after a tool is called.

    Type Declaration

      • (
            params: {
                args: Dict;
                context: ToolContext;
                response: Dict;
                tool: BaseTool;
            },
        ): Dict
        | undefined
        | Promise<Dict | undefined>
      • Parameters

        Returns Dict | undefined | Promise<Dict | undefined>

        When present, the returned dict will be used as tool result.