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

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ToolsManager(apiClient): ToolsManager

Constructs a new instance of BaseManager.

Parameters

NameTypeDescription

apiClient

The JulepApiClient instance used for API interactions.

Returns

ToolsManager

Inherited from

BaseManager.constructor

Defined in

src/managers/base.ts:12

Properties

apiClient

apiClient: JulepApiClient

The JulepApiClient instance used for API interactions.

Inherited from

BaseManager.apiClient

Defined in

src/managers/base.ts:12

Methods

create

create(«destructured»): Promise<Tool>

Parameters

NameType

«destructured»

Object

agentId

string

tool

Object

tool.function

tool.type

"function" | "webhook"

Returns

Promise<Tool>

Defined in

src/managers/tool.ts:32


delete

delete(«destructured»): Promise<void>

Parameters

NameType

«destructured»

Object

agentId

string

toolId

string

Returns

Promise<void>

Defined in

src/managers/tool.ts:86


list

list(agentId, «destructured»?): Promise<Tool[]>

Parameters

NameTypeDefault value

agentId

string

undefined

«destructured»

Object

{}

limit?

number

10

offset?

number

0

Returns

Promise<Tool[]>

Defined in

src/managers/tool.ts:12


update

update(«destructured», overwrite?): Promise<Tool>

Parameters

NameTypeDefault value

«destructured»

Object

undefined

agentId

string

undefined

tool

undefined

toolId

string

undefined

overwrite

boolean

false

Returns

Promise<Tool>

Defined in

src/managers/tool.ts:54

Last updated