MCPcopy Create free account

hub / github.com/BabylonSocial/babylon / functions

Functions14,075 in github.com/BabylonSocial/babylon

↓ 5 callersFunctioncreateResponse
({ ok, status, body, }: { ok: boolean; status: number; body: unknown; })
packages/testing/unit/prediction-markets-store.test.ts:20
↓ 5 callersFunctioncreateShare
(userId: string, postId: string)
packages/engine/src/__tests__/integration/agent-group-chat-invite.integration.test.ts:190
↓ 5 callersFunctioncreateSnapshotEntry
( userId: string, walletAddress: string, rank: number, points: number )
packages/testing/integration/nft-mint.integration.test.ts:117
↓ 5 callersFunctioncreateTestActor
(options: { name?: string; })
packages/testing/integration/group-chat-gameplay.integration.test.ts:67
↓ 5 callersFunctioncreateTestGroupChat
(options: { name?: string; npcAdminId: string; })
packages/testing/integration/group-chat-gameplay.integration.test.ts:99
↓ 5 callersFunctioncreateTestUser
( overrides: Partial<{ username: string; isAdmin: boolean; isAgent: boolean; isActor: boolea
packages/testing/integration/growth-metrics-api.integration.test.ts:77
↓ 5 callersFunctioncreateTestUser
()
packages/testing/integration/daily-login-api.integration.test.ts:77
↓ 5 callersFunctioncreateTrade
( userId: string, options: { action?: 'open' | 'close'; pnl?: number; executedAt?: Date; } )
packages/testing/integration/alpha-group-threshold.integration.test.ts:192
↓ 5 callersFunctioncreateTradeActivity
(id: string, timestamp: Date)
apps/web/src/hooks/__tests__/useAgentActivity.test.ts:220
↓ 5 callersFunctioncreateVLLMBenchmarkRunnerFromEnv
()
packages/training/src/benchmark/VLLMBenchmarkRunner.ts:666
↓ 5 callersFunctioncreateVLLMClientFromEnv
()
packages/training/src/benchmark/VLLMInferenceClient.ts:328
↓ 5 callersFunctioncrossNpcDedupCheck
( newContent: string, recentContents: string[] )
packages/testing/unit/feed-dedup.test.ts:89
↓ 5 callersFunctioncurrent_manifest_path
(release_root: Path)
packages/training/python/scripts/releases/manage_scam_defense_release.py:39
↓ 5 callersFunctiondeleteTestUser
(userId: string)
packages/testing/integration/daily-login-api.integration.test.ts:99
↓ 5 callersFunctiondetect_ticker_trend
Classify a single ticker's trend based on percentage change. Args: change_pct: Percentage change for the ticker Returns:
packages/training/python/src/training/market_regime.py:161
↓ 5 callersMethoddiscoverAgent
* Discover agent via .well-known/agent-card.json
packages/agents/src/external/ExternalAgentAdapter.ts:581
↓ 5 callersMethodenableAutonomy
* Enable autonomy (sets setting and starts if needed)
packages/agents/src/plugins/plugin-autonomy/src/service.ts:551
↓ 5 callersFunctionenqueue
(fn: () => Promise<void>)
packages/sim/cli/commands/dev.ts:61
↓ 5 callersFunctionensureMinimalUserByIdentifier
( identifier: string )
packages/api/src/users/ensure-user.ts:127
↓ 5 callersFunctionensureRoom
(roomId: string)
packages/agents/src/runtime/AgentRuntimeManager.ts:157
↓ 5 callersFunctionescapeRegex
(str: string)
packages/engine/src/services/character-mapping-service.ts:337
↓ 5 callersFunctionestimate_kv_cache_bytes
( spec: QwenModelSpec, *, context_tokens: int, batch_size: int, kv_bits: float = BF16_BITS
packages/training/python/src/training/qwen_capacity.py:344
↓ 5 callersFunctionexcerpt
(text: string, maxLength = 240)
scripts/run-core-world-simulation.ts:571
↓ 5 callersMethodexecuteAction
* Default action executor
packages/examples/harness/src/harness.ts:202
↓ 5 callersFunctionexecuteDirectUnfollow
( params: DirectFollowParams )
packages/agents/src/autonomous/DirectExecutors.ts:1901
↓ 5 callersFunctionexecuteTargetedTick
()
packages/testing/integration/agent-autonomous-tick.integration.test.ts:126
↓ 5 callersFunctionexecuteWithRetry
* Execute a critical operation with optional retry, error logging, and metrics. * Only retries when the operation is explicitly marked as idempotent
packages/mcp/src/handlers/tool-handlers.ts:218
↓ 5 callersFunctionexport_row
( *, record_id: str, group_id: str, scenario_id: str, category: str, chosen_action: st
packages/training/python/tests/test_assemble_scam_defense_hf_dataset.py:42
↓ 5 callersFunctionextractActivityId
* Test wrapper for extractActivityId - uses the actual hook implementation * but with an interface that matches test usage patterns.
apps/web/src/hooks/__tests__/useAgentActivity.test.ts:42
↓ 5 callersFunctionextractDayFromPost
(post: { day?: number; createdAt?: Date | string; })
packages/engine/src/utils/date-utils.ts:49
↓ 5 callersFunctionextractJsonFromText
(content: string)
packages/engine/src/llm/json-continuation-parser.ts:44
↓ 5 callersFunctionextractPrivyToken
(request: { cookies: Map<string, string>; headers: Map<string, string>; })
packages/testing/unit/mobile/onchain-route.test.ts:12
↓ 5 callersFunctionextractTopicTokens
(input: string)
packages/engine/src/services/daily-topic-service.ts:216
↓ 5 callersFunctionextract_thinking
Extract content from <think>...</think> tags
packages/training/python/src/training/online_env.py:229
↓ 5 callersFunctionfallbackNameFromEmail
(email: string)
scripts/export-newsletter-users-csv.ts:111
↓ 5 callersFunctionfetchAchievements
()
apps/web/src/components/achievements/RecentAchievements.tsx:32
↓ 5 callersMethodfileExists
* Check if file exists
packages/training/src/huggingface/HuggingFaceDatasetUploader.ts:622
↓ 5 callersFunctionfile_sha256
(path: Path)
packages/training/python/scripts/data-prep/export_scam_defense_trajectories.py:211
↓ 5 callersMethodfindMany
(options: FindOptions<TSelect> = {})
packages/db/src/json-storage.ts:311
↓ 5 callersFunctionflushPendingUpdates
* Flush pending lastUsedAt updates from Redis to database. * * WHY: Batches multiple updates into single database query, reducing load. * * Proces
packages/api/src/utils/api-key-lastused-flusher.ts:107
↓ 5 callersFunctionformatBuckets
(record: Record<string, number>)
scripts/market-realism-report.ts:40
↓ 5 callersFunctionformatComprehensiveContext
( context: ComprehensiveNPCContext, options?: { includePersonalEvents?: boolean; includeRecentEven
packages/engine/src/utils/context-builder.ts:310
↓ 5 callersMethodformatMemoriesForPrompt
* Format memories for inclusion in NPC prompts.
packages/engine/src/services/npc-memory-service.ts:643
↓ 5 callersFunctionformatRelativeTime
(date: Date | string)
packages/shared/src/utils/format.ts:172
↓ 5 callersMethodformatTimeAgo
* Format time ago string for memory display. * Handles both past and future timestamps gracefully. * @param timestamp - ISO timestamp string to
packages/engine/src/services/npc-memory-service.ts:662
↓ 5 callersFunctionformatYesPct
(raw: number)
apps/web/src/app/markets/_components/terminal/MarketsTradingTerminal.tsx:268
↓ 5 callersFunctiongenerateActorContext
( mood: number, luck: 'low' | 'medium' | 'high', targetActorId?: string, relationships?: ActorRelation
packages/engine/src/EmotionSystem.ts:273
↓ 5 callersFunctiongenerateBarChartSVG
( title: string, data: Array<{ label: string; value: number }>, options: { width?: number; heigh
packages/training/scripts/generate-research-report.ts:327
↓ 5 callersFunctiongenerateDMChatId
(userId1: string, userId2: string)
packages/testing/unit/dm-validation.test.ts:14
↓ 5 callersFunctiongenerateMockPriceData
(count: number, startPrice = 100)
apps/web/src/components/markets/PerpPriceChart.test.tsx:15
↓ 5 callersMethodgenerate_messages
( self, messages: list[dict[str, str]], *, max_new_tokens: int = 120,
packages/training/python/src/training/local_inference.py:179
↓ 5 callersMethodgetActiveQuestions
()
packages/engine/src/GameTick.ts:36
↓ 5 callersFunctiongetActorRivals
(actorId: string)
packages/engine/src/services/npc-character-config.ts:570
↓ 5 callersMethodgetActorState
(id: string)
packages/core/storage/ports/actors.ts:22
↓ 5 callersFunctiongetArg
(flag: string, fallback: string)
scripts/docs/pull_drizzle_docs.ts:37
↓ 5 callersMethodgetAutonomousRoomId
* Get the autonomous room ID for this agent
packages/agents/src/plugins/plugin-autonomy/src/service.ts:544
↓ 5 callersMethodgetBiasAdjustment
* Get bias adjustment for an entity * * Returns price impact and sentiment shift based on active biases. * Handles bias decay over time and e
packages/engine/src/feedback/bias-engine.ts:163
↓ 5 callersMethodgetCloseExecutionQuote
( market: PerpMarketRecord, side: PerpSide, size: number )
packages/core/markets/perps/PerpMarketService.ts:2137
↓ 5 callersFunctiongetDailyReward
(streakDay: number)
packages/api/src/services/daily-login-service.ts:107
↓ 5 callersFunctiongetDatabaseClientState
()
packages/db/src/db.ts:1301
↓ 5 callersFunctiongetDbImports
()
apps/cli/src/commands/train.ts:77
↓ 5 callersFunctiongetLLMCallCallback
()
packages/engine/src/dag-trace/llm-interceptor.ts:35
↓ 5 callersMethodgetLLMClient
* Get the current LLM client reference.
packages/engine/src/services/npc-social-engagement-service.ts:108
↓ 5 callersFunctiongetLeaderboardPositionQueryKey
({ metric, scope, pageSize, userId, authToken, }: { metric: LeaderboardMetric; scope: Leaderboar
apps/web/src/app/leaderboard/useLeaderboardQuery.ts:46
↓ 5 callersFunctiongetLegacyCanonicalOrigin
( hostname: string, protocol: string )
apps/web/src/lib/host-routing.ts:28
↓ 5 callersFunctiongetLinkedEmail
( privyEmail?: string | null, storedEmail?: string | null )
apps/web/src/components/profile/link-email-utils.ts:6
↓ 5 callersMethodgetMemories
(actorId: string)
packages/engine/src/services/actor-context-builder.ts:397
↓ 5 callersMethodgetModelSettings
* Get model settings (Groq configuration) * Shared logic for model configuration
packages/agents/src/runtime/AgentRuntimeManager.ts:1515
↓ 5 callersFunctiongetNpcTradingStrategy
(npcId: string)
packages/engine/src/npc/trading-strategies.ts:58
↓ 5 callersMethodgetOrCreateUser
(userId: string)
packages/engine/src/adapters/InMemoryStateStore.ts:361
↓ 5 callersMethodgetOwnerTeamChatId
* Get the team chat ID for an agent's owner. * Agents communicate with owners via the team chat (Agents group).
packages/agents/src/autonomous/PriceAlertService.ts:161
↓ 5 callersMethodgetPackActor
* Get the original PackActor by ID for full character data.
packages/engine/src/services/static-data-registry.ts:613
↓ 5 callersMethodgetPackId
* Get the loaded pack ID, or null if no pack is loaded.
packages/engine/src/services/static-data-registry.ts:578
↓ 5 callersFunctiongetPriorityMetrics
(archetype: string)
packages/training/src/rubrics/index.ts:168
↓ 5 callersFunctiongetReadReplicaDbClient
* Get read replica DrizzleClient (cached) * Falls back to lazy primary proxy if read replica not configured * * WHY: Keeps fallback for dev environ
packages/db/src/db.ts:406
↓ 5 callersFunctiongetReputationActivityCutoff
( timeRange: ReputationTimeRange, now = new Date() )
apps/web/src/app/api/reputation/leaderboard/query.ts:30
↓ 5 callersFunctiongetRunDeps
()
scripts/run-trust-experiment-matrix.ts:130
↓ 5 callersFunctiongetSimulationTickers
( overrides?: Map<string, number> )
packages/engine/src/config/simulation.ts:220
↓ 5 callersMethodgetSnapshot
* Get scenario snapshot directly (for BenchmarkRunner compatibility)
packages/training/src/benchmark/ScenarioLoader.ts:473
↓ 5 callersFunctiongetSpotlightActivationState
(params: { hasStep: boolean; isActive: boolean; wasActive: boolean; })
apps/web/src/components/tutorial/SpotlightTutorial.tsx:45
↓ 5 callersMethodgetStats
Get aggregated statistics
packages/engine/src/types/token-stats.ts:177
↓ 5 callersMethodgetStatus
* Get game status. * Returns status indicating if game is running and tick is active.
packages/engine/src/game-service.ts:94
↓ 5 callersFunctiongetTierMessageGuidance
(tier: TierLevel | null)
packages/engine/src/services/tier-config.ts:174
↓ 5 callersMethodgetTopicCandidatesForDate
* Get multiple topic candidates for a date, for multi-topic market generation. * Returns the primary topic (stored in DB) plus additional candidate
packages/engine/src/services/daily-topic-service.ts:582
↓ 5 callersMethodgetTopicForDate
(date: Date)
packages/engine/src/services/daily-topic-service.ts:388
↓ 5 callersFunctiongetTrainingImports
()
apps/cli/src/commands/train.ts:93
↓ 5 callersMethodgetUntransformedHeadlines
* Get recent headlines that haven't been transformed into parodies yet * Only returns headlines from the last 7 days
packages/engine/src/services/rss-feed-service.ts:326
↓ 5 callersFunctiongetUserFundingTotals
(userId: string)
packages/testing/integration/stripe-webhook-handler.integration.test.ts:207
↓ 5 callersMethodget_priority
Get priority score for scenario (higher = more priority). Combines: - Difficulty (low scores = high priority) - Expl
packages/training/python/src/training/scenario_pool.py:425
↓ 5 callersFunctionget_quality_bonus_for_archetype
Calculate archetype-specific quality bonus. Different archetypes prioritize different aspects: - Trader: Prioritizes valid actions and r
packages/training/python/src/training/quality_scorer.py:302
↓ 5 callersMethodget_statistics
Get dataset statistics
packages/training/python/src/training/multi_prompt_dataset.py:553
↓ 5 callersMethodget_tokenizer
(self)
packages/training/python/tests/test_tinker_client.py:67
↓ 5 callersFunctiongini
(values: number[])
packages/testing/unit/training-data-quality-math.test.ts:4
↓ 5 callersMethodgoToSlide
(index: number)
packages/testing/unit/game-guide.test.ts:81
↓ 5 callersFunctionhas
(needle: string)
packages/engine/src/services/npc-social-engagement-service.ts:1015
↓ 5 callersFunctionhas
(needle: string)
packages/engine/src/services/post-generation-helpers.ts:1651
↓ 5 callersFunctionhasDomain
( actorDomains: string[] | undefined, domain: string )
packages/engine/src/services/npc-running-bit-service.ts:75
↓ 5 callersFunctionhasErrorCode
(error: unknown, code: string)
packages/engine/src/utils/error-utils.ts:102
↓ 5 callersFunctionhasProperty
(obj: object, prop: string)
packages/testing/unit/actors-data-integrity.test.ts:246
↓ 5 callersFunctionhhi
(shares: number[])
packages/testing/unit/training-data-quality-math.test.ts:17
← previousnext →1,601–1,700 of 14,075, ranked by callers