@elizaos/core v1.0.0-beta.7 / 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
Defined in
packages/core/src/types.ts:521
capabilityDescription
abstract
capabilityDescription:string
Service name
Inherited from
Defined in
packages/core/src/types.ts:535
config
config:
ConfigType
The configuration for this service instance
Overrides
Defined in
packages/core/src/types.ts:1732
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