Skip to content

Commit

Permalink
treat twitterShouldRespondTemplate as string
Browse files Browse the repository at this point in the history
  • Loading branch information
tcm390 committed Dec 19, 2024
1 parent 81d0273 commit 80a1b83
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/client-twitter/src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
Expand Down

0 comments on commit 80a1b83

Please sign in to comment.