# Type Alias ToolExecuteFunction<TParameters>

ToolExecuteFunction: (
input: ToolExecuteArgument<TParameters>,
tool_context?: Context,
) => Promise<unknown> | unknown

#### Type Parameters

- TParameters extends ToolInputParameters

#### Type Declaration

- - (
    input: ToolExecuteArgument<TParameters>,
    tool_context?: Context,
    ): Promise<unknown> | unknown

  - #### Parameters

    - input: ToolExecuteArgument<TParameters>
    - `Optional` tool_context: Context

    #### Returns Promise<unknown> | unknown

- Defined in tools/function_tool.ts:40