Skip to content

graphai


graphai / AgentFunctionContext

Type Alias: AgentFunctionContext<ParamsType, NamedInputDataType, ConfigType>

AgentFunctionContext<ParamsType, NamedInputDataType, ConfigType>: object

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

Type Parameters

ParamsType = DefaultParamsType

NamedInputDataType = DefaultInputData

ConfigType = DefaultConfigData

Type declaration

cacheType?

optional cacheType: CacheTypes

config?

optional config: ConfigType

debugInfo

debugInfo: AgentFunctionContextDebugInfo

filterParams

filterParams: AgentFilterParams

forNestedGraph?

optional forNestedGraph: object

forNestedGraph.agents

agents: AgentFunctionInfoDictionary

forNestedGraph.callbacks?

optional callbacks: CallbackFunction[]

forNestedGraph.graphData?

optional graphData: GraphData

forNestedGraph.graphOptions

graphOptions: GraphOptions

forNestedGraph.onLogCallback()?

optional onLogCallback: (log, isUpdate) => void

Parameters
log

TransactionLog

isUpdate

boolean

Returns

void

inputSchema?

optional inputSchema: any

log?

optional log: TransactionLog[]

namedInputs

namedInputs: NamedInputDataType

params

params: NodeDataParams<ParamsType>

Released under the MIT License.