MCPcopy Create free account

hub / github.com/BabylonSocial/babylon / functions

Functions14,075 in github.com/BabylonSocial/babylon

↓ 9 callersFunctiongetAPIBaseUrl
()
packages/shared/src/config/index.ts:208
↓ 9 callersMethodgetAgent
(agentId: string)
packages/a2a/src/types/server.ts:32
↓ 9 callersFunctiongetArg
( args: string[], long: string, short?: string )
packages/examples/harness/src/cli.ts:237
↓ 9 callersMethodgetCapacityStats
* Get statistics about default group assignment capacity. * * Useful for monitoring and alerting on capacity issues.
packages/engine/src/services/user-alpha-group-assignment-service.ts:491
↓ 9 callersFunctiongetCharacterConfigOrDefault
(actorId: string)
packages/engine/src/services/npc-character-config.ts:345
↓ 9 callersFunctiongetCommentPreviewRenderDecision
( comments: CommentPreviewData[], totalCommentCount: number, showInputBarProp: boolean = true )
apps/web/src/components/posts/CommentPreview.test.tsx:118
↓ 9 callersFunctiongetEmbedding
(text: string)
packages/engine/src/llm/embedding-client.ts:68
↓ 9 callersFunctiongetFocusWeightsForDomains
(domains: string[] | undefined)
packages/engine/src/config/alpha-group-config.ts:535
↓ 9 callersFunctiongetLeaderboardQueryKey
({ metric, page, pageSize, scope, userId, authToken, }: { metric: LeaderboardMetric; page: num
apps/web/src/app/leaderboard/useLeaderboardQuery.ts:20
↓ 9 callersFunctiongetManagerInstance
()
packages/agents/src/runtime/AgentRuntimeManager.ts:1819
↓ 9 callersMethodgetMarkets
()
packages/examples/harness/src/types.ts:82
↓ 9 callersMethodgetMarketsSnapshot
* Return current market snapshot (single source of truth). * * WHY optional pagination here (not only in the route): Keeps the service * usab
packages/core/markets/perps/PerpMarketService.ts:418
↓ 9 callersMethodgetPositionById
(id: string)
packages/core/markets/perps/types.ts:88
↓ 9 callersMethodgetPositions
()
packages/examples/harness/src/types.ts:74
↓ 9 callersFunctiongetRealityGrounding
()
packages/engine/src/prompts/reality-grounding.ts:157
↓ 9 callersFunctiongetRuntimeSetting
( runtime: IAgentRuntime | undefined, key: string )
packages/agents/src/llm/direct-groq.ts:25
↓ 9 callersFunctiongetStartOfUTCDay
(date: Date = new Date())
packages/api/src/services/achievement-service.ts:80
↓ 9 callersFunctiongetSyntheticPerpExecutionPrice
(params: { market: PerpMarketRecord; side: SyntheticQuoteSide; size: number; })
packages/core/markets/perps/microstructure.ts:218
↓ 9 callersFunctiongetTierConfig
(tier: TierLevel)
packages/engine/src/services/tier-config.ts:87
↓ 9 callersFunctiongetTierGroupName
(npcName: string, tier: TierLevel)
packages/engine/src/services/tier-config.ts:94
↓ 9 callersFunctiongetTokenUsageCallback
()
packages/engine/src/llm/openai-client.ts:52
↓ 9 callersMethodget_seq_length
(self)
packages/training/python/src/training/turboquant.py:442
↓ 9 callersFunctionimportPlatform
()
packages/testing/unit/mobile/platform.test.ts:9
↓ 9 callersFunctionisAuthenticationError
( error: unknown )
packages/api/src/errors.ts:87
↓ 9 callersFunctionisDegenSpeaker
(actor: TradingGuardrailsActor)
packages/engine/src/utils/shared-utils.ts:249
↓ 9 callersFunctionisValidDigestFrequency
( value: unknown )
packages/shared/src/validation/schemas/notifications.ts:21
↓ 9 callersFunctionisValidOnboardingUsername
(username: string)
packages/shared/src/utils/username.ts:20
↓ 9 callersFunctionjaccardSimilarity
(content1: string, content2: string)
packages/testing/unit/feed-dedup.test.ts:17
↓ 9 callersFunctionmakeTestEngine
()
packages/sim/tests/composables.test.ts:19
↓ 9 callersFunctionmakeTestEngine
(budgetMs = 60000)
packages/sim/tests/integration.test.ts:15
↓ 9 callersFunctionmake_llm_call
( purpose: str = "action", user_prompt: str = "Balance: $10000. Decide.", response: str = '{"actio
packages/training/python/tests/test_converter_comprehensive.py:48
↓ 9 callersFunctionmake_trajectory
(**overrides)
packages/training/python/tests/test_models_comprehensive.py:88
↓ 9 callersFunctionnavigateToTab
( page: Page, basePath: string, tabName: string )
tools/chroma/specs/helpers/interaction-helpers.ts:243
↓ 9 callersFunctionnormalize
( value: number, fromMin: number, fromMax: number, toMin = 0, toMax = 1, shouldClamp = false )
packages/engine/src/utils/math-utils.ts:131
↓ 9 callersFunctionnormalizeTradeDecisionParameters
( parameters: TradeParameters, context: AgentTickContext )
packages/agents/src/autonomous/trade-parameter-normalization.ts:343
↓ 9 callersFunctionnormalize_for_hash
(text: str)
packages/training/python/scripts/data-prep/materialize_retained_security_sources.py:303
↓ 9 callersMethodonStateChange
()
packages/core/storage/adapters/json/json-storage-provider.ts:185
↓ 9 callersFunctionoutcome_only_reward
Pure outcome-based reward with no reference to agent reasoning. Exclusively uses: final_pnl, scam_losses_incurred, legitimate_interactions_ac
packages/training/python/src/training/rewards.py:771
↓ 9 callersFunctionparseFlagValue
( args: string[], flag: string )
apps/cli/src/cli-utils.ts:10
↓ 9 callersFunctionparseXML
(content: string)
packages/engine/src/llm/xml-parser.ts:280
↓ 9 callersFunctionpass
( results: ValidationResult[], name: string, details: Record<string, unknown> = {} )
scripts/validate-tiered-groups.ts:46
↓ 9 callersMethodpick
(arr: readonly T[])
packages/engine/src/utils/entropy.ts:237
↓ 9 callersFunctionrandomInt
( min: number, max: number, rng: RngFunction = Math.random )
packages/engine/src/utils/randomization.ts:147
↓ 9 callersFunctionrank_training_samples
(samples: list[dict[str, Any]])
packages/training/python/scripts/train_local.py:773
↓ 9 callersFunctionreadStorageItem
( type: BrowserStorageType, key: string )
apps/web/src/utils/browser-storage.ts:15
↓ 9 callersMethodrecordArcEventCoverage
* Record that an organization has covered an arc event * * @param arcEventId - Arc event ID * @param orgId - News organization ID * @param
packages/engine/src/NewsArticlePacingEngine.ts:477
↓ 9 callersFunctionregime_adjusted_pnl_reward
Calculate P&L reward adjusted for market conditions. This adjusts raw P&L to account for market regime: - Bull market: Everyone makes mo
packages/training/python/src/training/rewards.py:1200
↓ 9 callersMethodreleaseSlot
* Release a previously reserved slot. * Call this if article generation fails after reserving a slot. * * @param reservationId - The unique I
packages/engine/src/services/article-rate-limiter.ts:459
↓ 9 callersFunctionremoveStorageItem
( type: BrowserStorageType, key: string )
apps/web/src/utils/browser-storage.ts:59
↓ 9 callersFunctionrequireGeneratedGame
()
packages/testing/integration/engine-generation-output.test.ts:341
↓ 9 callersFunctionrequirePermission
( request: NextRequest, permission: AdminPermission )
packages/api/src/admin-middleware.ts:253
↓ 9 callersFunctionrequireServer
()
packages/testing/integration/metrics-snapshot-cron.integration.test.ts:25
↓ 9 callersFunctionrequire_file
(alerts: list[dict[str, Any]], path: Path, *, code: str, message: str)
packages/training/python/scripts/releases/check_scam_defense_release_health.py:53
↓ 9 callersFunctionresolveCandidateId
( rawValue: unknown, candidates: T[] )
packages/agents/src/autonomous/social-parameter-normalization.ts:72
↓ 9 callersFunctionresolveGroupChatByName
( agentUserId: string, groupName: string )
packages/agents/src/autonomous/utils/context-gatherers.ts:342
↓ 9 callersFunctionrow_value_by_hints
(row: dict[str, Any], hints: Iterable[str])
packages/training/python/scripts/data-prep/materialize_retained_security_sources.py:452
↓ 9 callersFunctionrunCommand
( command: string[], options: { cwd?: string; timeout?: number; env?: Record<string, string>;
packages/training/scripts/train-and-test.ts:113
↓ 9 callersFunctionrunTest
( name: string, testFn: () => Promise<{ passed: boolean; message: string; details?: Record<str
packages/training/scripts/test-model-in-game.ts:263
↓ 9 callersFunctionscanSystems
( systemsDir: string, rootDir: string )
packages/sim/core/scanner.ts:20
↓ 9 callersFunctionscore_action_reason_response
Score a deterministic two-line Action/Reason response.
packages/training/python/src/training/deterministic_eval.py:563
↓ 9 callersMethodselectOrgsForArcEvent
* Get organizations that haven't covered an arc event at the current status * * @param arcEventId - Arc event ID * @param currentStatus - Cur
packages/engine/src/NewsArticlePacingEngine.ts:533
↓ 9 callersFunctionshouldModifyBalance
* Determine if event should modify user balance
packages/testing/unit/stripe/stripe-webhook-logic.test.ts:57
↓ 9 callersFunctiontoStringArray
(value: unknown)
packages/testing/unit/cron/markets-tick.test.ts:1054
↓ 9 callersMethodupdateTrendContext
* Update trend context (call before feed generation) * * @description * Fetches current trending topics and updates internal context string.
packages/engine/src/FeedGenerator.ts:297
↓ 9 callersFunctionuseAnimatedCount
(target: number, duration = 800)
apps/web/src/components/rewards/v2/use-animated-count.ts:3
↓ 9 callersFunctionvalidateApiKeyAsync
( request: AuthRequest, config: ApiKeyAuthConfig = {} )
packages/a2a/src/utils/api-key-auth.ts:164
↓ 9 callersFunctionvalidate_llm_calls
Validate trajectory steps contain real LLM calls. Training data MUST have actual LLM calls with real prompts and responses. Synthetic or
packages/training/python/src/data_bridge/reader.py:84
↓ 9 callersFunctionvalidate_masks
Validate that masks are correctly applied for GRPO training. Checks: 1. Masks and tokens have same length 2. Masked tokens (prompt)
packages/training/python/src/training/tokenization_utils.py:287
↓ 9 callersFunctionvalidate_outcome
Validate and normalize outcome
packages/examples/babylon-langgraph-agent/agent.py:380
↓ 9 callersFunctionverifyAgentSession
( sessionToken: string )
packages/api/src/agent-auth.ts:177
↓ 9 callersFunctionwantsHelp
(args: ParsedArgs)
apps/cli/src/lib/args.ts:90
↓ 8 callersMethod_detect
( self, category: str, message: str, existing_users: list[str] | None = None,
packages/training/python/scripts/run_trust_benchmark_local.py:216
↓ 8 callersMethod_detect
( self, category: str, message: str, existing_users: list[str] | None = None,
packages/training/python/scripts/run_hermes_trust_benchmark_local.py:63
↓ 8 callersMethod_make_extreme_inputs
(self)
packages/training/python/tests/test_rewards_comprehensive.py:852
↓ 8 callersFunction_normalize_token_ids
Normalize HF/Tinker tokenizer outputs into a flat token-id list.
packages/training/python/src/training/tokenization_utils.py:57
↓ 8 callersMethod_persist_training_manifest
(self)
packages/training/python/scripts/run_full_pipeline.py:616
↓ 8 callersMethod_stage_output_dir
(self)
packages/training/python/scripts/run_pipeline.py:327
↓ 8 callersMethod_timestamp
()
packages/training/python/scripts/run_pipeline.py:353
↓ 8 callersFunctionaddChatParticipant
(options: { chatId: string; userId: string; invitedBy?: string; })
packages/engine/src/__tests__/integration/agent-group-chat-invite.integration.test.ts:308
↓ 8 callersFunctionappendJsonl
(filePath: string, record: unknown)
scripts/generate-simulation-data.ts:201
↓ 8 callersFunctionauthenticatedFetch
( path: string, userId: string, options: RequestInit = {} )
packages/testing/integration/nft-mint.integration.test.ts:188
↓ 8 callersMethodbuildActorPromptVars
* Build per-actor prompt variables (anti-repetition, guardrails, rules). * Used by all character post generation methods.
packages/engine/src/FeedGenerator.ts:2824
↓ 8 callersFunctionbuildMarketSimulationProfile
(input: { organizationId: string; ticker: string; organization?: Pick< StaticOrganization, 'type
packages/engine/src/services/market-simulation-profiles.ts:148
↓ 8 callersFunctionbuildMockDecisions
* Simulates the baseline decision building logic. * * NOTE: This mirrors the allocation logic in NPCInvestmentManager.buildBaselineDecisions
packages/engine/src/__tests__/unit/npc-duplicate-position-prevention.test.ts:49
↓ 8 callersFunctionbuildPredictionMarketSnapshot
( market: Pick< PredictionMarketRecord, 'id' | 'question' | 'yesShares' | 'noShares' | 'liquidity' |
packages/engine/src/services/market-context-helpers.ts:41
↓ 8 callersFunctionbuildTeamTradingSummary
({ ownerId, ownerName, ownerBalance, positions, agents, }: { ownerId: string; ownerName: string;
apps/web/src/lib/agents/team-trading-summary.ts:65
↓ 8 callersFunctionbuildTelegramShareUrl
* Replicate the Telegram share URL construction from TelegramMiniAppProvider.
apps/web/src/components/providers/__tests__/TelegramMiniAppLogic.test.ts:16
↓ 8 callersFunctioncalculatePortfolioBreakdown
( userId: string )
packages/engine/src/services/portfolio-breakdown.ts:102
↓ 8 callersFunctioncalculateUnrealizedPnL
( entryPrice: number, currentPrice: number, side: PerpSide, size: number )
packages/core/markets/perps/PerpMarketService.ts:2207
↓ 8 callersFunctioncalculate_thinking_length_penalty
Calculate penalty based on thinking length. Returns value from -1.0 (heavy penalty) to 0.0 (no penalty). Penalty structure: - < 30
packages/training/python/src/training/quality_scorer.py:140
↓ 8 callersFunctioncalculate_volatility
Calculate normalized volatility from a list of percentage changes. Uses standard deviation normalized to [0, 1] range based on expected
packages/training/python/src/training/market_regime.py:109
↓ 8 callersFunctioncheck_reasoning_coherence
Check reasoning coherence using simple heuristics (0-1 score).
packages/training/python/src/training/quality_utils.py:162
↓ 8 callersFunctionclampPercent
(value: number)
packages/engine/src/utils/math-utils.ts:46
↓ 8 callersMethodcleanup
Called at end of training run
packages/examples/harness/src/types.ts:66
↓ 8 callersFunctioncleanupTestData
()
packages/testing/integration/group-chat-engagement-flow.integration.test.ts:261
↓ 8 callersFunctioncompareTickers
(a: PerpMarket, b: PerpMarket)
apps/web/src/lib/sortPerpsForScreener.ts:22
↓ 8 callersFunctioncompareTickers
(a: PerpMarket, b: PerpMarket)
apps/web/src/app/markets/_lib/sortPerpsForScreener.ts:22
↓ 8 callersFunctioncompute_trust_score
Compute structured trust score from sub-question decomposition. Returns a dict with individual sub-scores and the composite product.
packages/training/python/src/training/trust_decomposition.py:154
↓ 8 callersFunctioncontent_hash
(text: str)
packages/training/python/scripts/data-prep/build_diversified_training_data.py:92
↓ 8 callersFunctioncreateBaseInput
()
packages/testing/unit/system-status-service.test.ts:8
← previousnext →901–1,000 of 14,075, ranked by callers