@cloudbase/aiagent-framework
Preparing search index...
aitools
AITools
Class AITools
Index
Constructors
constructor
Methods
get
Text
To
Speech
get
Wx
Media
Content
search
DB
search
File
search
Knowledge
Base
search
Network
send
Wx
Client
Message
speech
To
Text
text
To
Speech
Constructors
constructor
new
AITools
(
context
:
TcbContext
)
:
AITools
Parameters
context
:
TcbContext
Returns
AITools
Methods
get
Text
To
Speech
getTextToSpeech
(
botId
:
string
,
taskId
:
string
)
:
Promise
<
GetTextToSpeechResult
>
Parameters
botId
:
string
taskId
:
string
Returns
Promise
<
GetTextToSpeechResult
>
get
Wx
Media
Content
getWxMediaContent
(
botId
:
string
,
triggerSrc
:
string
,
media
:
string
,
)
:
Promise
<
GetWxMediaContentResult
>
Parameters
botId
:
string
triggerSrc
:
string
media
:
string
Returns
Promise
<
GetWxMediaContentResult
>
search
DB
searchDB
(
botId
:
string
,
msg
:
string
,
databaseModel
:
string
[]
,
)
:
Promise
<
SearchDBResult
>
Parameters
botId
:
string
msg
:
string
databaseModel
:
string
[]
Returns
Promise
<
SearchDBResult
>
search
File
searchFile
(
botId
:
string
,
msg
:
string
,
files
:
string
[]
,
)
:
Promise
<
SearchFileResult
>
Parameters
botId
:
string
msg
:
string
files
:
string
[]
Returns
Promise
<
SearchFileResult
>
search
Knowledge
Base
searchKnowledgeBase
(
botId
:
string
,
msg
:
string
,
knowledgeBase
:
string
[]
,
)
:
Promise
<
SearchKnowledgeResult
>
Parameters
botId
:
string
msg
:
string
knowledgeBase
:
string
[]
Returns
Promise
<
SearchKnowledgeResult
>
search
Network
searchNetwork
(
botId
:
string
,
msg
:
string
)
:
Promise
<
SearchNetworkResult
>
Parameters
botId
:
string
msg
:
string
Returns
Promise
<
SearchNetworkResult
>
send
Wx
Client
Message
sendWxClientMessage
(
botId
:
string
,
triggerSrc
:
string
,
wxClientMessage
:
WxClientMessageDto
,
)
:
Promise
<
toolsCommonResp
>
Parameters
botId
:
string
triggerSrc
:
string
wxClientMessage
:
WxClientMessageDto
Returns
Promise
<
toolsCommonResp
>
speech
To
Text
speechToText
(
botId
:
string
,
engSerViceType
:
string
,
voiceFormat
:
string
,
voiceUrl
:
string
,
)
:
Promise
<
SpeechToTextResult
>
Parameters
botId
:
string
engSerViceType
:
string
voiceFormat
:
string
voiceUrl
:
string
Returns
Promise
<
SpeechToTextResult
>
text
To
Speech
textToSpeech
(
botId
:
string
,
text
:
string
,
voiceType
:
number
,
)
:
Promise
<
TextToSpeechResult
>
Parameters
botId
:
string
text
:
string
voiceType
:
number
Returns
Promise
<
TextToSpeechResult
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Text
To
Speech
get
Wx
Media
Content
search
DB
search
File
search
Knowledge
Base
search
Network
send
Wx
Client
Message
speech
To
Text
text
To
Speech
@cloudbase/aiagent-framework
Loading...