@okcashpro/okai v0.1.7-alpha.1 / ITextGenerationService
Interface: ITextGenerationService
Extends
Accessors
serviceType
Get Signature
get serviceType():
ServiceType
Returns
Inherited from
Defined in
packages/core/src/types.ts:1016
Methods
initialize()
abstract
initialize(runtime
):Promise
<void
>
Add abstract initialize method that must be implemented by derived classes
Parameters
• runtime: IAgentRuntime
Returns
Promise
<void
>
Inherited from
Defined in
packages/core/src/types.ts:1021
initializeModel()
initializeModel():
Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/core/src/types.ts:1136
queueMessageCompletion()
queueMessageCompletion(
context
,temperature
,stop
,frequency_penalty
,presence_penalty
,max_tokens
):Promise
<any
>
Parameters
• context: string
• temperature: number
• stop: string
[]
• frequency_penalty: number
• presence_penalty: number
• max_tokens: number
Returns
Promise
<any
>
Defined in
packages/core/src/types.ts:1137
queueTextCompletion()
queueTextCompletion(
context
,temperature
,stop
,frequency_penalty
,presence_penalty
,max_tokens
):Promise
<string
>
Parameters
• context: string
• temperature: number
• stop: string
[]
• frequency_penalty: number
• presence_penalty: number
• max_tokens: number
Returns
Promise
<string
>
Defined in
packages/core/src/types.ts:1145
getEmbeddingResponse()
getEmbeddingResponse(
input
):Promise
<number
[]>
Parameters
• input: string
Returns
Promise
<number
[]>