Skip to main content

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

Interface: TypedService<ConfigType, ResultType>

Generic service interface that provides better type checking for services

Extends​

Type Parameters​

• ConfigType = unknown

The configuration type for this service

• ResultType = unknown

The result type returned by the service operations

Properties​

runtime​

protected runtime: IAgentRuntime

Runtime instance

Inherited from​

Service.runtime

Defined in​

packages/core/src/types.ts:575


capabilityDescription​

abstract capabilityDescription: string

Service name

Inherited from​

Service.capabilityDescription

Defined in​

packages/core/src/types.ts:589


config​

config: ConfigType

The configuration for this service instance

Overrides​

Service.config

Defined in​

packages/core/src/types.ts:2077

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/types.ts:2084