Skip to main content

@ai16z/eliza v1.0.0 / IAgentRuntime

Interface: IAgentRuntime

Properties

agentId

agentId: `${string}-${string}-${string}-${string}-${string}`

Properties

Defined in

packages/core/src/types.ts:532


serverUrl

serverUrl: string

Defined in

packages/core/src/types.ts:533


databaseAdapter

databaseAdapter: IDatabaseAdapter

Defined in

packages/core/src/types.ts:534


token

token: string

Defined in

packages/core/src/types.ts:535


modelProvider

modelProvider: ModelProviderName

Defined in

packages/core/src/types.ts:536


character

character: Character

Defined in

packages/core/src/types.ts:537


providers

providers: Provider[]

Defined in

packages/core/src/types.ts:538


actions

actions: Action[]

Defined in

packages/core/src/types.ts:539


evaluators

evaluators: Evaluator[]

Defined in

packages/core/src/types.ts:540


messageManager

messageManager: IMemoryManager

Defined in

packages/core/src/types.ts:542


descriptionManager

descriptionManager: IMemoryManager

Defined in

packages/core/src/types.ts:543


loreManager

loreManager: IMemoryManager

Defined in

packages/core/src/types.ts:544


services

services: Map<ServiceType, Service>

Defined in

packages/core/src/types.ts:546

Methods

registerMemoryManager()

registerMemoryManager(manager): void

Parameters

manager: IMemoryManager

Returns

void

Defined in

packages/core/src/types.ts:547


getMemoryManager()

getMemoryManager(name): IMemoryManager

Parameters

name: string

Returns

IMemoryManager

Defined in

packages/core/src/types.ts:549


getService()

getService(service): typeof Service

Parameters

service: string

Returns

typeof Service

Defined in

packages/core/src/types.ts:551


registerService()

registerService(service): void

Parameters

service: Service

Returns

void

Defined in

packages/core/src/types.ts:553


getSetting()

getSetting(key): string

Parameters

key: string

Returns

string

Defined in

packages/core/src/types.ts:555


getConversationLength()

getConversationLength(): number

Methods

Returns

number

Defined in

packages/core/src/types.ts:558


processActions()

processActions(message, responses, state?, callback?): Promise<void>

Parameters

message: Memory

responses: Memory[]

state?: State

callback?: HandlerCallback

Returns

Promise<void>

Defined in

packages/core/src/types.ts:559


evaluate()

evaluate(message, state?, didRespond?): Promise<string[]>

Parameters

message: Memory

state?: State

didRespond?: boolean

Returns

Promise<string[]>

Defined in

packages/core/src/types.ts:565


ensureParticipantExists()

ensureParticipantExists(userId, roomId): Promise<void>

Parameters

userId: `${string}-${string}-${string}-${string}-${string}`

roomId: `${string}-${string}-${string}-${string}-${string}`

Returns

Promise<void>

Defined in

packages/core/src/types.ts:570


ensureUserExists()

ensureUserExists(userId, userName, name, source): Promise<void>

Parameters

userId: `${string}-${string}-${string}-${string}-${string}`

userName: string

name: string

source: string

Returns

Promise<void>

Defined in

packages/core/src/types.ts:571


registerAction()

registerAction(action): void

Parameters

action: Action

Returns

void

Defined in

packages/core/src/types.ts:577


ensureConnection()

ensureConnection(userId, roomId, userName?, userScreenName?, source?): Promise<void>

Parameters

userId: `${string}-${string}-${string}-${string}-${string}`

roomId: `${string}-${string}-${string}-${string}-${string}`

userName?: string

userScreenName?: string

source?: string

Returns

Promise<void>

Defined in

packages/core/src/types.ts:578


ensureParticipantInRoom()

ensureParticipantInRoom(userId, roomId): Promise<void>

Parameters

userId: `${string}-${string}-${string}-${string}-${string}`

roomId: `${string}-${string}-${string}-${string}-${string}`

Returns

Promise<void>

Defined in

packages/core/src/types.ts:585


ensureRoomExists()

ensureRoomExists(roomId): Promise<void>

Parameters

roomId: `${string}-${string}-${string}-${string}-${string}`

Returns

Promise<void>

Defined in

packages/core/src/types.ts:586


composeState()

composeState(message, additionalKeys?): Promise<State>

Parameters

message: Memory

additionalKeys?

Returns

Promise<State>

Defined in

packages/core/src/types.ts:587


updateRecentMessageState()

updateRecentMessageState(state): Promise<State>

Parameters

state: State

Returns

Promise<State>

Defined in

packages/core/src/types.ts:591