Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BUPT-GAMMA/MASFactory
/ functions
Functions
3,241 in github.com/BUPT-GAMMA/MASFactory
⨍
Functions
3,241
◇
Types & classes
339
↳
Endpoints
12
↓ 2 callers
Function
chain_of_thought_prompt
Generate chain-of-thought prompt (with examples).
applications/camel/mmlu-pro/prompts.py:103
↓ 2 callers
Function
chatdev_majority_voting_to_blueprint
Compile ChatDev `is_majority_voting: true` graphs (parallel agents, no `edges` block).
masfactory/compatibility/chatdev/parse.py:213
↓ 2 callers
Function
checkForComplexStructure
* Check if function body contains complex control flow (for/if) at top level * that would affect node/edge creation. * * We only check direct chil
masfactory-visualizer/src/parser/builderFunctionParser.ts:270
↓ 2 callers
Function
check_bigcodebench_correctness
Check code correctness for BigCodeBench problems. Uses Windows-compatible evaluation function on Windows, and bigcodebench official untr
applications/camel/bigcodebench/eval_bigcodebench.py:199
↓ 2 callers
Function
childFilePath
(value: unknown)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:360
↓ 2 callers
Function
childGraphId
(value: unknown)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:364
↓ 2 callers
Function
childParentId
(value: unknown)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:356
↓ 2 callers
Method
clone
(self, **override_kwargs)
masfactory/core/node_template.py:370
↓ 2 callers
Function
coerce_edge_endpoints
(edge: dict[str, Any])
masfactory/compatibility/common/discover.py:41
↓ 2 callers
Function
collectClassBases
(rootNode: TSNode, code: string)
masfactory-visualizer/src/parser/astUtils.ts:61
↓ 2 callers
Function
collect_node_inputs
(data: dict[str, Any], state: DifyRuntimeState)
masfactory/compatibility/dify/runtime.py:124
↓ 2 callers
Function
compile_aml
Compile AML directly into an in-memory MASFactory ``Graph``.
masfactory/components/vibe/compiler.py:1180
↓ 2 callers
Method
complete
(self, messages: list[dict[str, str]])
applications/sparse_mad_reproduction/sparse_mad/llm_runner.py:15
↓ 2 callers
Function
concat_instructions
(agent_instructions: list | str, phase_instructions: list | str)
applications/chatdev_lite/components/lite_phase.py:13
↓ 2 callers
Function
concat_instructions
(agent_instructions: list | str, phase_instructions: list | str)
applications/chatdev/components/phase/phase.py:16
↓ 2 callers
Function
connect_loop_controller
( loop, plan: LoopPlan, inner_instances: dict, )
masfactory/compatibility/common/wire_loops.py:11
↓ 2 callers
Function
count_pdf_pages
(pdf_path: str | Path)
applications/nowwhat/tools/pdf_tools.py:35
↓ 2 callers
Function
createDefaultLoopConfig
()
applications/clawcanvas/frontend/src/composables/useClawCanvas.js:5
↓ 2 callers
Method
createOrShowPanel
* Create or show the main webview panel
masfactory-visualizer/src/webview/webviewProvider.ts:309
↓ 2 callers
Method
createRenderableCandidateFromGraphScope
( id: string, match: GraphScopeMatch, sourceRootNode: TSNode, code: string,
masfactory-visualizer/src/parser/parser.ts:1002
↓ 2 callers
Function
create_software_company_graph
Build the MetaGPT software-company workflow graph with configurable iterations, retry policies, and optional QA stages.
applications/metagpt/software_company/software_company.py:22
↓ 2 callers
Function
defaultPanelState
()
masfactory-visualizer/webview-ui/src/stores/preview.ts:68
↓ 2 callers
Function
deriveEdgeStyles
(mode: EdgeStyleMode, isDark: boolean, edgeColor: string)
masfactory-visualizer/webview-ui/src/utils/previewStyles.ts:62
↓ 2 callers
Method
destroy
()
masfactory-visualizer/webview-ui/src/utils/cyGraphRenderer.ts:216
↓ 2 callers
Function
detect_aml_version
Detect the AML version from text or a file path. AML documents created before explicit versioning are treated as v0.2 so the first public AML
masfactory/aml/versions.py:31
↓ 2 callers
Function
directChildOfContainer
( containerId: string | null, nodeId: string, parentById: Record<string, string> )
masfactory-visualizer/webview-ui/src/utils/smartLayout.ts:104
↓ 2 callers
Function
directGraphContainers
(graph: Element)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:163
↓ 2 callers
Function
doFit
()
masfactory-visualizer/webview-ui/src/utils/cyLayoutPipeline.ts:21
↓ 2 callers
Function
document_requires_model
(document: CanvasDocument)
applications/clawcanvas/backend/clawcanvas_backend/compiler.py:38
↓ 2 callers
Function
endpointExists
* @param {string} endpoint * @param {Set<string>} nodeNames * @param {Record<string, string>} typeByName * @param {Record<string, boolean>} opaqueB
masfactory-visualizer/webview-ui/src/utils/vibeValidation.js:74
↓ 2 callers
Function
endpointToAml
(endpoint: string, scope: SerializeScope)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:944
↓ 2 callers
Function
endpointToInternal
(endpoint: string, parent?: string, loopScope = false)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:103
↓ 2 callers
Function
ensureNodeDefaults
( nodeName: string, typeText: string, nodeCtx: NodeParseContext, templates?: { [name: string]:
masfactory-visualizer/src/parser/declarativeParser.ts:308
↓ 2 callers
Function
ensureRunning
(nodeId: string)
masfactory-visualizer/webview-ui/src/stores/runtimeStore.ts:463
↓ 2 callers
Function
estimate_messages_tokens
(messages: list[dict[str, str]], *, model_name: str = "gpt-4o-mini")
applications/sparse_mad_reproduction/sparse_mad/metrics.py:14
↓ 2 callers
Function
evaluate_aut
(model: OpenAIModel, response_obj, criterion, eval_type, sample_time=3)
applications/llm_discussion/Evaluation/eval_functions/eval_criterion.py:8
↓ 2 callers
Function
evaluate_case
(case: dict[str, Any], state: DifyRuntimeState)
masfactory/compatibility/dify/runtime.py:238
↓ 2 callers
Function
evaluate_scientific
(model: OpenAIModel, response_obj, criterion, eval_type, sample_time=3)
applications/llm_discussion/Evaluation/eval_functions/eval_criterion.py:69
↓ 2 callers
Function
evaluate_wkct
(model: OpenAIModel, response_obj, criterion, eval_type, sample_time=3)
applications/llm_discussion/Evaluation/eval_functions/eval_criterion.py:119
↓ 2 callers
Method
execute
(self, task_description: str, solution: str)
applications/agentverse/components/executors/none_executor.py:7
↓ 2 callers
Function
expansionToScopedGraph
( expansion: AmlImplementationExpansion, parentId: string, loopScope: boolean, target?: AmlPreviewTarg
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:516
↓ 2 callers
Function
export_standard_skill
( document: CanvasDocument, *, export_root: str | Path, run_output: dict[str, Any] | None = No
applications/clawcanvas/backend/clawcanvas_backend/skill_packager.py:59
↓ 2 callers
Function
externalRefParent
(value: unknown)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:842
↓ 2 callers
Function
extractNodeNameFromArgs
( args: TSNode[], code: string, fallbackName: string, literalValues?: { [name: string]: TSNode
masfactory-visualizer/src/parser/nodeParser.ts:254
↓ 2 callers
Function
extractNodeNameFromExpression
( node: TSNode, code: string, fallbackName: string )
masfactory-visualizer/src/parser/nodeParser.ts:274
↓ 2 callers
Function
extractNodeTypeFromCreateNodeArgs
( args: TSNode[], code: string, literalValues?: { [name: string]: TSNode } )
masfactory-visualizer/src/parser/nodeParser.ts:229
↓ 2 callers
Method
extractPatternBindingNames
(patternNode: TSNode, code: string)
masfactory-visualizer/src/parser/parser.ts:1843
↓ 2 callers
Method
extractPythonImplementationBindings
(text: string)
masfactory-visualizer/src/webview/previewGraphService.ts:563
↓ 2 callers
Method
extractXmlAttribute
(attrs: string, name: string)
masfactory-visualizer/src/webview/previewGraphService.ts:591
↓ 2 callers
Function
extract_answer
(text: str)
applications/sparse_mad_reproduction/sparse_mad/llm_runner.py:99
↓ 2 callers
Function
extract_answer_by_value_matching
Infer answer by matching calculation results with option content. Args: text: Assistant message text. choice1-4: Four op
applications/camel/gpqa/answer_extractor.py:84
↓ 2 callers
Function
extract_answer_by_value_matching
Infer answer by matching calculation results with option content. Args: text: Assistant message text. choiceA-J: Ten opt
applications/camel/mmlu-pro/answer_extractor.py:123
↓ 2 callers
Function
extract_function_body
Extract function body part from code containing function definition. Args: code: Code containing function definition ent
applications/camel/bigcodebench/code_extractor.py:640
↓ 2 callers
Function
extract_function_body_only
Extract function body part from code containing function definition (for HumanEval). HumanEval needs function body, not including functi
applications/camel/eval/code_extractor.py:174
↓ 2 callers
Function
extract_python_code
Extract Python code from text. Priority extraction: 1. Code block containing entry_point function 2. Python code in markdown cod
applications/camel/eval/code_extractor.py:7
↓ 2 callers
Function
extract_python_code
Extract Python code from text. Priority extraction: 1. Code block containing entry_point function 2. Python code in markdown cod
applications/camel/bigcodebench/code_extractor.py:11
↓ 2 callers
Function
extract_python_code
Extract Python code from text (complete software code, not function body). Priority extraction: 1. Python code in markdown code bloc
applications/camel/srdd/code_extractor.py:7
↓ 2 callers
Function
extract_role
(value: Any, role_key: str)
applications/camel/workflow.py:239
↓ 2 callers
Function
findBuildMethodAndBaseType
(node: TSNode)
masfactory-visualizer/src/parser/buildMethodParser.ts:26
↓ 2 callers
Method
findClassGraphScope
( rootNode: TSNode, code: string, className: string, preferredMethodName?: str
masfactory-visualizer/src/parser/parser.ts:947
↓ 2 callers
Method
findFunctionGraphScope
(rootNode: TSNode, code: string, functionName: string)
masfactory-visualizer/src/parser/parser.ts:939
↓ 2 callers
Method
findGraphAssignmentInScope
(scopeNode: TSNode, code: string)
masfactory-visualizer/src/parser/parser.ts:815
↓ 2 callers
Function
findMethodInClass
* Find a method within a class definition (supports decorated defs)
masfactory-visualizer/src/parser/componentParser.ts:516
↓ 2 callers
Method
findMethodInClassNode
(classNode: TSNode, code: string, methodName: string)
masfactory-visualizer/src/parser/parser.ts:786
↓ 2 callers
Method
findReexportTarget
( fromFilePath: string, fileCode: string, symbolName: string )
masfactory-visualizer/src/parser/parser.ts:618
↓ 2 callers
Function
findRootGraph
(root: Element)
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:217
↓ 2 callers
Function
fix_python2_syntax
Fix Python 2 syntax to be Python 3 compatible.
applications/camel/commongen/evaluate.py:12
↓ 2 callers
Method
format
Parse model output text into structured dict payload.
masfactory/core/message/base.py:80
↓ 2 callers
Method
format
(self, message: str)
applications/agentverse/formatters.py:123
↓ 2 callers
Function
formatDurationMs
(ms)
masfactory-visualizer/webview-ui/src/utils/runtimeSessionExport.js:91
↓ 2 callers
Function
format_symptoms_for_prompt
(symptoms: list[str])
applications/ddo/ddo/graphs/g_actions_generation_and_selection.py:118
↓ 2 callers
Method
forward_actor
(self, features: th.Tensor)
applications/ddo/ddo/services/policy.py:31
↓ 2 callers
Method
from_case
(cls, case: dict[str, Any])
applications/ddo/ddo/state_model/state.py:12
↓ 2 callers
Method
from_value
(cls, value: str | "FieldModality" | None)
masfactory/core/multimodal.py:19
↓ 2 callers
Function
generateOverlayHtml
(summary: GraphAttributesSummary, graphName: string)
masfactory-visualizer/webview-ui/src/utils/graphAttrsOverlay.ts:19
↓ 2 callers
Method
generate_images
Generate images for a text prompt. Providers that do not support image generation should raise NotImplementedError.
masfactory/adapters/model/base.py:222
↓ 2 callers
Function
generate_prompt_from_examples
Generate prompt text from example JSON.
applications/camel/gpqa/prompts.py:53
↓ 2 callers
Function
generate_prompt_from_examples
Generate prompt text from example JSON.
applications/camel/mmlu-pro/prompts.py:58
↓ 2 callers
Method
getComponentStructure
* Get component structure from cache or parse it
masfactory-visualizer/src/parser/parser.ts:173
↓ 2 callers
Method
getCy
()
masfactory-visualizer/webview-ui/src/utils/cyGraphRenderer.ts:91
↓ 2 callers
Function
getFirstTypedParameter
* Get first typed parameter from function parameters
masfactory-visualizer/src/parser/builderFunctionParser.ts:241
↓ 2 callers
Function
getGraphCalleeRank
(functionText: string)
masfactory-visualizer/src/parser/rootGraphFinder.ts:21
↓ 2 callers
Method
getGraphKindRank
(kind: 'Graph' | 'Loop' | 'RootGraph')
masfactory-visualizer/src/parser/parser.ts:809
↓ 2 callers
Method
getParsedPythonFile
(filePath: string)
masfactory-visualizer/src/parser/parser.ts:699
↓ 2 callers
Function
getPositionalArgs
(args: TSNode[])
masfactory-visualizer/src/parser/nodeParser.ts:163
↓ 2 callers
Method
getPrimaryWebviews
()
masfactory-visualizer/src/webview/webviewProvider.ts:562
↓ 2 callers
Method
getViewConditionConfig
(uri: string, kind: ViewKind)
masfactory-visualizer/src/webview/controlFlowStateStore.ts:73
↓ 2 callers
Function
get_agent_config
(config: Dict[str, Any],agent_type: str)
applications/agentverse/tasksolving/humaneval/workflow.py:20
↓ 2 callers
Method
get_blocks
(self, query: ContextQuery, *, top_k: int = 8)
masfactory/adapters/mcp.py:52
↓ 2 callers
Function
get_bridge
Return a Visualizer bridge without forcing a connection. This is an alias for `get_client()` kept for naming consistency with older code. It
masfactory/visualizer/client.py:356
↓ 2 callers
Function
get_disease_knowledge
(dataset_name: str, candidate_diseases: list)
applications/ddo/ddo/services/utils_data.py:12
↓ 2 callers
Function
get_disease_to_update
(state: ConsultationState)
applications/ddo/ddo/graphs/g_confidence_estimation.py:10
↓ 2 callers
Function
get_policy_run_dir
Return the local policy directory, accepting the typo used by the source repo.
applications/ddo/ddo/paths.py:12
↓ 2 callers
Function
get_visualizer_runtime
Return (and lazily create) the process-global VisualizerRuntime singleton. The runtime is enabled when `MASFACTORY_VISUALIZER_PORT` is set. Host
masfactory/visualizer/runtime.py:805
↓ 2 callers
Method
handleRefreshGraph
(documentUri: string | undefined)
masfactory-visualizer/src/webview/webviewProvider.ts:731
↓ 2 callers
Function
handle_retry_or_fallback
( *, state: ConsultationState, reason: str )
applications/ddo/ddo/graphs/g_actions_generation_and_selection.py:55
↓ 2 callers
Function
hasNonEmptyDict
(d)
masfactory-visualizer/webview-ui/src/utils/vibeGraphDesignV4.js:432
↓ 2 callers
Method
hydrate_from_messages
(self, messages: Iterable[dict], *, reuse_fingerprints: bool = True)
masfactory/core/multimodal.py:377
↓ 2 callers
Function
implementationExpansionFor
( implementation: string, options?: AmlGraphParseOptions )
masfactory-visualizer/webview-ui/src/utils/amlGraphDesign.ts:480
↓ 2 callers
Function
inferContainerKind
( rawTypeText: string, templates?: { [name: string]: ParsedNodeTemplate } )
masfactory-visualizer/src/parser/declarativeParser.ts:134
← previous
next →
701–800 of 3,241, ranked by callers