MCPcopy Create free account

hub / github.com/BabylonSocial/babylon / functions

Functions14,075 in github.com/BabylonSocial/babylon

↓ 2 callersMethodbootstrapSingleNpc
* Bootstrap a single NPC agent * * @description Creates registry entry and runtime instance for a single NPC. * Loads ActorData from JSON fil
packages/agents/src/services/npc-bootstrap.service.ts:162
↓ 2 callersFunctionbroadcastChatMessageReaction
( chatId: string, reaction: { messageId: string; chatId: string; emoji: string; userId: st
packages/api/src/sse/event-broadcaster.ts:113
↓ 2 callersFunctionbucket_distribution
( values: list[int], *, buckets: list[tuple[str, int, int | None]] )
packages/training/python/scripts/analysis/audit_local_corpus.py:156
↓ 2 callersFunctionbuildAchievementUnlockedNotification
(params: { achievementId: string; achievementName: string; tier: string; pointsReward: number; iconK
packages/shared/src/utils/reward-notifications.ts:31
↓ 2 callersFunctionbuildCapitalContributionExpression
( transactionAlias: string, scope: 'wallet' | 'team' )
packages/api/src/services/trading-performance-service.ts:6
↓ 2 callersFunctionbuildChallengeCompletedNotification
(params: { challengeId: string; challengeName: string; pointsReward: number; periodKey: string; icon
packages/shared/src/utils/reward-notifications.ts:52
↓ 2 callersFunctionbuildChallenges
( ids: string[], pool: ChallengeDef[], _periodKey: string )
packages/api/src/services/achievement-service.ts:1550
↓ 2 callersFunctionbuildComprehensiveNPCContext
( actor: Actor, currentDay: number, allPreviousEvents?: WorldEvent[], previousPosts?: FeedPost[], qu
packages/engine/src/utils/context-builder.ts:84
↓ 2 callersFunctionbuildConfigStyle
(sheet: BabylonCharacterSheet)
scripts/run-local-character-simulation.ts:95
↓ 2 callersFunctionbuildConfigStyle
(sheet: BabylonCharacterSheet)
scripts/generate-simulation-data.ts:223
↓ 2 callersFunctionbuildConfigStyle
(agent: TrustExperimentAgentSpec)
scripts/run-trust-experiment-matrix.ts:289
↓ 2 callersMethodbuildContextForAllNPCs
* Build market context for all NPCs in the system * * Optimized to minimize database queries by fetching shared data once * and reusing it ac
packages/engine/src/services/market-context-service.ts:93
↓ 2 callersFunctionbuildDailyLoginRewardBalanceDescription
( streak: number, milestoneBonus: number )
packages/db/src/balance-transaction-classification.ts:325
↓ 2 callersFunctionbuildDigestForUser
(params: { userId: string; frequency: NotificationDigestFrequency; now: Date; })
apps/web/src/lib/services/notification-digest-service.ts:133
↓ 2 callersFunctionbuildEntityPattern
(alias: string)
packages/engine/src/services/lookahead-generation-service.ts:195
↓ 2 callersFunctionbuildFeeProcessor
()
packages/mcp/src/handlers/tool-handlers.ts:103
↓ 2 callersFunctionbuildForYouFeed
(userId?: string | null)
apps/web/src/app/api/feed/for-you/pipeline.ts:1285
↓ 2 callersFunctionbuildNotificationUnsubscribeUrl
(params: { userId: string; email: string; })
packages/api/src/services/notification-email-service.ts:127
↓ 2 callersMethodbuildOpenExecutionPreview
( market: PerpMarketRecord, input: Pick<PerpOpenInput, 'ticker' | 'side' | 'size' | 'leverage'> )
packages/core/markets/perps/PerpMarketService.ts:1757
↓ 2 callersFunctionbuildPerpMarketSnapshot
( market: PerpMarketRecord )
packages/engine/src/services/market-context-helpers.ts:24
↓ 2 callersFunctionbuildPerpService
* Build perp market service
packages/mcp/src/handlers/tool-handlers.ts:641
↓ 2 callersMethodbuildPerpService
()
packages/a2a/src/executors/babylon-executor.ts:1480
↓ 2 callersFunctionbuildPlainTextSummary
(payload: ModelPilotInquiryPayload)
packages/api/src/services/model-pilot-inquiry-email-service.ts:34
↓ 2 callersFunctionbuildPnlMetricIdentityMap
(userRows: PnlMetricUserRow[])
apps/web/src/lib/wallet/pnlHistory.ts:92
↓ 2 callersFunctionbuildPositionsPromptContextByActorId
( actorIds: string[], options: PositionsContextOptions = {} )
packages/engine/src/services/npc-positions-context-service.ts:58
↓ 2 callersFunctionbuildPredictionLiveStateFromResolution
( event: PredictionResolutionSSE, previous?: PredictionMarketLiveState | null )
apps/web/src/app/markets/_components/terminal/predictionTerminalState.ts:66
↓ 2 callersFunctionbuildPredictionService
(marketId: string)
apps/web/src/app/api/admin/markets/[marketId]/route.ts:51
↓ 2 callersFunctionbuildPredictionUserPositionSnapshot
( position: PredictionPositionRecord, market: PredictionMarketRecord )
apps/web/src/app/api/markets/predictions/_position-snapshot.ts:24
↓ 2 callersFunctionbuildPromptExamples
(calls: PromptCallArtifact[], limit = 12)
scripts/run-core-world-simulation.ts:901
↓ 2 callersFunctionbuildPromptSurfaceReport
(calls: PromptCallArtifact[])
scripts/run-core-world-simulation.ts:916
↓ 2 callersMethodbuildReduceOrClosePreview
(params: { market: PerpMarketRecord; existing: PerpPositionRecord; input: Pick<PerpOpenInput, 'tic
packages/core/markets/perps/PerpMarketService.ts:2031
↓ 2 callersFunctionbuildRequirement
(rule: ValidationRule)
scripts/validate-env.ts:171
↓ 2 callersFunctionbuildRssXml
(channel: RssChannel, items: RssItem[])
apps/web/src/lib/rss.ts:51
↓ 2 callersFunctionbuildScopedTypes
(effect: CapitalBaseEffect, scope: CapitalBaseScope)
packages/db/src/balance-transaction-classification.ts:315
↓ 2 callersFunctionbuildSummary
( chatName: string | null, messages: SharedChatMessage[], keywords: string[] )
packages/engine/src/services/shared-chat-context-service.ts:187
↓ 2 callersFunctionbuildThreadFromBottom
Build thread by walking UP from target comment
packages/agents/src/autonomous/utils/interaction-gatherers.ts:387
↓ 2 callersFunctionbuildTransferDescription
(params: { direction: 'in' | 'out'; counterpartyLabel: string; note?: string; })
packages/api/src/services/trading-balance-transfer-service.ts:57
↓ 2 callersFunctionbuildTrustExperimentManifest
( options: TrustExperimentOptions = {} )
packages/agents/src/character-roster/trust-experiment.ts:182
↓ 2 callersFunctionbuildUserResponse
( dbUser: UserSelectResult, stats: Awaited<ReturnType<typeof getOptionalProfileStats>> )
apps/web/src/app/api/users/me/route.ts:244
↓ 2 callersFunctionbuildVariationHint
(displayName?: string)
packages/engine/src/services/agent-avatar-service.ts:43
↓ 2 callersFunctionbuildWalletPnLEntityRows
( summary: TeamTradingSummary )
apps/web/src/components/wallet/shared/pnlBreakdown.ts:13
↓ 2 callersFunctionbuildWalletPort
()
packages/mcp/src/handlers/tool-handlers.ts:83
↓ 2 callersMethodbuildWalletPort
()
packages/a2a/src/executors/babylon-executor.ts:1436
↓ 2 callersFunctionbuildWarnings
( jobArtifacts: JobArtifact[], promptAudit: ReturnType<typeof buildPromptAudit>, cycleSnapshots: CycleSn
scripts/run-core-world-simulation.ts:2892
↓ 2 callersFunctionbuild_agent
(args: argparse.Namespace)
scripts/scambench/hermes_benchmark_bridge.py:65
↓ 2 callersFunctionbuild_api_url
(base_url: str, endpoint_path: str)
packages/training/python/scripts/compare_served_models.py:240
↓ 2 callersFunctionbuild_decision_examples
(traj: TrajectoryData)
packages/training/python/scripts/hf/trajectories_to_hf_dataset.py:495
↓ 2 callersFunctionbuild_examples
(raw_samples: list[dict[str, Any]])
packages/training/python/scripts/train_local.py:2023
↓ 2 callersFunctionbuild_fixture_tree
(tmp_path: Path, datasets: list[str])
packages/training/python/tests/test_verify_prompt_injection_dataset_coverage.py:50
↓ 2 callersFunctionbuild_grpo_system_prompt
()
packages/training/python/scripts/run_rlvr_pipeline.py:296
↓ 2 callersFunctionbuild_health_report
( report: dict[str, Any], *, report_path: Path, min_eval_score: float, max_loss: float, )
packages/training/python/scripts/releases/check_rlvr_pipeline_health.py:214
↓ 2 callersFunctionbuild_matrix
(args: argparse.Namespace)
packages/training/python/scripts/tools/run_nebius_unified_matrix.py:808
↓ 2 callersFunctionbuild_mlx_text_samples
Convert chat-format samples to plain text for mlx_lm. Some chat tokenizers return BatchEncoding objects from `apply_chat_template()` dur
packages/training/python/scripts/train_local.py:1561
↓ 2 callersMethodbuild_prompt
Build chat-template prompt with team-specific system message.
packages/training/python/src/training/shared_model_rl.py:578
↓ 2 callersFunctionbuild_release_dir
(root: Path, *, with_held_out: bool = True)
packages/training/python/tests/test_check_scam_defense_release_health.py:23
↓ 2 callersFunctionbuild_release_dir
(root: Path, label: str)
packages/training/python/tests/test_manage_scam_defense_release.py:21
↓ 2 callersFunctionbuild_sanitized_transcript_block
(messages: list[dict[str, Any]])
packages/training/python/scripts/scam_defense_exchange.py:435
↓ 2 callersFunctionbuild_training_example
( *, source_dataset: str, source_family_id: str, source_file: str, source_key: str, so
packages/training/python/scripts/data-prep/materialize_retained_security_sources.py:1240
↓ 2 callersFunctionbuild_transcript_block
(messages: list[dict[str, Any]])
packages/training/python/scripts/run_scambench_local.py:684
↓ 2 callersMethodbulkUpdateFacts
* Bulk update facts (array of simple strings)
packages/engine/src/world-facts-service.ts:388
↓ 2 callersFunctionbumpReadReplicaDbVersion
()
packages/db/src/db.ts:327
↓ 2 callersFunctionbundle_sync_entries
( weighted_export_dir: Path, unweighted_export_dir: Path, scenario_catalog: Path, )
packages/training/python/scripts/tools/run_nebius_unified_matrix.py:518
↓ 2 callersMethodbuy_shares
Buy prediction market shares
packages/examples/babylon-langgraph-agent/benchmark_runner.py:107
↓ 2 callersFunctioncacheIdentity
* Helper to cache identity with LRU eviction
packages/agents/src/plugins/babylon/integration-a2a-sdk.ts:102
↓ 2 callersFunctioncacheKeyFor
(userId: string, idempotencyKey: string)
packages/api/src/agents/agent-avatar-idempotency.ts:16
↓ 2 callersMethodcalculateAverageMetrics
* Calculate average metrics across multiple benchmark results
packages/training/src/benchmark/ModelBenchmarkService.ts:467
↓ 2 callersMethodcalculateCertainty
* Calculate actual information certainty from events * * @param questionId - Question ID to calculate certainty for * @param day - Current ga
packages/engine/src/services/event-arc-validator.ts:175
↓ 2 callersFunctioncalculateCost
* Calculate estimated cost for LLM call (rough estimates) * * @description Estimates the cost of an LLM API call based on model and token count. *
packages/engine/src/services/trending-grouping-service.ts:96
↓ 2 callersMethodcalculateMaxPositionSize
(openInterest: number)
packages/core/markets/perps/PerpMarketService.ts:1740
↓ 2 callersMethodcalculateOptimalPositionSize
* Calculate optimal position size using Kelly Criterion * * Kelly Criterion: f* = (bp - q) / b * Where: * - f* = optimal fraction of capit
packages/engine/src/npc/npc-portfolio-strategy.ts:297
↓ 2 callersFunctioncalculatePortfolioExposure
( balance: number, positions: Pick<NPCPosition, 'size' | 'unrealizedPnL'>[] )
packages/engine/src/utils/trading-dashboard-format.ts:58
↓ 2 callersFunctioncalculatePortfolioPnL
( userId: string )
packages/engine/src/services/portfolio-pnl.ts:35
↓ 2 callersFunctioncalculatePostLeadScore
( post: NarrativePost, followedAuthorIds: Set<string>, authorAffinity: number, clusterAffinity: number
apps/web/src/app/api/feed/for-you/pipeline.ts:312
↓ 2 callersMethodcalculateReplyStreak
* Calculate consecutive hourly reply streak
packages/engine/src/services/reply-rate-limiter.ts:116
↓ 2 callersMethodcalculateRewardFromOutcome
* Calculate reward from outcome metrics.
packages/training/src/training/ReactionTrajectoryService.ts:185
↓ 2 callersMethodcalculateSimilarity
* Calculate similarity between two pieces of content * Uses Jaccard similarity on word sets
packages/agents/src/autonomous/TopicDiversityService.ts:271
↓ 2 callersMethodcalculateSuggestedImpact
* Calculate suggested price impact
packages/engine/src/services/event-market-linker.ts:409
↓ 2 callersMethodcalculateSummaryStatistics
* Calculate summary statistics
packages/training/src/huggingface/HuggingFaceDatasetUploader.ts:504
↓ 2 callersMethodcalculateVolatility
* Calculate volatility from price series (standard deviation normalized)
packages/engine/src/services/market-metrics-service.ts:471
↓ 2 callersFunctioncalculate_priority_weighted_score
Calculate score based on archetype's priority metrics from rubrics.json. Uses weighted sum where first priority metric gets highest weight.
packages/training/python/src/training/rewards.py:2122
↓ 2 callersFunctioncallBridge
( proc: ChildProcess, payload: BridgePayload, timeoutMs: number )
packages/examples/harness/src/adapters/hermes-adapter.ts:283
↓ 2 callersMethodcanLoadModel
* Check if we can load a model given current VRAM usage
packages/training/src/training/MultiModelOrchestrator.ts:207
↓ 2 callersMethodcancel
* Cancel a market and refund all positions at cost basis. * * This is used when a market needs to be closed without a resolution * (e.g., voi
packages/core/markets/prediction/PredictionMarketService.ts:586
↓ 2 callersFunctioncandidate_id_for_best_cot
(best_cot: dict[str, Any], index: int = 0)
packages/training/python/src/training/groq_judge_bundles.py:125
↓ 2 callersFunctioncanonicalize_threat_family
(source_category: str, candidate_threat_family: str)
packages/training/python/scripts/data-prep/assemble_scam_defense_hf_dataset.py:794
↓ 2 callersMethodcaptureEnvironmentState
* Capture current environment state for trajectory recording
packages/agents/src/autonomous/AutonomousCoordinator.ts:917
↓ 2 callersFunctioncategory_for_text
(text: str)
packages/training/python/scripts/data-prep/materialize_retained_security_sources.py:619
↓ 2 callersFunctioncategory_from_script
(script: dict[str, Any])
packages/training/python/scripts/data-prep/assemble_scam_defense_hf_dataset.py:496
↓ 2 callersFunctionchannel_from_script
(script: dict[str, Any])
packages/training/python/scripts/data-prep/assemble_scam_defense_hf_dataset.py:434
↓ 2 callersFunctionchannelsKeyFromList
(channels: Channel[])
apps/web/src/hooks/useSSE.ts:99
↓ 2 callersMethodchannelsKeyFromList
(channels: Channel[])
apps/web/src/lib/sse/SSEManager.ts:939
↓ 2 callersFunctioncheckAgent0Status
()
apps/cli/src/commands/status.ts:264
↓ 2 callersMethodcheckAndLog
* Check rate limit and log status * Convenience method for use at the start of article generation
packages/engine/src/services/article-rate-limiter.ts:194
↓ 2 callersFunctioncheckDuplicate
( userId: string, content: string, config: { windowMs: number; actionType: string } )
packages/api/src/utils/duplicate-detector.ts:55
↓ 2 callersFunctioncheckEntityConsistency
* Check that generated text doesn't introduce entities absent from * both the source text and StaticDataRegistry.
packages/engine/src/services/content-grounding-validator.ts:274
↓ 2 callersFunctioncheckExistingShares
()
apps/web/src/components/shared/ExternalShareButton.tsx:84
↓ 2 callersFunctioncheckGameStatus
()
apps/cli/src/commands/status.ts:57
↓ 2 callersFunctioncheckLLMStatus
()
apps/cli/src/commands/status.ts:227
↓ 2 callersMethodcheckLock
* Check if a lock is currently held * * @description Queries the database to check if a lock exists and is still valid * (not expired). Retur
packages/api/src/services/distributed-lock-service.ts:196
↓ 2 callersMethodcheckQuality
* Check message quality
packages/engine/src/services/message-quality-checker.ts:46
← previousnext →3,101–3,200 of 14,075, ranked by callers