Tool
@julep/sdk / Modules / managers/tool / ToolsManager
Class: ToolsManager
managers/tool.ToolsManager
BaseManager serves as the base class for all manager classes that interact with the Julep API. It provides common functionality needed for API interactions.
Hierarchy
↳
ToolsManager
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ToolsManager(apiClient
): ToolsManager
Constructs a new instance of BaseManager.
Parameters
Returns
Inherited from
Defined in
Properties
apiClient
• apiClient: JulepApiClient
The JulepApiClient instance used for API interactions.
Inherited from
Defined in
Methods
create
▸ create(«destructured»
): Promise
<Tool
>
Parameters
«destructured»
Object
› agentId
string
› tool
Object
› tool.function
› tool.type
"function"
| "webhook"
Returns
Promise
<Tool
>
Defined in
delete
▸ delete(«destructured»
): Promise
<void
>
Parameters
«destructured»
Object
› agentId
string
› toolId
string
Returns
Promise
<void
>
Defined in
list
▸ list(agentId
, «destructured»?
): Promise
<Tool
[]>
Parameters
agentId
string
undefined
«destructured»
Object
{}
› limit?
number
10
› offset?
number
0
Returns
Promise
<Tool
[]>
Defined in
update
▸ update(«destructured»
, overwrite?
): Promise
<Tool
>
Parameters
«destructured»
Object
undefined
› agentId
string
undefined
› toolId
string
undefined
overwrite
boolean
false
Returns
Promise
<Tool
>
Defined in
Last updated