fix: check agentChannel instead of resolvedChannel for delivery guard
This commit is contained in:
parent
26c79d8c08
commit
134fdce48e
@ -29,7 +29,7 @@ export function createTtsTool(opts?: {
|
||||
const channel = readStringParam(params, "channel");
|
||||
const resolvedChannel = channel ?? opts?.agentChannel;
|
||||
|
||||
if (!resolvedChannel) {
|
||||
if (!opts?.agentChannel && !channel) {
|
||||
return {
|
||||
content: [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user