Skip to main content

@elizaos/core v1.0.6 / v2 / TypedService

Interface: TypedService<ConfigType, ResultType>

Generic service interface that provides better type checking for services

Extends​

Type Parameters​

• ConfigType extends object = object

The configuration type for this service

• ResultType = unknown

The result type returned by the service operations

Properties​

config?​

optional config: ConfigType

The configuration for this service instance

Overrides​

Service.config

Defined in​

packages/core/src/specs/v2/types.ts:2124


runtime​

protected runtime: IAgentRuntime

Runtime instance

Inherited from​

Service.runtime

Defined in​

packages/core/src/specs/v2/types.ts:2412


capabilityDescription​

abstract capabilityDescription: string

Service name

Inherited from​

Service.capabilityDescription

Defined in​

packages/core/src/specs/v2/types.ts:2426

Methods​

process()​

process(input): Promise<ResultType>

Process an input with this service

Parameters​

• input: unknown

The input to process

Returns​

Promise<ResultType>

A promise resolving to the result

Defined in​

packages/core/src/specs/v2/types.ts:2131