# Type Alias AgentFilterFunction<ParamsType, ResultType, NamedInputDataType>

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

#### Type Parameters

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

#### Type declaration

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

  - #### Parameters

    - context: AgentFunctionContext<ParamsType, NamedInputDataType>
    - agent: AgentFunction

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

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