Skip to content

Latest commit

 

History

History
93 lines (50 loc) · 1.92 KB

Service.md

File metadata and controls

93 lines (50 loc) · 1.92 KB

@ai16z/eliza v0.1.4-alpha.3 / Service

Class: abstract Service

Extended by

Constructors

new Service()

new Service(): Service

Returns

Service

Accessors

serviceType

Get Signature

get static serviceType(): ServiceType

Returns

ServiceType

Defined in

packages/core/src/types.ts:955


serviceType

Get Signature

get serviceType(): ServiceType

Returns

ServiceType

Defined in

packages/core/src/types.ts:966

Methods

getInstance()

static getInstance<T>(): T

Type Parameters

T extends Service

Returns

T

Defined in

packages/core/src/types.ts:959


initialize()

abstract initialize(runtime): Promise<void>

Add abstract initialize method that must be implemented by derived classes

Parameters

runtime: IAgentRuntime

Returns

Promise<void>

Defined in

packages/core/src/types.ts:971