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:14

Properties

apiClient

β€’ apiClient: JulepApiClient

The JulepApiClient instance used for API interactions.

Inherited from

BaseManager.apiClient

Defined in

src/managers/base.ts:14

Methods

create

β–Έ create(options): Promise<Tool>

Parameters

NameType

options

Object

options.agentId

string & Format<"uuid">

options.tool

Object

options.tool.function

options.tool.type

"function" | "webhook"

Returns

Promise<Tool>

Defined in

src/managers/tool.ts:44


delete

β–Έ delete(options): Promise<void>

Parameters

NameType

options

Object

options.agentId

string & Format<"uuid">

options.toolId

string & Format<"uuid">

Returns

Promise<void>

Defined in

src/managers/tool.ts:105


list

β–Έ list(agentId, options?): Promise<Tool[]>

Parameters

NameType

agentId

string & Format<"uuid">

options

Object

options.limit?

number & Type<"uint32"> & Minimum<1> & Maximum<1000>

options.offset?

number & Type<"uint32"> & Minimum<0>

Returns

Promise<Tool[]>

Defined in

src/managers/tool.ts:14


update

β–Έ update(options, overwrite?): Promise<Tool>

Parameters

NameTypeDefault value

options

Object

undefined

options.agentId

string & Format<"uuid">

undefined

options.tool

undefined

options.toolId

string & Format<"uuid">

undefined

overwrite

boolean

false

Returns

Promise<Tool>

Defined in

src/managers/tool.ts:71

Last updated