Skip to main content

@elizaos/core v1.0.12 / TypedService

Interface: TypedService<ConfigType, ResultType>

Generic service interface that provides better type checking for services

Extends​

Type Parameters​

• ConfigType extends Metadata = Metadata

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/service.ts:111


capabilityDescription​

abstract capabilityDescription: string

Service name

Inherited from​

Service.capabilityDescription

Defined in​

packages/core/src/types/service.ts:125


config?​

optional config: ConfigType

The configuration for this service instance

Overrides​

Service.config

Defined in​

packages/core/src/types/service.ts:151

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/service.ts:158