# Type Alias AgentFunction<ParamsType, ResultType, NamedInputDataType, ConfigType>

AgentFunction: (
context: AgentFunctionContext<
ParamsType,
NamedInputDataType,
ConfigType,
>,
) => Promise<ResultData<ResultType>>

#### Type Parameters

- ParamsType = DefaultParamsType
- ResultType = DefaultResultData
- NamedInputDataType = DefaultInputData
- ConfigType = DefaultConfigData

#### Type declaration

- - (
    context: AgentFunctionContext<
    ParamsType,
    NamedInputDataType,
    ConfigType,
    >,
    ): Promise<ResultData<ResultType>>

  - #### Parameters

    - context: AgentFunctionContext<ParamsType, NamedInputDataType, ConfigType>

    #### Returns Promise<ResultData<ResultType>>

- Defined in packages/graphai/src/type.ts:130