Skip to content

Commit a9e998b

Browse files
committed
added similes and removed logging
1 parent 9548707 commit a9e998b

File tree

4 files changed

+3
-34
lines changed

4 files changed

+3
-34
lines changed

characters/sbf.character.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SBF",
3-
"clients": [],
3+
"clients": ["twitter"],
44
"modelProvider": "anthropic",
55
"settings": {
66
"voice": {

packages/client-twitter/src/interactions.ts

-31
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ export class TwitterInteractionClient {
331331
};
332332
const currentPost = formatTweet(tweet);
333333

334-
elizaLogger.debug("Thread: ", thread);
335334
const formattedConversation = thread
336335
.map(
337336
(tweet) => `@${tweet.username} (${new Date(
@@ -346,13 +345,9 @@ export class TwitterInteractionClient {
346345
)
347346
.join("\n\n");
348347

349-
elizaLogger.debug("formattedConversation: ", formattedConversation);
350-
351348
const imageDescriptionsArray = [];
352349
try{
353-
elizaLogger.debug('Getting images');
354350
for (const photo of tweet.photos) {
355-
elizaLogger.debug(photo.url);
356351
const description = await this.runtime
357352
.getService<IImageDescriptionService>(
358353
ServiceType.IMAGE_DESCRIPTION
@@ -460,18 +455,6 @@ export class TwitterInteractionClient {
460455
this.runtime.character?.templates?.messageHandlerTemplate ||
461456
twitterMessageHandlerTemplate,
462457
});
463-
// Add these debug logs:
464-
elizaLogger.debug("=== DEBUG: Template Context ===");
465-
elizaLogger.debug("Actions available:", {
466-
actionNames: state.actionNames,
467-
actions: state.actions
468-
});
469-
elizaLogger.debug("Character examples:", {
470-
messageExamples: this.runtime.character.messageExamples,
471-
postExamples: this.runtime.character.postExamples
472-
});
473-
elizaLogger.debug("Full context:", context);
474-
elizaLogger.debug("=== END DEBUG ===");
475458

476459
const response = await generateMessageResponse({
477460
runtime: this.runtime,
@@ -626,12 +609,6 @@ export class TwitterInteractionClient {
626609
visited.add(currentTweet.id);
627610
thread.unshift(currentTweet);
628611

629-
elizaLogger.debug("Current thread state:", {
630-
length: thread.length,
631-
currentDepth: depth,
632-
tweetId: currentTweet.id,
633-
});
634-
635612
if (currentTweet.inReplyToStatusId) {
636613
elizaLogger.log(
637614
"Fetching parent tweet:",
@@ -671,14 +648,6 @@ export class TwitterInteractionClient {
671648
// Need to bind this context for the inner function
672649
await processThread.bind(this)(tweet, 0);
673650

674-
elizaLogger.debug("Final thread built:", {
675-
totalTweets: thread.length,
676-
tweetIds: thread.map((t) => ({
677-
id: t.id,
678-
text: t.text?.slice(0, 50),
679-
})),
680-
});
681-
682651
return thread;
683652
}
684653
}

packages/plugin-solana/src/actions/transfer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If no token address is mentioned, respond with null.
6565

6666
export default {
6767
name: "SEND_TOKEN",
68-
similes: ["TRANSFER_TOKEN", "SEND_TOKENS", "PAY_TOKEN"],
68+
similes: ["TRANSFER_TOKEN", "TRANSFER_TOKENS", "SEND_TOKENS", "PAY_TOKEN", "PAY_TOKENS", "PAY"],
6969
validate: async (runtime: IAgentRuntime, message: Memory) => {
7070
// Always return true for token transfers, letting the handler deal with specifics
7171
elizaLogger.log("Validating token transfer from user:", message.userId);

packages/plugin-solana/src/actions/transfer_sol.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Extract the following information about the requested SOL transfer:
5353

5454
export default {
5555
name: "SEND_SOL",
56-
similes: ["TRANSFER_SOL", "PAY_SOL"],
56+
similes: ["TRANSFER_SOL", "PAY_SOL", "PAY_SOL"],
5757
validate: async (runtime: IAgentRuntime, message: Memory) => {
5858
// Always return true for SOL transfers, letting the handler deal with specifics
5959
elizaLogger.log("Validating SOL transfer from user:", message.userId);

0 commit comments

Comments
 (0)