Class: SimpleToolNodeMapping
Extends
Methods
_addObj()
_addObj(
tool
):void
Parameters
• tool: BaseTool
<any
>
Returns
void
Overrides
Defined in
packages/llamaindex/src/objects/base.ts:114
_fromNode()
_fromNode(
node
):BaseTool
<any
>
Parameters
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
Defined in
packages/llamaindex/src/objects/base.ts:133
fromNode()
fromNode(
node
):BaseTool
<any
>
Parameters
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
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
Defined in
packages/llamaindex/src/objects/base.ts:125
toNode()
Parameters
• tool: BaseTool
<any
>
Returns
Overrides
Defined in
packages/llamaindex/src/objects/base.ts:110
toNodes()
Parameters
• objs: BaseTool
<any
>[]
Returns
Overrides
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
[]