Class: SimpleToolNodeMapping
Extends
Constructors
new SimpleToolNodeMapping()
private
new SimpleToolNodeMapping(objs
):SimpleToolNodeMapping
Parameters
• objs: BaseTool
<any
>[]= []
Returns
Overrides
BaseObjectNodeMapping
. constructor
Source
packages/llamaindex/src/objects/base.ts:99
Properties
_tools
private
_tools:Record
<string
,BaseTool
<any
>>
Source
packages/llamaindex/src/objects/base.ts:97
Methods
_addObj()
_addObj(
tool
):void
Parameters
• tool: BaseTool
<any
>
Returns
void
Overrides
BaseObjectNodeMapping
. _addObj
Source
packages/llamaindex/src/objects/base.ts:115
_fromNode()
_fromNode(
node
):BaseTool
<any
>
Parameters
Returns
BaseTool
<any
>
Overrides
BaseObjectNodeMapping
. _fromNode
Source
packages/llamaindex/src/objects/base.ts:119
addObj()
addObj(
obj
):void
Parameters
• obj: BaseTool
<any
>
Returns
void
Overrides
BaseObjectNodeMapping
. addObj
Source
packages/llamaindex/src/objects/base.ts:134
fromNode()
fromNode(
node
):BaseTool
<any
>
Parameters
Returns
BaseTool
<any
>
Overrides
BaseObjectNodeMapping
. fromNode
Source
packages/llamaindex/src/objects/base.ts:138
fromObjects()
fromObjects<
OT
>(objs
, ...args
):BaseObjectNodeMapping
Type parameters
• OT
Parameters
• objs: any
• ...args: any
[]
Returns
Overrides
BaseObjectNodeMapping
. fromObjects
Source
packages/llamaindex/src/objects/base.ts:146
objNodeMapping()
objNodeMapping():
Record
<any
,any
>
Returns
Record
<any
, any
>