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:43
_fromNode()
_fromNode(
node
):BaseTool
<any
>
Parameters
Returns
BaseTool
<any
>
Overrides
BaseObjectNodeMapping._fromNode
Defined in
packages/llamaindex/src/objects/base.ts:47
addObj()
addObj(
obj
):void
Parameters
• obj: BaseTool
<any
>
Returns
void
Overrides
BaseObjectNodeMapping.addObj
Defined in
packages/llamaindex/src/objects/base.ts:62
fromNode()
fromNode(
node
):BaseTool
<any
>
Parameters
Returns
BaseTool
<any
>
Overrides
BaseObjectNodeMapping.fromNode
Defined in
packages/llamaindex/src/objects/base.ts:66
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:76
objNodeMapping()
objNodeMapping():
Record
<any
,any
>
Returns
Record
<any
, any
>
Overrides
BaseObjectNodeMapping.objNodeMapping
Defined in
packages/llamaindex/src/objects/base.ts:35
persist()
persist(
persistDir
,objNodeMappingFilename
):void
Parameters
• persistDir: string
• objNodeMappingFilename: string
Returns
void
Overrides
BaseObjectNodeMapping.persist
Defined in
packages/llamaindex/src/objects/base.ts:54
toNode()
Parameters
• tool: BaseTool
<any
>
Returns
Overrides
BaseObjectNodeMapping.toNode
Defined in
packages/llamaindex/src/objects/base.ts:39
toNodes()
Parameters
• objs: BaseTool
<any
>[]
Returns
Overrides
BaseObjectNodeMapping.toNodes
Defined in
packages/llamaindex/src/objects/base.ts:58
validateObject()
validateObject(
obj
):void
Parameters
• obj: any
Returns
void
Inherited from
BaseObjectNodeMapping.validateObject
Defined in
packages/core/objects/dist/index.d.ts:16
fromObjects()
static
fromObjects(objs
, ...args
):BaseObjectNodeMapping
Parameters
• objs: any
• ...args: any
[]
Returns
BaseObjectNodeMapping