@okcashpro/okai v0.1.7-alpha.1 / Service
Class: abstract
Service
Extended by
IImageDescriptionService
ITranscriptionService
IVideoService
ITextGenerationService
IBrowserService
ISpeechService
IPdfService
IAwsS3Service
ISlackService
Constructors
new Service()
new Service():
Service
Returns
Accessors
serviceType
Get Signature
get
static
serviceType():ServiceType
Returns
Defined in
packages/core/src/types.ts:1005
serviceType
Get Signature
get serviceType():
ServiceType
Returns
Defined in
packages/core/src/types.ts:1016
Methods
getInstance()
static
getInstance<T
>():T
Type Parameters
• T extends Service
Returns
T
Defined in
packages/core/src/types.ts:1009
initialize()
abstract
initialize(runtime
):Promise
<void
>
Add abstract initialize method that must be implemented by derived classes
Parameters
• runtime: IAgentRuntime
Returns
Promise
<void
>