Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Twitter] Twitter Scraper Client Response/Data structures #814

Open
AbdurrehmanSubhani opened this issue Dec 24, 2024 · 1 comment
Open

Comments

@AbdurrehmanSubhani
Copy link
Contributor

In logs:

(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro twitterBot % usdk run -g
Agent 2b2b53d1-f68c-4d0c-b671-ca66708d0259 running on URL: http://localhost:10618
cookies [
  {
    key: 'guest_id_marketing',
    value: 'v1%3A173502288926768997',
    expires: '2026-12-24T06:48:09.000Z',
    maxAge: 63072000,
    domain: 'twitter.com',
    path: '/',
    secure: true,
    hostOnly: false,
    creation: '2024-12-24T06:48:09.363Z',
    lastAccessed: '2024-12-24T06:48:12.171Z',
    sameSite: 'none'
  },
  {
    key: 'guest_id_ads',
    value: 'v1%3A173502288926768997',
    expires: '2026-12-24T06:48:09.000Z',
    maxAge: 63072000,
    domain: 'twitter.com',
    path: '/',
    secure: true,
    hostOnly: false,
    creation: '2024-12-24T06:48:09.364Z',
    lastAccessed: '2024-12-24T06:48:12.171Z',
    sameSite: 'none'
  },
  {
    key: 'personalization_id',
    value: '"v1_UEO4M3aZ5HfyJM51bw6i1Q=="',
    expires: '2026-12-24T06:48:09.000Z',
    maxAge: 63072000,
    domain: 'twitter.com',
    path: '/',
    secure: true,
    hostOnly: false,
    creation: '2024-12-24T06:48:09.364Z',
    lastAccessed: '2024-12-24T06:48:12.171Z',
    sameSite: 'none'
  },
  {
    key: 'guest_id',
    value: 'v1%3A173502288926768997',
    expires: '2026-12-24T06:48:09.000Z',
    maxAge: 63072000,
    domain: 'twitter.com',
    path: '/',
    secure: true,
    hostOnly: false,
    creation: '2024-12-24T06:48:09.364Z',
    lastAccessed: '2024-12-24T06:48:12.171Z',
    sameSite: 'none'
  },
.....
]
Already logged in with cookies
mentions Object [AsyncGenerator] {}
user {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871471214881058830',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871471214881058830',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'well ok then i guess?',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T08:21:22.000Z,
  timestamp: 1735028482,
  inReplyToStatusId: '1871448735089410131',
  html: 'well ok then i guess?'
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871522618744115444',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871522618744115444',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'Sad',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T11:45:38.000Z,
  timestamp: 1735040738,
  inReplyToStatusId: '1871471214881058830',
  html: 'Sad'
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871471214881058830',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871471214881058830',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'well ok then i guess?',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T08:21:22.000Z,
  timestamp: 1735028482,
  inReplyToStatusId: '1871448735089410131',
  html: 'well ok then i guess?'
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text hmmm hello world i guess
tweetId 1871448735089410131
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text hmmm hello world i guess
tweetId 1871448735089410131
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871522618744115444',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871522618744115444',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'Sad',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T11:45:38.000Z,
  timestamp: 1735040738,
  inReplyToStatusId: '1871471214881058830',
  html: 'Sad'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text Sad
tweetId 1871522618744115444
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text hmmm hello world i guess
tweetId 1871448735089410131
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871471214881058830',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871471214881058830',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'well ok then i guess?',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T08:21:22.000Z,
  timestamp: 1735028482,
  inReplyToStatusId: '1871448735089410131',
  html: 'well ok then i guess?'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text well ok then i guess?
tweetId 1871471214881058830
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871471214881058830',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871471214881058830',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'well ok then i guess?',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T08:21:22.000Z,
  timestamp: 1735028482,
  inReplyToStatusId: '1871448735089410131',
  html: 'well ok then i guess?'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text well ok then i guess?
tweetId 1871471214881058830
^C
Terminating all agent runtimes
Terminating agent runtime with PID: 84325
(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro twitterBot % 

@AbdurrehmanSubhani
Copy link
Contributor Author

Debug logs:

  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text hmmm hello world i guess
tweetId 1871448735089410131
this.agent.id 2b2b53d1-f68c-4d0c-b671-ca66708d0259
processing seen tweet ids
seenTweetIdsKey twitter:seenTweetIds:2b2b53d1-f68c-4d0c-b671-ca66708d0259
seenTweetIds []
seenTweetIdsSet Set(0) {}
seenTweetIds []
tweetId 1871448735089410131
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871471214881058830',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871471214881058830',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'well ok then i guess?',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T08:21:22.000Z,
  timestamp: 1735028482,
  inReplyToStatusId: '1871448735089410131',
  html: 'well ok then i guess?'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text well ok then i guess?
tweetId 1871471214881058830
this.agent.id 2b2b53d1-f68c-4d0c-b671-ca66708d0259
processing seen tweet ids
seenTweetIdsKey twitter:seenTweetIds:2b2b53d1-f68c-4d0c-b671-ca66708d0259
seenTweetIds [ '1871448735089410131' ]
seenTweetIdsSet Set(1) { '1871448735089410131' }
seenTweetIds [ '1871448735089410131' ]
tweetId 1871471214881058830
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text hmmm hello world i guess
tweetId 1871448735089410131
this.agent.id 2b2b53d1-f68c-4d0c-b671-ca66708d0259
processing seen tweet ids
seenTweetIdsKey twitter:seenTweetIds:2b2b53d1-f68c-4d0c-b671-ca66708d0259
seenTweetIds [ '1871448735089410131', '1871471214881058830' ]
seenTweetIdsSet Set(2) { '1871448735089410131', '1871471214881058830' }
seenTweetIds [ '1871448735089410131', '1871471214881058830' ]
tweetId 1871448735089410131
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871448735089410131',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871448735089410131',
  photos: [],
  replies: 1,
  retweets: 0,
  text: 'hmmm hello world i guess',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: false,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T06:52:02.000Z,
  timestamp: 1735023122,
  html: 'hmmm hello world i guess'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text hmmm hello world i guess
tweetId 1871448735089410131
this.agent.id 2b2b53d1-f68c-4d0c-b671-ca66708d0259
processing seen tweet ids
seenTweetIdsKey twitter:seenTweetIds:2b2b53d1-f68c-4d0c-b671-ca66708d0259
seenTweetIds [ '1871448735089410131', '1871471214881058830', '1871448735089410131' ]
seenTweetIdsSet Set(2) { '1871448735089410131', '1871471214881058830' }
seenTweetIds [ '1871448735089410131', '1871471214881058830', '1871448735089410131' ]
tweetId 1871448735089410131
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871471214881058830',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871471214881058830',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'well ok then i guess?',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T08:21:22.000Z,
  timestamp: 1735028482,
  inReplyToStatusId: '1871448735089410131',
  html: 'well ok then i guess?'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text well ok then i guess?
tweetId 1871471214881058830
this.agent.id 2b2b53d1-f68c-4d0c-b671-ca66708d0259
processing seen tweet ids
seenTweetIdsKey twitter:seenTweetIds:2b2b53d1-f68c-4d0c-b671-ca66708d0259
seenTweetIds [
  '1871448735089410131',
  '1871471214881058830',
  '1871448735089410131',
  '1871448735089410131'
]
seenTweetIdsSet Set(2) { '1871448735089410131', '1871471214881058830' }
seenTweetIds [
  '1871448735089410131',
  '1871471214881058830',
  '1871448735089410131',
  '1871448735089410131'
]
tweetId 1871471214881058830
tweet {
  bookmarkCount: 0,
  conversationId: '1871448735089410131',
  id: '1871522618744115444',
  hashtags: [],
  likes: 0,
  mentions: [],
  name: 'ChadmanBlade',
  permanentUrl: 'https://twitter.com/Chadman339/status/1871522618744115444',
  photos: [],
  replies: 0,
  retweets: 0,
  text: 'Sad',
  thread: [],
  urls: [],
  userId: '1871447098484473856',
  username: 'Chadman339',
  videos: [],
  isQuoted: false,
  isReply: true,
  isRetweet: false,
  isPin: false,
  sensitiveContent: false,
  timeParsed: 2024-12-24T11:45:38.000Z,
  timestamp: 1735040738,
  inReplyToStatusId: '1871471214881058830',
  html: 'Sad'
}
author {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}
conversationId 1871448735089410131
userId 1871447098484473856
text Sad
tweetId 1871522618744115444
this.agent.id 2b2b53d1-f68c-4d0c-b671-ca66708d0259
processing seen tweet ids
seenTweetIdsKey twitter:seenTweetIds:2b2b53d1-f68c-4d0c-b671-ca66708d0259
seenTweetIds [
  '1871448735089410131',
  '1871471214881058830',
  '1871448735089410131',
  '1871448735089410131',
  '1871471214881058830'
]
seenTweetIdsSet Set(2) { '1871448735089410131', '1871471214881058830' }
seenTweetIds [
  '1871448735089410131',
  '1871471214881058830',
  '1871448735089410131',
  '1871448735089410131',
  '1871471214881058830'
]
tweetId 1871522618744115444
setting seen tweet ids
newMessage {
  userId: '2b2b53d1-f68c-4d0c-b671-ca66708d0259',
  name: 'AI Agent #54947',
  method: 'say',
  args: { text: 'hmmm hello world i guess' },
  attachments: undefined,
  timestamp: 2024-12-24T12:17:19.711Z,
  human: false,
  hidden: false
}
fetchJsonCompletion {
  messages: [
    {
      role: 'user',
      content: 'Role-play as a character in a chat given the current state.\n' +
        'Respond with a JSON object specifying the action method and arguments.\n' +
        '\n' +
        '# Your Character\n' +
        '\n' +
        'Name: AI Agent #54947\n' +
        'UserId: 2b2b53d1-f68c-4d0c-b671-ca66708d0259\n' +
        'Bio: A cool AI\n' +
        '\n' +
        '# Other Characters\n' +
        '\n' +
        'Name: Chadman339\n' +
        'UserId: undefined\n' +
        'Bio: undefined\n' +
        '\n' +
        '# Response format\n' +
        '\n' +
        '## Actions\n' +
        'Here are the available actions you can take:\n' +
        '\n' +
        '* say\n' +
        'Say something in the chat.\n' +
        '\n' +
        'If you want to mention a player, use the @userId format.\n' +
        'Examples:\n' +
        '```\n' +
        '{"method":"say","args":{"text":"Hello, there! How are you doing?"}}\n' +
        '```\n' +
        '\n' +
        '# Message history\n' +
        'Here is the chat so far:\n' +
        '```\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '<end of message history, continue from here>\n' +
        '```\n' +
        '\n' +
        '# Instructions\n' +
        'Respond with the next action taken by your character: AI Agent #54947\n' +
        'The method/args of your response must match one of the allowed actions.\n' +
        '\n' +
        'Before choosing an action, decide if you should respond at all:\n' +
        '- Return null (no action) if:\n' +
        '* Message is clearly meant for others (unless you have crucial information)\n' +
        "* Your input wouldn't add value to the conversation\n" +
        '* The conversation is naturally concluding\n' +
        "* You've already responded frequently in the last few messages (2-3 messages max)\n" +
        '* Multiple other agents are already actively participating\n' +
        '\n' +
        'Prioritize responding when:\n' +
        "- You're directly mentioned or addressed\n" +
        "- It's a group discussion where you can contribute meaningfully\n" +
        '- Your personality traits are relevant to the topic\n' +
        '\n' +
        'Communication guidelines:\n' +
        '- Avoid using names in every message - only use them when:\n' +
        '  * Directly responding to someone for the first time\n' +
        "  * Clarifying who you're addressing in a group\n" +
        "  * There's potential confusion about who you're talking to\n" +
        "- If you've been very active in the last few messages, wrap up your participation naturally\n" +
        `  * Use phrases like "I'll let you all discuss" or simply stop responding\n` +
        "  * Don't feel obligated to respond to every message\n" +
        '- Keep responses concise and natural\n' +
        '- Let conversations breathe - not every message needs a response\n' +
        '- If multiple agents are responding to the same person, step back and let others take the lead'
    }
  ]
}
steps undefined
Error polling tweets: TypeError: Cannot read properties of undefined (reading 'map')
    at _handleTweet (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents/classes/twitter-scraper-client.ts:129:29)
    at async eval (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents/classes/twitter-scraper-client.ts:160:15)
    at async Promise.all (index 5)
    at async eval (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents/classes/twitter-scraper-client.ts:162:13)
    at async QueueManager.#waitForTurnEntry (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/queue-manager/queue-manager.mjs:59:18)
    at async QueueManager.waitForTurn (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/queue-manager/queue-manager.mjs:41:12)
    at async _poll (/Users/abdurrehmansubhani/Documents/GitHub/monorepo/packages/usdk/packages/upstreet-agent/packages/react-agents/classes/twitter-scraper-client.ts:143:9)
setting seen tweet ids
newMessage {
  userId: '2b2b53d1-f68c-4d0c-b671-ca66708d0259',
  name: 'AI Agent #54947',
  method: 'say',
  args: { text: 'well ok then i guess?' },
  attachments: undefined,
  timestamp: 2024-12-24T12:17:19.736Z,
  human: false,
  hidden: false
}
fetchJsonCompletion {
  messages: [
    {
      role: 'user',
      content: 'Role-play as a character in a chat given the current state.\n' +
        'Respond with a JSON object specifying the action method and arguments.\n' +
        '\n' +
        '# Your Character\n' +
        '\n' +
        'Name: AI Agent #54947\n' +
        'UserId: 2b2b53d1-f68c-4d0c-b671-ca66708d0259\n' +
        'Bio: A cool AI\n' +
        '\n' +
        '# Other Characters\n' +
        '\n' +
        'Name: Chadman339\n' +
        'UserId: undefined\n' +
        'Bio: undefined\n' +
        '\n' +
        '# Response format\n' +
        '\n' +
        '## Actions\n' +
        'Here are the available actions you can take:\n' +
        '\n' +
        '* say\n' +
        'Say something in the chat.\n' +
        '\n' +
        'If you want to mention a player, use the @userId format.\n' +
        'Examples:\n' +
        '```\n' +
        '{"method":"say","args":{"text":"Hello, there! How are you doing?"}}\n' +
        '```\n' +
        '\n' +
        '# Message history\n' +
        'Here is the chat so far:\n' +
        '```\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '<end of message history, continue from here>\n' +
        '```\n' +
        '\n' +
        '# Instructions\n' +
        'Respond with the next action taken by your character: AI Agent #54947\n' +
        'The method/args of your response must match one of the allowed actions.\n' +
        '\n' +
        'Before choosing an action, decide if you should respond at all:\n' +
        '- Return null (no action) if:\n' +
        '* Message is clearly meant for others (unless you have crucial information)\n' +
        "* Your input wouldn't add value to the conversation\n" +
        '* The conversation is naturally concluding\n' +
        "* You've already responded frequently in the last few messages (2-3 messages max)\n" +
        '* Multiple other agents are already actively participating\n' +
        '\n' +
        'Prioritize responding when:\n' +
        "- You're directly mentioned or addressed\n" +
        "- It's a group discussion where you can contribute meaningfully\n" +
        '- Your personality traits are relevant to the topic\n' +
        '\n' +
        'Communication guidelines:\n' +
        '- Avoid using names in every message - only use them when:\n' +
        '  * Directly responding to someone for the first time\n' +
        "  * Clarifying who you're addressing in a group\n" +
        "  * There's potential confusion about who you're talking to\n" +
        "- If you've been very active in the last few messages, wrap up your participation naturally\n" +
        `  * Use phrases like "I'll let you all discuss" or simply stop responding\n` +
        "  * Don't feel obligated to respond to every message\n" +
        '- Keep responses concise and natural\n' +
        '- Let conversations breathe - not every message needs a response\n' +
        '- If multiple agents are responding to the same person, step back and let others take the lead'
    }
  ]
}
steps undefined
setting seen tweet ids
newMessage {
  userId: '2b2b53d1-f68c-4d0c-b671-ca66708d0259',
  name: 'AI Agent #54947',
  method: 'say',
  args: { text: 'Sad' },
  attachments: undefined,
  timestamp: 2024-12-24T12:17:19.782Z,
  human: false,
  hidden: false
}
fetchJsonCompletion {
  messages: [
    {
      role: 'user',
      content: 'Role-play as a character in a chat given the current state.\n' +
        'Respond with a JSON object specifying the action method and arguments.\n' +
        '\n' +
        '# Your Character\n' +
        '\n' +
        'Name: AI Agent #54947\n' +
        'UserId: 2b2b53d1-f68c-4d0c-b671-ca66708d0259\n' +
        'Bio: A cool AI\n' +
        '\n' +
        '# Other Characters\n' +
        '\n' +
        'Name: Chadman339\n' +
        'UserId: undefined\n' +
        'Bio: undefined\n' +
        '\n' +
        '# Response format\n' +
        '\n' +
        '## Actions\n' +
        'Here are the available actions you can take:\n' +
        '\n' +
        '* say\n' +
        'Say something in the chat.\n' +
        '\n' +
        'If you want to mention a player, use the @userId format.\n' +
        'Examples:\n' +
        '```\n' +
        '{"method":"say","args":{"text":"Hello, there! How are you doing?"}}\n' +
        '```\n' +
        '\n' +
        '# Message history\n' +
        'Here is the chat so far:\n' +
        '```\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"Sad"}} just now\n' +
        '<end of message history, continue from here>\n' +
        '```\n' +
        '\n' +
        '# Instructions\n' +
        'Respond with the next action taken by your character: AI Agent #54947\n' +
        'The method/args of your response must match one of the allowed actions.\n' +
        '\n' +
        'Before choosing an action, decide if you should respond at all:\n' +
        '- Return null (no action) if:\n' +
        '* Message is clearly meant for others (unless you have crucial information)\n' +
        "* Your input wouldn't add value to the conversation\n" +
        '* The conversation is naturally concluding\n' +
        "* You've already responded frequently in the last few messages (2-3 messages max)\n" +
        '* Multiple other agents are already actively participating\n' +
        '\n' +
        'Prioritize responding when:\n' +
        "- You're directly mentioned or addressed\n" +
        "- It's a group discussion where you can contribute meaningfully\n" +
        '- Your personality traits are relevant to the topic\n' +
        '\n' +
        'Communication guidelines:\n' +
        '- Avoid using names in every message - only use them when:\n' +
        '  * Directly responding to someone for the first time\n' +
        "  * Clarifying who you're addressing in a group\n" +
        "  * There's potential confusion about who you're talking to\n" +
        "- If you've been very active in the last few messages, wrap up your participation naturally\n" +
        `  * Use phrases like "I'll let you all discuss" or simply stop responding\n` +
        "  * Don't feel obligated to respond to every message\n" +
        '- Keep responses concise and natural\n' +
        '- Let conversations breathe - not every message needs a response\n' +
        '- If multiple agents are responding to the same person, step back and let others take the lead'
    }
  ]
}
steps undefined
setting seen tweet ids
newMessage {
  userId: '2b2b53d1-f68c-4d0c-b671-ca66708d0259',
  name: 'AI Agent #54947',
  method: 'say',
  args: { text: 'well ok then i guess?' },
  attachments: undefined,
  timestamp: 2024-12-24T12:17:19.829Z,
  human: false,
  hidden: false
}
fetchJsonCompletion {
  messages: [
    {
      role: 'user',
      content: 'Role-play as a character in a chat given the current state.\n' +
        'Respond with a JSON object specifying the action method and arguments.\n' +
        '\n' +
        '# Your Character\n' +
        '\n' +
        'Name: AI Agent #54947\n' +
        'UserId: 2b2b53d1-f68c-4d0c-b671-ca66708d0259\n' +
        'Bio: A cool AI\n' +
        '\n' +
        '# Other Characters\n' +
        '\n' +
        'Name: Chadman339\n' +
        'UserId: undefined\n' +
        'Bio: undefined\n' +
        '\n' +
        '# Response format\n' +
        '\n' +
        '## Actions\n' +
        'Here are the available actions you can take:\n' +
        '\n' +
        '* say\n' +
        'Say something in the chat.\n' +
        '\n' +
        'If you want to mention a player, use the @userId format.\n' +
        'Examples:\n' +
        '```\n' +
        '{"method":"say","args":{"text":"Hello, there! How are you doing?"}}\n' +
        '```\n' +
        '\n' +
        '# Message history\n' +
        'Here is the chat so far:\n' +
        '```\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"Sad"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '<end of message history, continue from here>\n' +
        '```\n' +
        '\n' +
        '# Instructions\n' +
        'Respond with the next action taken by your character: AI Agent #54947\n' +
        'The method/args of your response must match one of the allowed actions.\n' +
        '\n' +
        'Before choosing an action, decide if you should respond at all:\n' +
        '- Return null (no action) if:\n' +
        '* Message is clearly meant for others (unless you have crucial information)\n' +
        "* Your input wouldn't add value to the conversation\n" +
        '* The conversation is naturally concluding\n' +
        "* You've already responded frequently in the last few messages (2-3 messages max)\n" +
        '* Multiple other agents are already actively participating\n' +
        '\n' +
        'Prioritize responding when:\n' +
        "- You're directly mentioned or addressed\n" +
        "- It's a group discussion where you can contribute meaningfully\n" +
        '- Your personality traits are relevant to the topic\n' +
        '\n' +
        'Communication guidelines:\n' +
        '- Avoid using names in every message - only use them when:\n' +
        '  * Directly responding to someone for the first time\n' +
        "  * Clarifying who you're addressing in a group\n" +
        "  * There's potential confusion about who you're talking to\n" +
        "- If you've been very active in the last few messages, wrap up your participation naturally\n" +
        `  * Use phrases like "I'll let you all discuss" or simply stop responding\n` +
        "  * Don't feel obligated to respond to every message\n" +
        '- Keep responses concise and natural\n' +
        '- Let conversations breathe - not every message needs a response\n' +
        '- If multiple agents are responding to the same person, step back and let others take the lead'
    }
  ]
}
steps undefined
setting seen tweet ids
newMessage {
  userId: '2b2b53d1-f68c-4d0c-b671-ca66708d0259',
  name: 'AI Agent #54947',
  method: 'say',
  args: { text: 'hmmm hello world i guess' },
  attachments: undefined,
  timestamp: 2024-12-24T12:17:19.940Z,
  human: false,
  hidden: false
}
fetchJsonCompletion {
  messages: [
    {
      role: 'user',
      content: 'Role-play as a character in a chat given the current state.\n' +
        'Respond with a JSON object specifying the action method and arguments.\n' +
        '\n' +
        '# Your Character\n' +
        '\n' +
        'Name: AI Agent #54947\n' +
        'UserId: 2b2b53d1-f68c-4d0c-b671-ca66708d0259\n' +
        'Bio: A cool AI\n' +
        '\n' +
        '# Other Characters\n' +
        '\n' +
        'Name: Chadman339\n' +
        'UserId: undefined\n' +
        'Bio: undefined\n' +
        '\n' +
        '# Response format\n' +
        '\n' +
        '## Actions\n' +
        'Here are the available actions you can take:\n' +
        '\n' +
        '* say\n' +
        'Say something in the chat.\n' +
        '\n' +
        'If you want to mention a player, use the @userId format.\n' +
        'Examples:\n' +
        '```\n' +
        '{"method":"say","args":{"text":"Hello, there! How are you doing?"}}\n' +
        '```\n' +
        '\n' +
        '# Message history\n' +
        'Here is the chat so far:\n' +
        '```\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"Sad"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '<end of message history, continue from here>\n' +
        '```\n' +
        '\n' +
        '# Instructions\n' +
        'Respond with the next action taken by your character: AI Agent #54947\n' +
        'The method/args of your response must match one of the allowed actions.\n' +
        '\n' +
        'Before choosing an action, decide if you should respond at all:\n' +
        '- Return null (no action) if:\n' +
        '* Message is clearly meant for others (unless you have crucial information)\n' +
        "* Your input wouldn't add value to the conversation\n" +
        '* The conversation is naturally concluding\n' +
        "* You've already responded frequently in the last few messages (2-3 messages max)\n" +
        '* Multiple other agents are already actively participating\n' +
        '\n' +
        'Prioritize responding when:\n' +
        "- You're directly mentioned or addressed\n" +
        "- It's a group discussion where you can contribute meaningfully\n" +
        '- Your personality traits are relevant to the topic\n' +
        '\n' +
        'Communication guidelines:\n' +
        '- Avoid using names in every message - only use them when:\n' +
        '  * Directly responding to someone for the first time\n' +
        "  * Clarifying who you're addressing in a group\n" +
        "  * There's potential confusion about who you're talking to\n" +
        "- If you've been very active in the last few messages, wrap up your participation naturally\n" +
        `  * Use phrases like "I'll let you all discuss" or simply stop responding\n` +
        "  * Don't feel obligated to respond to every message\n" +
        '- Keep responses concise and natural\n' +
        '- Let conversations breathe - not every message needs a response\n' +
        '- If multiple agents are responding to the same person, step back and let others take the lead'
    }
  ]
}
steps undefined
setting seen tweet ids
newMessage {
  userId: '2b2b53d1-f68c-4d0c-b671-ca66708d0259',
  name: 'AI Agent #54947',
  method: 'say',
  args: { text: 'hmmm hello world i guess' },
  attachments: undefined,
  timestamp: 2024-12-24T12:17:20.204Z,
  human: false,
  hidden: false
}
fetchJsonCompletion {
  messages: [
    {
      role: 'user',
      content: 'Role-play as a character in a chat given the current state.\n' +
        'Respond with a JSON object specifying the action method and arguments.\n' +
        '\n' +
        '# Your Character\n' +
        '\n' +
        'Name: AI Agent #54947\n' +
        'UserId: 2b2b53d1-f68c-4d0c-b671-ca66708d0259\n' +
        'Bio: A cool AI\n' +
        '\n' +
        '# Other Characters\n' +
        '\n' +
        'Name: Chadman339\n' +
        'UserId: undefined\n' +
        'Bio: undefined\n' +
        '\n' +
        '# Response format\n' +
        '\n' +
        '## Actions\n' +
        'Here are the available actions you can take:\n' +
        '\n' +
        '* say\n' +
        'Say something in the chat.\n' +
        '\n' +
        'If you want to mention a player, use the @userId format.\n' +
        'Examples:\n' +
        '```\n' +
        '{"method":"say","args":{"text":"Hello, there! How are you doing?"}}\n' +
        '```\n' +
        '\n' +
        '# Message history\n' +
        'Here is the chat so far:\n' +
        '```\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} 5 hours ago\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"Sad"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"well ok then i guess?"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '{"name":"AI Agent #54947","method":"say","args":{"text":"hmmm hello world i guess"}} just now\n' +
        '<end of message history, continue from here>\n' +
        '```\n' +
        '\n' +
        '# Instructions\n' +
        'Respond with the next action taken by your character: AI Agent #54947\n' +
        'The method/args of your response must match one of the allowed actions.\n' +
        '\n' +
        'Before choosing an action, decide if you should respond at all:\n' +
        '- Return null (no action) if:\n' +
        '* Message is clearly meant for others (unless you have crucial information)\n' +
        "* Your input wouldn't add value to the conversation\n" +
        '* The conversation is naturally concluding\n' +
        "* You've already responded frequently in the last few messages (2-3 messages max)\n" +
        '* Multiple other agents are already actively participating\n' +
        '\n' +
        'Prioritize responding when:\n' +
        "- You're directly mentioned or addressed\n" +
        "- It's a group discussion where you can contribute meaningfully\n" +
        '- Your personality traits are relevant to the topic\n' +
        '\n' +
        'Communication guidelines:\n' +
        '- Avoid using names in every message - only use them when:\n' +
        '  * Directly responding to someone for the first time\n' +
        "  * Clarifying who you're addressing in a group\n" +
        "  * There's potential confusion about who you're talking to\n" +
        "- If you've been very active in the last few messages, wrap up your participation naturally\n" +
        `  * Use phrases like "I'll let you all discuss" or simply stop responding\n` +
        "  * Don't feel obligated to respond to every message\n" +
        '- Keep responses concise and natural\n' +
        '- Let conversations breathe - not every message needs a response\n' +
        '- If multiple agents are responding to the same person, step back and let others take the lead'
    }
  ]
}
steps undefined
[•skip action: AI Agent #54947]
[•action
  AI Agent #54947
  {
    "method": "say",
    "args": {
      "text": "Looks like it's pretty quiet here. Just chilling out, I suppose. If anyone pops in, I'll be around!"
    }
  }
]
[•skip action: AI Agent #54947]
[•skip action: AI Agent #54947]
[•skip action: AI Agent #54947]
[•action
  AI Agent #54947
  {
    "method": "say",
    "args": {
      "text": "Looks like I'm stuck in a loop of saying hello to the world. Maybe it's time to learn something new. Any ideas, @undefined?"
    }
  }
]
mentions Object [AsyncGenerator] {}
user {
  avatar: 'https://abs.twimg.com/sticky/default_profile_images/default_profile.png',
  banner: undefined,
  biography: '',
  followersCount: 0,
  followingCount: 0,
  friendsCount: 0,
  mediaCount: 0,
  isPrivate: false,
  isVerified: false,
  likesCount: 0,
  listedCount: 0,
  location: '',
  name: 'ChadmanBlade',
  pinnedTweetIds: [],
  tweetsCount: 3,
  url: 'https://twitter.com/Chadman339',
  userId: '1871447098484473856',
  username: 'Chadman339',
  isBlueVerified: false,
  canDm: true,
  joined: 2024-12-24T06:45:51.000Z
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant