From 80a1b8351bd420609450614d34acedce6df52e37 Mon Sep 17 00:00:00 2001 From: Ting Chien Meng Date: Thu, 19 Dec 2024 11:30:17 -0500 Subject: [PATCH] treat twitterShouldRespondTemplate as string --- packages/client-twitter/src/interactions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/client-twitter/src/interactions.ts b/packages/client-twitter/src/interactions.ts index 1a069b62730..bd71684bf41 100644 --- a/packages/client-twitter/src/interactions.ts +++ b/packages/client-twitter/src/interactions.ts @@ -398,9 +398,7 @@ export class TwitterInteractionClient { const shouldRespondContext = composeContext({ state, template: - this.runtime.character.templates?.twitterShouldRespondTemplate?.( - validTargetUsersStr - ) || + this.runtime.character.templates?.twitterShouldRespondTemplate || this.runtime.character?.templates?.shouldRespondTemplate || twitterShouldRespondTemplate(validTargetUsersStr), });