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

feat: Add Telegram Team features #1033

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions packages/client-telegram/src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
export const MESSAGE_CONSTANTS = {
MAX_MESSAGES: 50,
RECENT_MESSAGE_COUNT: 5,
CHAT_HISTORY_COUNT: 10,
DEFAULT_SIMILARITY_THRESHOLD: 0.6,
DEFAULT_SIMILARITY_THRESHOLD_FOLLOW_UPS: 0.4,
INTEREST_DECAY_TIME: 5 * 60 * 1000, // 5 minutes
PARTIAL_INTEREST_DECAY: 3 * 60 * 1000, // 3 minutes
} as const;

export const TIMING_CONSTANTS = {
TEAM_MEMBER_DELAY: 1500, // 1.5 seconds
TEAM_MEMBER_DELAY_MIN: 1000, // 1 second
TEAM_MEMBER_DELAY_MAX: 3000, // 3 seconds
LEADER_DELAY_MIN: 2000, // 2 seconds
LEADER_DELAY_MAX: 4000 // 4 seconds
} as const;

export const RESPONSE_CHANCES = {
AFTER_LEADER: 0.5, // 50% chance to respond after leader
} as const;

export const TEAM_COORDINATION = {
KEYWORDS: [
'team',
'everyone',
'all agents',
'team update',
'gm team',
'hello team',
'hey team',
'hi team',
'morning team',
'evening team',
'night team',
'update team',
]
} as const;
Loading
Loading