Skip to main content

Class: SimpleToolNodeMapping

Extends

Methods

_addObj()

_addObj(tool): void

Parameters

tool: BaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping._addObj

Defined in

packages/llamaindex/src/objects/base.ts:114


_fromNode()

_fromNode(node): BaseTool<any>

Parameters

node: BaseNode<Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping._fromNode

Defined in

packages/llamaindex/src/objects/base.ts:118


addObj()

addObj(obj): void

Parameters

obj: BaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping.addObj

Defined in

packages/llamaindex/src/objects/base.ts:133


fromNode()

fromNode(node): BaseTool<any>

Parameters

node: BaseNode<Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping.fromNode

Defined in

packages/llamaindex/src/objects/base.ts:137


fromObjects()

fromObjects<OT>(objs, ...args): BaseObjectNodeMapping

Type Parameters

OT

Parameters

objs: any

• ...args: any[]

Returns

BaseObjectNodeMapping

Overrides

BaseObjectNodeMapping.fromObjects

Defined in

packages/llamaindex/src/objects/base.ts:145


objNodeMapping()

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Overrides

BaseObjectNodeMapping.objNodeMapping

Defined in

packages/llamaindex/src/objects/base.ts:106


persist()

persist(persistDir, objNodeMappingFilename): void

Parameters

persistDir: string

objNodeMappingFilename: string

Returns

void

Overrides

BaseObjectNodeMapping.persist

Defined in

packages/llamaindex/src/objects/base.ts:125


toNode()

toNode(tool): TextNode<Metadata>

Parameters

tool: BaseTool<any>

Returns

TextNode<Metadata>

Overrides

BaseObjectNodeMapping.toNode

Defined in

packages/llamaindex/src/objects/base.ts:110


toNodes()

toNodes(objs): TextNode<Metadata>[]

Parameters

objs: BaseTool<any>[]

Returns

TextNode<Metadata>[]

Overrides

BaseObjectNodeMapping.toNodes

Defined in

packages/llamaindex/src/objects/base.ts:129


validateObject()

validateObject(obj): void

Parameters

obj: any

Returns

void

Inherited from

BaseObjectNodeMapping.validateObject

Defined in

packages/llamaindex/src/objects/base.ts:20


fromObjects()

static fromObjects(objs, ...args): BaseObjectNodeMapping

Parameters

objs: any

• ...args: any[]

Returns

BaseObjectNodeMapping

Defined in

packages/llamaindex/src/objects/base.ts:141