Skip to main content

@elizaos/core v1.0.0-beta.51 / findEntityByName

Function: findEntityByName()

findEntityByName(runtime, message, state): Promise<Entity>

Finds an entity by name in the given runtime environment.

Parameters​

• runtime: IAgentRuntime

The agent runtime environment.

• message: Memory

The memory message containing relevant information.

• state: State

The current state of the system.

Returns​

Promise<Entity>

A promise that resolves to the found entity or null if not found.

Defined in​

packages/core/src/entities.ts:134