Skip to content

Commit 80a1b83

Browse files
committed
treat twitterShouldRespondTemplate as string
1 parent 81d0273 commit 80a1b83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/client-twitter/src/interactions.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ export class TwitterInteractionClient {
398398
const shouldRespondContext = composeContext({
399399
state,
400400
template:
401-
this.runtime.character.templates?.twitterShouldRespondTemplate?.(
402-
validTargetUsersStr
403-
) ||
401+
this.runtime.character.templates?.twitterShouldRespondTemplate ||
404402
this.runtime.character?.templates?.shouldRespondTemplate ||
405403
twitterShouldRespondTemplate(validTargetUsersStr),
406404
});

0 commit comments

Comments
 (0)