MCPcopy Create free account

hub / github.com/THU-MAIC/OpenMAIC / functions

Functions4,064 in github.com/THU-MAIC/OpenMAIC

↓ 1 callersFunctionaudioObjectUrl
(audioId: string)
lib/audio/regenerate-speech-tts.ts:53
↓ 1 callersFunctionbakeImageFilter
* Bake an <img>'s CSS `filter` into its bitmap. html2canvas-pro ignores the * `filter` property, so without this any brightness/contrast/saturate/opa
packages/@openmaic/renderer/src/snapshot/index.ts:324
↓ 1 callersFunctionbakeImageSoftEdge
* Bake the soft-edge feather (a:softEdge) into an <img>'s bitmap. html2canvas-pro * ignores CSS masks, so the feather BaseImageElement applies is los
packages/@openmaic/renderer/src/snapshot/index.ts:359
↓ 1 callersFunctionbase64ToBlob
* Convert base64 data URL to Blob
lib/utils/image-storage.ts:17
↓ 1 callersFunctionbase64ToBlob
(base64: string, mimeType?: string)
lib/audio/voice-registration-client.ts:22
↓ 1 callersFunctionbase64ToBlob
(base64: string, mimeType?: string)
lib/audio/tts-providers.ts:456
↓ 1 callersFunctionbase64ToBlob
(base64: string, mimeType?: string)
lib/audio/voxcpm-registration.ts:30
↓ 1 callersFunctionblobToBase64
* Convert Blob to base64 data URL
lib/utils/image-storage.ts:36
↓ 1 callersFunctionblobToBase64
(blob: Blob)
lib/audio/voice-registration-client.ts:29
↓ 1 callersFunctionblobToBase64
(blob: Blob)
lib/audio/voxcpm-voices.ts:39
↓ 1 callersFunctionblobToDataUrl
Read a Blob as a base64 data URL (image fallback when OSS is unconfigured).
components/scene-renderers/pbl/v2/submission.tsx:134
↓ 1 callersFunctionblockQuoteRule
(nodeType: NodeType)
lib/prosemirror/plugins/inputrules.ts:11
↓ 1 callersFunctionbodyTextHeightPx
(textBody: TextBody, options: RenderTextBodyOptions | undefined)
packages/@openmaic/importer/src/serializer/textSerializer.ts:824
↓ 1 callersFunctionbooleanField
(record: Record<string, unknown>, key: string)
lib/generation/generation-retry.ts:82
↓ 1 callersMethodbootstrapReferenceClip
Synthesize the voice design once into a reference clip.
lib/audio/voice-registration.ts:33
↓ 1 callersFunctionbootstrapSentence
(language?: string)
lib/audio/voxcpm-registration.ts:52
↓ 1 callersFunctionbootstrapVoxCPMReferenceClip
( cfg: VoiceRegistrationConfig, params: { design: VoiceDesign; language?: string }, )
lib/audio/voxcpm-registration.ts:99
↓ 1 callersFunctionbufToHex
Convert ArrayBuffer to hex string
middleware.ts:9
↓ 1 callersFunctionbuildActContext
SCENARIO ACT MODEL. A roleplay milestone is ONE continuous scene whose beats * are background checkpoints, not sequentially-advanced units. So the
lib/pbl/v2/agents/simulator.ts:340
↓ 1 callersFunctionbuildAgent
(opts: BuildAgentOptions)
lib/agent/runtime/build-agent.ts:46
↓ 1 callersFunctionbuildAgentResponses
Prior agent turns -> AgentTurnSummary[] for peer context in the prompt.
eval/orchestration/answer-content-runner.ts:186
↓ 1 callersFunctionbuildAnchor
(microtask: PBLMicrotask)
lib/pbl/v2/agents/instructor.ts:154
↓ 1 callersFunctionbuildBaikeUrl
(query: string)
lib/web-search/baidu.ts:35
↓ 1 callersFunctionbuildBochaWebSearchUrl
(baseUrl?: string)
lib/web-search/bocha.ts:14
↓ 1 callersFunctionbuildBraveSearchUrl
(query: string, baseUrl?: string)
lib/web-search/brave.ts:25
↓ 1 callersFunctionbuildBundle
()
packages/@openmaic/renderer/rollup.config.js:48
↓ 1 callersFunctionbuildColorCacheKey
* Build a cache key for a color node based on its tag, value, and modifiers.
packages/@openmaic/importer/src/serializer/StyleResolver.ts:24
↓ 1 callersFunctionbuildConfig
(yamlData: YamlData)
lib/server/provider-config.ts:290
↓ 1 callersFunctionbuildContextOverrides
(upload: OssUpload | undefined)
packages/@openmaic/importer/src/import-pipeline/index.ts:102
↓ 1 callersFunctionbuildDiscussionContextSection
( discussionContext: DiscussionContext | undefined, agentResponses: AgentTurnSummary[] | undefined, )
lib/orchestration/prompt-builder.ts:90
↓ 1 callersFunctionbuildGoalCoverage
SCENARIO ONLY. Aggregate the final evaluator's per-act goal verdict * (`PBLEvaluation.actGoals` on the latest final eval) into a coverage summary.
lib/pbl/v2/operations/completion-stats.ts:337
↓ 1 callersFunctionbuildHardRulesBlock
Final "hard rules" block appended after every other prompt * section so it sits closest to the conversation (positional * recency). Re-asserts ide
lib/pbl/v2/agents/instructor.ts:549
↓ 1 callersFunctionbuildHighlights
( concepts: string[], unlocks: number, checks: number, totalErrors: number, toughest: { title: strin
lib/pbl/v2/operations/completion-stats.ts:486
↓ 1 callersFunctionbuildImageFilters
* Build `filters` for PPTist: `sharpen`, `colorTemperature`, `saturation`, `brightness`, `contrast`. * * - **ISO / DrawingML**: `<a:lum bright contr
packages/@openmaic/importer/src/serializer/imageSerializer.ts:229
↓ 1 callersFunctionbuildInitialState
( request: StatelessChatRequest, languageModel: LanguageModel, thinkingConfig?: ThinkingConfig, )
lib/orchestration/director-graph.ts:502
↓ 1 callersFunctionbuildInput
(tc: TestCase, outline: SceneOutline)
eval/pbl-v2-planner/runner.ts:278
↓ 1 callersFunctionbuildInputRules
(schema: Schema)
lib/prosemirror/plugins/inputrules.ts:49
↓ 1 callersFunctionbuildInputSummary
(input: GenerateClassroomInput)
lib/server/classroom-job-store.ts:47
↓ 1 callersFunctionbuildKeymap
(schema: Schema)
lib/prosemirror/plugins/keymap.ts:18
↓ 1 callersFunctionbuildLanguageConstraint
(langDirective?: string)
lib/orchestration/prompt-builder.ts:86
↓ 1 callersFunctionbuildLanguageText
(directive?: string, sceneNote?: string)
lib/generation/prompt-formatters.ts:143
↓ 1 callersFunctionbuildLengthGuidelines
* Build role-aware length and style guidelines. * * All agents should be concise and conversational. Student agents must be * significantly shorter
lib/orchestration/prompt-builder.ts:175
↓ 1 callersFunctionbuildMathRPr
* Build <a:rPr> for math runs. PowerPoint requires Cambria Math font. * @param szHundredths - font size in hundredths of a point (e.g. 1200 = 12pt).
lib/export/latex-to-omml.ts:25
↓ 1 callersFunctionbuildMessages
Turn list -> the UIMessage[] shape convertMessagesToOpenAI expects.
eval/orchestration/answer-content-runner.ts:163
↓ 1 callersFunctionbuildMicrotaskBlock
(microtask: PBLMicrotask, position: number, total: number)
lib/pbl/v2/agents/instructor.ts:140
↓ 1 callersFunctionbuildMilestoneBlock
(milestone: PBLMilestone)
lib/pbl/v2/agents/instructor.ts:126
↓ 1 callersFunctionbuildMiniMaxWebSearchUrl
(baseUrl?: string)
lib/web-search/minimax.ts:13
↓ 1 callersFunctionbuildOutline
(tc: TestCase, order: number)
eval/pbl-v2-planner/runner.ts:264
↓ 1 callersFunctionbuildPeerContextSection
( agentResponses: AgentTurnSummary[] | undefined, currentAgentName: string, )
lib/orchestration/summarizers/peer-context.ts:9
↓ 1 callersFunctionbuildPlugins
(schema: Schema, options?: PluginOptions)
lib/prosemirror/plugins/index.ts:16
↓ 1 callersFunctionbuildPresentationBubbleModel
({ playbackView, participants, speakingAgentId, isTopicPending, fallbackTeacherName, fallbackStude
components/roundtable/presentation-speech-overlay.tsx:41
↓ 1 callersFunctionbuildProjectBlock
(project: PBLProjectV2)
lib/pbl/v2/agents/instructor.ts:108
↓ 1 callersFunctionbuildRequestUrl
(baseUrl: string)
components/settings/web-search-settings.tsx:31
↓ 1 callersFunctionbuildRoadmapBlock
(project: PBLProjectV2, activeMicrotaskId: string)
lib/pbl/v2/agents/instructor.ts:376
↓ 1 callersFunctionbuildScenarioFinalUser
SCENARIO ONLY. The user-evidence half for a role-play completion report: * the scenario premise, the actual transcript, the act goals to assess, and
lib/pbl/v2/operations/eval-prompts.ts:441
↓ 1 callersFunctionbuildSceneFromOutline
( outline: SceneOutline, aiCall: AICallFn, stageId: string, assignedImages?: PdfImage[], imageMappin
lib/generation/scene-builder.ts:68
↓ 1 callersFunctionbuildScholarUrl
(query: string, baseUrl?: string)
lib/web-search/baidu.ts:42
↓ 1 callersFunctionbuildSetupHistoryMessages
* Setup opener history should not "reply" to the previous learner * utterance. We strip trailing user messages so the setup opener is * framed as a
lib/pbl/v2/agents/instructor.ts:924
↓ 1 callersFunctionbuildSingleCallUserPrompt
(scenarioRoleplay: boolean)
lib/pbl/v2/agents/planner-single-call.ts:59
↓ 1 callersFunctionbuildSpeakerNotes
* Extract speaker notes text from a scene's actions. * Concatenates speech text and action labels into plain text.
lib/export/use-export-pptx.ts:347
↓ 1 callersFunctionbuildStageDetails
(project: PBLProjectV2)
lib/pbl/v2/operations/completion-stats.ts:431
↓ 1 callersFunctionbuildStageSynthesisBlock
Optional instructions injected ONLY on the last microtask of a * `synthesisCheck` (core-knowledge) stage. Drives a one-time * integrative reverse-
lib/pbl/v2/agents/instructor.ts:649
↓ 1 callersFunctionbuildStateContext
(storeState: StatelessChatRequest['storeState'])
lib/orchestration/summarizers/state-context.ts:97
↓ 1 callersFunctionbuildStoreState
Store state from the scenario's classroom context (slide scene + stage), * so buildStructuredPrompt produces the same "# Current State" shape/bulk as
eval/orchestration/answer-content-runner.ts:149
↓ 1 callersFunctionbuildStudentProfileSection
(userProfile?: { nickname?: string; bio?: string })
lib/orchestration/prompt-builder.ts:79
↓ 1 callersFunctionbuildSubmissionContextBlock
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/agents/instructor.ts:220
↓ 1 callersFunctionbuildTaskEvaluationBlock
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/agents/instructor.ts:196
↓ 1 callersFunctionbuildTavilySearchUrl
(baseUrl?: string)
lib/web-search/tavily.ts:16
↓ 1 callersFunctionbuildTeacherConfig
Build a full AgentConfig for the teacher from the scenario spec.
eval/orchestration/answer-content-runner.ts:126
↓ 1 callersFunctionbuildTools
( project: PBLProjectV2, input: PBLPlannerV2Input, scenarioRoleplay: boolean, callbacks?: PlannerV2Cal
lib/pbl/v2/agents/planner.ts:475
↓ 1 callersFunctionbuildVariants
(args: BuildArgs)
eval/orchestration/prompt-variants.ts:173
↓ 1 callersFunctionbuildVariants
(scenario: AnsweringScenario)
eval/orchestration/answering-runner.ts:162
↓ 1 callersFunctionbuildVirtualWhiteboardContext
( storeState: StatelessChatRequest['storeState'], ledger?: WhiteboardActionRecord[], )
lib/orchestration/summarizers/whiteboard-ledger.ts:24
↓ 1 callersFunctionbuildVoxCPMBackendUrl
(baseUrl: string, backend: VoxCPMBackendType)
lib/audio/voxcpm.ts:83
↓ 1 callersFunctionbuildVoxCPMTargetText
(text: string, voicePrompt?: string)
lib/audio/tts-providers.ts:347
↓ 1 callersFunctionbuildWhiteboardGuidelines
* Build role-aware whiteboard guidelines. * * Content lives in markdown templates under lib/prompts/templates/agent-system-wb-<role>/ * with the sh
lib/orchestration/prompt-builder.ts:208
↓ 1 callersFunctionbuildWhiteboardStateForDirector
* Build the whiteboard state section for the director prompt. * Returns empty string if there are no whiteboard actions.
lib/orchestration/director-prompt.ts:194
↓ 1 callersFunctionbuildWidgetOutline
* Build widgetOutline from interactiveConfig for backward compatibility
lib/generation/scene-generator.ts:269
↓ 1 callersFunctionbulletListRule
(nodeType: NodeType)
lib/prosemirror/plugins/inputrules.ts:21
↓ 1 callersFunctionbytesToBase64
(bytes: Uint8Array)
lib/audio/voxcpm-registration.ts:37
↓ 1 callersFunctionbytesToDataUrl
(bytes: Uint8Array, mediaPath: string)
packages/@openmaic/importer/src/serializer/imageSerializer.ts:406
↓ 1 callersFunctioncalculateRotatedPosition
( x: number, y: number, w: number, h: number, ox: number, oy: number, k: number, )
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:321
↓ 1 callersFunctioncallDirector
( model: Awaited<ReturnType<typeof resolveEvalModel>>['model'], systemPrompt: string, )
eval/orchestration/runner.ts:66
↓ 1 callersFunctioncallImageApi
( req: MediaGenerationRequest, abortSignal?: AbortSignal, )
lib/media/media-orchestrator.ts:186
↓ 1 callersFunctioncallVideoApi
( req: MediaGenerationRequest, abortSignal?: AbortSignal, )
lib/media/media-orchestrator.ts:226
↓ 1 callersFunctioncanvasToBlob
(canvas: HTMLCanvasElement)
packages/@openmaic/renderer/src/snapshot/index.ts:409
↓ 1 callersFunctioncapabilitiesFromPdfProvider
( provider: PDFProviderConfig, providerId: PDFProviderId, )
lib/document/extractors/pdf.ts:13
↓ 1 callersFunctioncapitalize
(input: string)
components/generation/outlines-editor.tsx:1484
↓ 1 callersFunctioncaptureWhiteboard
( elements: PPTElement[], outputDir: string, filename: string, )
eval/whiteboard-layout/capture.ts:30
↓ 1 callersFunctioncheckCompletionGate
(project: PBLProjectV2)
eval/pbl-v2-planner/runner.ts:296
↓ 1 callersFunctioncheckIfCircular
(commands, width, height)
packages/@openmaic/importer/src1/shape.js:367
↓ 1 callersFunctionclampBudgetForCapability
( thinking: ThinkingCapability, budgetTokens?: number, )
lib/ai/thinking-config.ts:19
↓ 1 callersFunctionclampCount
(maxResults: number)
lib/web-search/bocha.ts:21
↓ 1 callersFunctionclassify
( raw: string, scenario: AnsweringScenario, )
eval/orchestration/answering-runner.ts:173
↓ 1 callersFunctionclassifyDecision
(raw: string)
eval/orchestration/judge.ts:17
↓ 1 callersFunctioncleanProtocolMarkersFromMessage
(message: M)
components/scene-renderers/pbl/v2/apply-instructor-event.ts:19
↓ 1 callersFunctioncleanupOldImages
(hoursOld: number = 24)
lib/utils/image-storage.ts:130
↓ 1 callersFunctionclearDatabase
()
lib/utils/database.ts:446
↓ 1 callersFunctionclearPendingTaskCompletion
(project: PBLProjectV2, microtaskId?: string)
lib/pbl/v2/operations/task-completion.ts:151
↓ 1 callersFunctionclearPlaybackState
(stageId: string)
lib/utils/playback-storage.ts:56
← previousnext →1,601–1,700 of 4,064, ranked by callers