Skip to content

@toolcog/node

Toolcog Node.js adapter

Interfaces

NodeCommandOptions

Properties

config?

optional config: string | boolean

Defined in

node.ts:15

embeddingModel?

optional embeddingModel: string

Defined in

node.ts:18

eval?

optional eval: string

Defined in

node.ts:19

generativeModel?

optional generativeModel: string

Defined in

node.ts:17

interactive?

optional interactive: boolean

Defined in

node.ts:21

inventory?

optional inventory: string | boolean

Defined in

node.ts:16

print?

optional print: string | boolean

Defined in

node.ts:20

Variables

version

const version: string = __version__

Defined in

lib.ts:4

Functions

createNodeCommand()

createNodeCommand(name): Command

Parameters

name: string

Returns

Command

Defined in

node.ts:129


runNodeCommand()

runNodeCommand(scriptFile, options): Promise<void>

Parameters

scriptFile: undefined | string

options: NodeCommandOptions

Returns

Promise<void>

Defined in

node.ts:26