the-algorithm/cr-mixer/thrift/src/main/thrift/related_tweet.thrift
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

25 lines
920 B
Thrift

namespace java com.twitter.cr_mixer.thriftjava
#@namespace scala com.twitter.cr_mixer.thriftscala
#@namespace strato com.twitter.cr_mixer
include "product.thrift"
include "com/twitter/product_mixer/core/client_context.thrift"
include "com/twitter/simclusters_v2/identifier.thrift"
struct RelatedTweetRequest {
1: required identifier.InternalId internalId
2: required product.Product product
3: required client_context.ClientContext clientContext # RUX LogOut will have clientContext.userId = None
4: optional list<i64> excludedTweetIds (personalDataType = 'TweetId')
} (persisted='true', hasPersonalData='true')
struct RelatedTweet {
1: required i64 tweetId (personalDataType = 'TweetId')
2: optional double score
3: optional i64 authorId (personalDataType = 'UserId')
} (persisted='true', hasPersonalData='true')
struct RelatedTweetResponse {
1: required list<RelatedTweet> tweets
} (persisted='true')