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 Parameter | Default type |
|---|---|
TDeps | unknown |
TOutput | string |
Parameters
| Parameter | Type |
|---|---|
config | AgentConfig<TDeps, TOutput> |
Returns
Agent<TDeps, TOutput>