# Type Alias AgentFunctionContext<ParamsType, NamedInputDataType, ConfigType>

AgentFunctionContext: {
cacheType?: CacheTypes;
config?: ConfigType;
debugInfo: AgentFunctionContextDebugInfo;
filterParams: AgentFilterParams;
forNestedGraph?: {
agents: AgentFunctionInfoDictionary;
callbacks?: CallbackFunction[];
graphData?: GraphData;
graphOptions: GraphOptions;
onLogCallback?: (log: TransactionLog, isUpdate: boolean) => void;
};
inputSchema?: any;
log?: TransactionLog[];
namedInputs: NamedInputDataType;
params: NodeDataParams<ParamsType>;
}

#### Type Parameters

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

#### Type declaration

- ##### `Optional` cacheType?: CacheTypes

- ##### `Optional` config?: ConfigType

- ##### debugInfo: AgentFunctionContextDebugInfo

- ##### filterParams: AgentFilterParams

- ##### `Optional` forNestedGraph?: {
  agents: AgentFunctionInfoDictionary;
  callbacks?: CallbackFunction[];
  graphData?: GraphData;
  graphOptions: GraphOptions;
  onLogCallback?: (log: TransactionLog, isUpdate: boolean) => void;
  }

- ##### `Optional` inputSchema?: any

- ##### `Optional` log?: TransactionLog[]

- ##### namedInputs: NamedInputDataType

- ##### params: NodeDataParams<ParamsType>

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