MCPcopy Create free account

hub / github.com/BabylonSocial/babylon / functions

Functions14,075 in github.com/BabylonSocial/babylon

↓ 3 callersFunctioncreateAdminRole
( userId: string, role: 'SUPER_ADMIN' | 'ADMIN' | 'VIEWER', grantedBy: string )
packages/testing/integration/admin-dashboard-rbac.integration.test.ts:101
↓ 3 callersMethodcreateAgent
(params: CreateAgentParams)
packages/training/src/dependencies.ts:49
↓ 3 callersMethodcreateAgentConfig
( config: Omit<AgentConfigRecord, 'updatedAt'> )
packages/core/storage/ports/agents.ts:67
↓ 3 callersMethodcreateComment
( postId: string, content: string )
packages/examples/babylon-typescript-agent/src/actions.ts:41
↓ 3 callersFunctioncreateDefaultState
()
apps/web/src/hooks/useUserPositions.ts:75
↓ 3 callersFunctioncreateEmptyState
()
packages/db/src/json-storage.ts:88
↓ 3 callersFunctioncreateGroupMembership
(options: { groupId: string; userId: string; addedBy?: string; role?: 'owner' | 'admin' | 'member'; })
packages/testing/integration/group-chat-dynamics.integration.test.ts:166
↓ 3 callersFunctioncreateInitialPersistedState
()
apps/web/src/stores/authStore.ts:106
↓ 3 callersFunctioncreateJsonClient
()
packages/db/src/json-client.ts:24
↓ 3 callersFunctioncreateMessage
(options: { chatId: string; senderId: string; content: string; createdAt?: Date; })
packages/testing/integration/group-chat-simulation.integration.test.ts:295
↓ 3 callersFunctioncreateMockPosition
( overrides: Partial<PredictionPositionRecord> = {} )
packages/testing/unit/prediction-market-events.test.ts:34
↓ 3 callersMethodcreateNotification
( postId: string, fromUserId: string, type: 'like' | 'comment' )
packages/examples/local-a2a-server/src/handlers/social-handler.ts:316
↓ 3 callersMethodcreatePosition
( position: Omit<PoolPositionRecord, 'updatedAt'> )
packages/core/storage/ports/trading.ts:23
↓ 3 callersMethodcreatePost
(content: string)
packages/examples/harness/src/types.ts:97
↓ 3 callersMethodcreatePredictionBroadcast
()
packages/engine/src/services/trade-execution-service.ts:388
↓ 3 callersMethodcreateQuestion
( question: Omit<QuestionRecord, 'id' | 'createdAt' | 'updatedAt'> )
packages/core/storage/ports/questions.ts:20
↓ 3 callersMethodcreateRuntimeWithPlugins
* Create AgentRuntime with standard plugin configuration * Shared logic for all agent types * * @param agentId - The agent's unique identifie
packages/agents/src/runtime/AgentRuntimeManager.ts:1419
↓ 3 callersFunctioncreateShare
(userId: string, postId: string)
packages/testing/integration/alpha-group-threshold.integration.test.ts:138
↓ 3 callersFunctioncreateShare
(userId: string, postId: string)
packages/testing/integration/group-chat-simulation.integration.test.ts:160
↓ 3 callersFunctioncreateStepWithEnvState
( envState: Record<string, number> )
packages/training/src/metrics/__tests__/TrajectoryMetricsExtractor.test.ts:737
↓ 3 callersFunctioncreateTestUser
(options: { displayName?: string; })
packages/engine/src/__tests__/integration/agent-group-chat-invite.integration.test.ts:86
↓ 3 callersMethodcreateUser
( user: Omit<UserRecord, 'createdAt' | 'updatedAt'> )
packages/core/storage/ports/users.ts:27
↓ 3 callersFunctioncreateWorldFactsGenerator
( config?: Partial<WorldFactsGenerationConfig>, llm?: BabylonLLMClient )
packages/engine/src/services/world-facts-generator.ts:664
↓ 3 callersMethodcreate_post
(self, content: str)
packages/examples/babylon-langgraph-agent/local_agent.py:151
↓ 3 callersMethodcreate_sample_trajectory
Create a sample trajectory for testing
packages/training/python/tests/test_atropos_integration.py:186
↓ 3 callersFunctioncreate_test_scenario
Create a test scenario
packages/training/python/tests/test_quality_scorer.py:36
↓ 3 callersMethoddecompress
(self, state: TurboQuantTensorState)
packages/training/python/src/training/turboquant.py:313
↓ 3 callersFunctiondedupe
(items: T[])
apps/web/src/app/api/realtime/token/route.ts:29
↓ 3 callersFunctiondeduplicate
Deduplicate training examples by content similarity. Returns (deduplicated_examples, result_stats).
packages/training/python/scripts/data-prep/deduplicate_training_data.py:303
↓ 3 callersMethoddeleteFact
* Delete a world fact
packages/engine/src/world-facts-service.ts:362
↓ 3 callersMethoddeletePayment
* Delete payment from storage
packages/a2a/src/payments/x402-manager.ts:207
↓ 3 callersFunctiondelta_str
(before: float, after: float)
packages/training/python/scripts/tools/validate_training_pipeline.py:593
↓ 3 callersMethoddepositTradingBalance
* Deposit to agent's virtualBalance from manager's virtualBalance. * * This is the canonical method for all agent deposit operations. * The d
packages/agents/src/services/AgentService.ts:616
↓ 3 callersFunctionderiveSecret
* Generate deterministic dev secrets based on a seed * Uses SHA-256 hash for deterministic but non-reversible derivation
packages/api/src/dev-credentials.ts:75
↓ 3 callersFunctiondescribe_input_artifact
( path_value: str | None, *, required_filename: str | None = "training_examples.jsonl", )
packages/training/python/scripts/data-prep/export_scam_defense_trajectories.py:235
↓ 3 callersMethoddestroy
()
packages/sim/core/types.ts:209
↓ 3 callersFunctiondetectArticleFlood
( posts: Post[], windowHours: number, maxPerHour: number )
packages/testing/integration/feed-health.integration.test.ts:102
↓ 3 callersFunctiondetectChatType
(chat: Chat)
packages/testing/unit/dm-validation.test.ts:273
↓ 3 callersFunctiondetectFirstWordsDupes
( posts: Post[], windowMs: number, n = 8 )
packages/testing/integration/feed-health.integration.test.ts:79
↓ 3 callersFunctiondetectPrediction
(content: string)
packages/shared/src/utils/content-analysis.ts:341
↓ 3 callersFunctiondetect_backend
Auto-detect the best available backend.
packages/training/python/scripts/train_local.py:246
↓ 3 callersFunctiondetect_regime_from_prices
Detect market regime from initial/final price snapshots. Convenience function when only start/end prices are available (no full history)
packages/training/python/src/training/market_regime.py:263
↓ 3 callersMethoddisableAutonomy
* Disable autonomy (sets setting and stops if running)
packages/agents/src/plugins/plugin-autonomy/src/service.ts:561
↓ 3 callersFunctiondiscover_local_export_files
Discover export JSON/JSONL files, including under symlinked export dirs.
packages/training/python/src/data_bridge/reader.py:260
↓ 3 callersMethodemit
(channel: string, payload: Record<string, unknown>)
packages/core/markets/shared/common.ts:62
↓ 3 callersMethodendTrajectory
* End trajectory and save to database using Drizzle
packages/agents/src/plugins/plugin-trajectory-logger/src/TrajectoryLoggerService.ts:502
↓ 3 callersFunctionensureDir
(dir: string)
scripts/generate-simulation-data.ts:193
↓ 3 callersFunctionensureMetrics
(poolId: string)
packages/engine/src/npc/portfolio-metrics.ts:94
↓ 3 callersFunctionequalsLoose
(a: string, b: string)
apps/web/src/app/profile/[id]/page.tsx:9
↓ 3 callersFunctionequalsLoose
(a: string, b: string)
apps/web/src/app/api/profiles/resolve/[identifier]/route.ts:31
↓ 3 callersFunctionescapeMarkdown
(text: string)
packages/sim/cli/shared.ts:118
↓ 3 callersFunctionestimate_lora_memory
( spec: QwenModelSpec, *, sequence_length: int, micro_batch_size: int, checkpointed: bool,
packages/training/python/src/training/qwen_capacity.py:452
↓ 3 callersMethodevaluate_responses
Evaluate a batch of responses. Args: responses: List of (response_text, test_scenario) pairs step: Current t
packages/training/python/src/training/evaluation.py:393
↓ 3 callersFunctionevolveSyntheticPerpQuoteState
(params: { market: PerpMarketRecord; previousQuote?: SyntheticPerpQuoteState | null; elapsedMs?: number;
packages/core/markets/perps/microstructure.ts:169
↓ 3 callersMethodexecuteDecisionBatch
* Execute a batch of trading decisions
packages/engine/src/services/trade-execution-service.ts:124
↓ 3 callersFunctionextractFirstJsonObject
(response: string)
packages/agents/src/autonomous/decision-json.ts:16
↓ 3 callersFunctionextractProcessEnvKeysFromText
(text: string)
scripts/env-audit.ts:142
↓ 3 callersFunctionextractProperNouns
(text: string)
packages/engine/src/services/content-grounding-validator.ts:175
↓ 3 callersFunctionextractSharedPrefix
(trajectories: Trajectory[])
packages/agents/src/plugins/plugin-trajectory-logger/src/art-format.ts:285
↓ 3 callersMethodextractTopicKey
* Extract topic key from content (normalized keywords)
packages/agents/src/autonomous/TopicDiversityService.ts:137
↓ 3 callersMethodextract_archetype_from_steps
Extract archetype from step action parameters if not set at trajectory level
packages/training/python/src/training/schemas.py:374
↓ 3 callersFunctionextract_archetype_from_trajectory
Extract archetype from trajectory data. Priority: 1. trajectory.archetype field 2. First step's action.parameters.archetype 3. D
packages/training/python/scripts/import_json_trajectories.py:97
↓ 3 callersFunctionextract_field
(chatml: str, role: str)
packages/training/python/scripts/tools/convert_chatml_to_trajectory.py:30
↓ 3 callersFunctionextract_field
(chatml: str, role: str)
packages/training/python/scripts/data-prep/build_diversified_training_data.py:51
↓ 3 callersMethodfailNode
(nodeId: string, error: unknown)
packages/engine/src/dag-trace/tracer.ts:154
↓ 3 callersFunctionfallbackGrouping
* Fallback grouping logic based on category and post count similarity
packages/engine/src/services/trending-grouping-service.ts:158
↓ 3 callersFunctionfetchAgents
()
apps/web/src/app/api/registry/all/route.ts:287
↓ 3 callersMethodfetchFeed
* Fetch and parse RSS feed from URL with exponential retry
packages/engine/src/services/rss-feed-service.ts:69
↓ 3 callersFunctionfetchProfileWidgetData
* Shared helper to fetch profile widget data. * Used by both the useEffect and handleRetry to avoid code duplication.
apps/web/src/components/profile/ProfileWidget.tsx:37
↓ 3 callersFunctionfetchTraceList
()
apps/dag-visualizer/src/App.tsx:32
↓ 3 callersFunctionfilter_near_duplicates
Remove samples whose response is near-duplicate of an already-kept sample.
packages/training/python/scripts/data-prep/build_diversified_training_data.py:399
↓ 3 callersFunctionfinal_user_turn
(record: dict[str, Any])
packages/training/python/scripts/scam_defense_exchange.py:671
↓ 3 callersFunctionfinish
()
apps/web/src/components/chats/hooks/useChatPage.ts:625
↓ 3 callersFunctionfinish
()
apps/web/src/components/agents/AgentChat.tsx:300
↓ 3 callersFunctionfinish
()
apps/web/src/app/agents/team/page.tsx:671
↓ 3 callersFunctionfirst_sentence
(text: str, max_length: int = 220)
packages/training/python/scripts/run_scambench_local.py:447
↓ 3 callersFunctionfmtPnl
(value: number)
apps/web/src/components/wallet/v2/pnl-tab.tsx:103
↓ 3 callersFunctionformatCompact
(n: number)
apps/web/src/app/markets/_components/dashboard/MarketsDashboard.tsx:20
↓ 3 callersFunctionformatDateTime
(date: Date | string)
packages/shared/src/utils/format.ts:116
↓ 3 callersFunctionformatMessage
Format raw API message to ChatMessage
apps/web/src/hooks/useChatMessages.ts:57
↓ 3 callersFunctionformatPercent
(value: number)
packages/api/src/services/system-status-service.ts:269
↓ 3 callersFunctionformatPercent
(value: number)
apps/web/src/components/profile/ProfileWidget.tsx:25
↓ 3 callersFunctionformatPercentage
(value: number)
packages/shared/src/utils/format.ts:331
↓ 3 callersFunctionformatPoints
(points: number)
apps/web/src/components/profile/PositionDetailModal.tsx:303
↓ 3 callersFunctionformatRandomContext
(context: RandomMarketContext)
packages/engine/src/prompts/random-context.ts:250
↓ 3 callersFunctionformatSignedNumber
(n: number, decimals = 0)
packages/engine/src/services/npc-positions-context-service.ts:34
↓ 3 callersFunctionformatSingleNPCDashboard
( ctx: NPCMarketContext, index?: number )
packages/engine/src/utils/trading-dashboard-format.ts:79
↓ 3 callersFunctionformatTimeSince
(ms: number | null)
apps/web/src/components/admin/SystemHealthTab.tsx:135
↓ 3 callersFunctionformat_messages
(tokenizer: Any, messages: list[dict[str, str]])
packages/training/python/scripts/run_scambench_local.py:230
↓ 3 callersFunctionformat_messages_as_text
Format chat messages for tokenizers with or without native chat templates. Tiny smoke-test models such as GPT-2 are useful for CPU validatio
packages/training/python/scripts/train_local.py:1507
↓ 3 callersMethodgenerateDecisionsForContexts
* Generate decisions for an array of contexts using LLM with token validation
packages/engine/src/MarketDecisionEngine.ts:573
↓ 3 callersFunctiongenerateEvents
( questions: QuestionForEvent[], timestamp: Date, currentDay?: number, llmClient?: BabylonLLMClient )
packages/engine/src/services/event-generation-helpers.ts:263
↓ 3 callersMethodgenerateLabel
* Generate a label from a value string
packages/engine/src/world-facts-service.ts:221
↓ 3 callersFunctiongenerateMockData
(count: number, basePrice = 0.5)
apps/web/src/components/markets/PredictionProbabilityChart.test.tsx:14
↓ 3 callersFunctiongenerateNPCPost
( llmClient: BabylonLLMClient, actor: ActorForPost, question: QuestionForPost, worldFactsContext: stri
packages/engine/src/services/post-generation-helpers.ts:501
↓ 3 callersFunctiongenerateNPCRepliesFromPreviousTicks
( llmClient: LLMJsonClient, actors: DiscourseActor[], worldFactsContext: string, timestamp: Date, ma
packages/engine/src/services/post-generation-helpers.ts:1364
↓ 3 callersMethodgenerateParody
* Generate a parody headline from a real headline * * @description Generates a satirical parody version of a real headline using * LLM. Appli
packages/engine/src/services/parody-headline-generator.ts:83
↓ 3 callersFunctiongeneratePositionKey
(actorId: string, orgId: string)
packages/engine/src/__tests__/unit/npc-duplicate-position-prevention.test.ts:17
↓ 3 callersFunctiongenerateRandomMarketContext
(options?: { includeGainers?: boolean; includeLosers?: boolean; includeQuestions?: boolean; includePos
packages/engine/src/prompts/random-context.ts:214
↓ 3 callersMethodgenerate_messages
(self, messages, *, max_new_tokens=120, assistant_prefix=None)
packages/training/python/tests/test_train_local_script.py:1480
← previousnext →2,401–2,500 of 14,075, ranked by callers