Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/agent / factory / createAgent

Function: createAgent()

ts
function createAgent<TDeps, TOutput>(config): Agent<TDeps, TOutput>;

Defined in: packages/agent/src/factory.ts:386

Build a fresh Agent from the supplied configuration.

Type Parameters

Type ParameterDefault type
TDepsunknown
TOutputstring

Parameters

ParameterType
configAgentConfig&lt;TDeps, TOutput&gt;

Returns

Agent&lt;TDeps, TOutput&gt;

Stable