Agent

@julep/sdk / Modules / managers/agent / AgentsManager

Class: AgentsManager

managers/agent.AgentsManager

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 AgentsManager(apiClient): AgentsManager

Constructs a new instance of BaseManager.

Parameters

Name
Type
Description

apiClient

The JulepApiClient instance used for API interactions.

Returns

AgentsManager

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<Partial<Agent> & { id: string }>

Parameters

Name
Type
Default value

Β«destructuredΒ»

Object

undefined

β€Ί about

string

undefined

β€Ί default_settings?

undefined

β€Ί docs?

Doc[]

[]

β€Ί instructions

string | string[]

[]

β€Ί model?

string

"julep-ai/samantha-1-turbo"

β€Ί name

string

undefined

β€Ί tools?

undefined

Returns

Promise<Partial<Agent> & { id: string }>

Defined in

src/managers/agent.ts:24


delete

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

Parameters

Name
Type

agentId

string

Returns

Promise<void>

Defined in

src/managers/agent.ts:85


get

β–Έ get(agentId): Promise<Agent>

Parameters

Name
Type

agentId

string

Returns

Promise<Agent>

Defined in

src/managers/agent.ts:18


list

β–Έ list(Β«destructuredΒ»?): Promise<Agent[]>

Parameters

Name
Type
Default value

Β«destructuredΒ»

Object

{}

β€Ί limit?

number

100

β€Ί metadataFilter?

Object

{}

β€Ί offset?

number

0

Returns

Promise<Agent[]>

Defined in

src/managers/agent.ts:65


update

β–Έ update(agentId, request, overwrite?): Promise<Partial<Agent> & { id: string }>

Parameters

Name
Type

agentId

string

overwrite?

false

Returns

Promise<Partial<Agent> & { id: string }>

Defined in

src/managers/agent.ts:92

β–Έ update(agentId, request, overwrite): Promise<Partial<Agent> & { id: string }>

Parameters

Name
Type

agentId

string

overwrite

true

Returns

Promise<Partial<Agent> & { id: string }>

Defined in

src/managers/agent.ts:98

Last updated