Skip to main content

Class: SimpleToolNodeMapping

Extends

  • BaseObjectNodeMapping

Methods

_addObj()

_addObj(tool): void

Parameters

tool: BaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping._addObj

Defined in

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


_fromNode()

_fromNode(node): BaseTool<any>

Parameters

node: BaseNode<Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping._fromNode

Defined in

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


addObj()

addObj(obj): void

Parameters

obj: BaseTool<any>

Returns

void

Overrides

BaseObjectNodeMapping.addObj

Defined in

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


fromNode()

fromNode(node): BaseTool<any>

Parameters

node: BaseNode<Metadata>

Returns

BaseTool<any>

Overrides

BaseObjectNodeMapping.fromNode

Defined in

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


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:73


objNodeMapping()

objNodeMapping(): Record<any, any>

Returns

Record<any, any>

Overrides

BaseObjectNodeMapping.objNodeMapping

Defined in

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


persist()

persist(persistDir, objNodeMappingFilename): void

Parameters

persistDir: string

objNodeMappingFilename: string

Returns

void

Overrides

BaseObjectNodeMapping.persist

Defined in

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


toNode()

toNode(tool): TextNode<Metadata>

Parameters

tool: BaseTool<any>

Returns

TextNode<Metadata>

Overrides

BaseObjectNodeMapping.toNode

Defined in

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


toNodes()

toNodes(objs): TextNode<Metadata>[]

Parameters

objs: BaseTool<any>[]

Returns

TextNode<Metadata>[]

Overrides

BaseObjectNodeMapping.toNodes

Defined in

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


validateObject()

validateObject(obj): void

Parameters

obj: any

Returns

void

Inherited from

BaseObjectNodeMapping.validateObject

Defined in

packages/core/objects/dist/objects/index.d.ts:16


fromObjects()

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

Parameters

objs: any

• ...args: any[]

Returns

BaseObjectNodeMapping

Defined in

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