Register TTS tool if provider is available
This commit is contained in:
parent
0c3525884e
commit
7f00559d9d
1 changed files with 4 additions and 0 deletions
|
|
@ -277,6 +277,10 @@ func registerSharedTools(
|
|||
agent.Tools.Register(sendFileTool)
|
||||
}
|
||||
|
||||
if ttsProvider != nil {
|
||||
agent.Tools.Register(tools.NewSendTTSTool(ttsProvider, nil))
|
||||
}
|
||||
|
||||
if cfg.Tools.IsToolEnabled("load_image") {
|
||||
loadImageTool := tools.NewLoadImageTool(
|
||||
agent.Workspace,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue