Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BUPT-GAMMA/MASFactory
/ types & classes
Types & classes
339 in github.com/BUPT-GAMMA/MASFactory
⨍
Functions
3,241
◇
Types & classes
339
↳
Endpoints
12
↓ 95 callers
Class
NodeTemplate
Declarative template for creating nodes inside graphs. A `NodeTemplate` is a lightweight configuration object that can be reused across graphs.
masfactory/core/node_template.py:250
↓ 44 callers
Class
ParagraphMessageFormatter
Formatter for `KEY:\\nvalue` paragraph-style message payloads.
masfactory/core/message/paragraph.py:5
↓ 44 callers
Class
RootGraph
Top-level executable graph. RootGraph is the user-facing entry point for building and invoking workflows.
masfactory/components/graphs/root_graph.py:5
↓ 40 callers
Class
OpenAIModel
OpenAI model adapter using the Responses API only.
masfactory/adapters/model/openai.py:25
↓ 38 callers
Class
CompatibilityImportError
Raised when an external workflow document cannot be converted into a `Graph`.
masfactory/compatibility/errors.py:4
↓ 34 callers
Class
HistoryMemory
Conversation history memory (list-of-dict message format).
masfactory/adapters/memory.py:55
↓ 30 callers
Class
TwinsFieldTextFormatter
Copy the raw LLM output to every required output field. This formatter intentionally does NOT attempt to parse, normalize, or extract any st
masfactory/core/message/twins.py:6
↓ 19 callers
Class
ExternalEdge
One directed edge between external node ids.
masfactory/compatibility/common/blueprint.py:21
↓ 17 callers
Class
VectorMemory
Semantic memory backed by embeddings and cosine similarity.
masfactory/adapters/memory.py:150
↓ 13 callers
Class
JsonMessageFormatter
Strict JSON formatter with guarded fallbacks for malformed outputs.
masfactory/core/message/json.py:70
↓ 13 callers
Class
Shared
Marker wrapper for NodeTemplate configs. Use this to explicitly share one dependency instance across node instances.
masfactory/core/node_template.py:17
↓ 12 callers
Class
SkillParseError
Raised when SKILL.md cannot be read or parsed into a valid skill definition.
masfactory/skills/errors.py:13
↓ 11 callers
Class
ExternalNode
One node discovered in an external workflow document.
masfactory/compatibility/common/blueprint.py:11
↓ 10 callers
Class
OpenAIModel
applications/llm_discussion/Evaluation/utils/openai_model.py:8
↓ 10 callers
Class
TextMessageBlock
Provider-agnostic text message block.
masfactory/core/multimodal.py:43
↓ 9 callers
Class
LenientJsonMessageFormatter
Best-effort JSON formatter tolerant to fenced blocks and noisy text.
masfactory/core/message/json.py:9
↓ 7 callers
Class
ContextBlock
One structured context unit to be injected into the user prompt.
masfactory/adapters/context/types.py:8
↓ 7 callers
Class
ModelCapabilities
Provider capability declaration used for early multimodal validation.
masfactory/adapters/model/base.py:19
↓ 6 callers
Class
Edge
Directed message channel between two nodes. An `Edge` buffers at most one in-flight message at a time. It can be opened/closed via a gate, an
masfactory/core/edge.py:12
↓ 6 callers
Class
FieldSpec
Normalized field declaration shared by Nodes, Edges and Agents.
masfactory/core/multimodal.py:32
↓ 6 callers
Class
GraphBlueprint
Normalized DAG-ish description before materializing a MASFactory `Graph`.
masfactory/compatibility/common/blueprint.py:32
↓ 6 callers
Class
PlainTextFormatter
Plain text formatter: clean prompts in, plain text out.
applications/multiagentesc/patch_masfactory.py:16
↓ 5 callers
Class
AmlNode
masfactory/aml/v0_2/document.py:24
↓ 5 callers
Class
HookStage
A hook stage with BEFORE/AFTER/ERROR keys derived from a stage name.
masfactory/utils/hook.py:41
↓ 5 callers
Class
TokenUsageTracker
Factory-backed token usage accumulator.
masfactory/adapters/token_usage_tracker.py:295
↓ 4 callers
Class
CamelMessageFormatter
Message formatter for CAMEL role-playing, supporting natural language output. This formatter is designed to handle flexible output formats fr
applications/camel/camel_formatter.py:12
↓ 4 callers
Class
ToolAdapter
Adapter that exposes Python callables as LLM tool definitions.
masfactory/adapters/tool_adapter.py:6
↓ 4 callers
Class
WebSocketError
Raised when the minimal WebSocket client encounters a protocol error.
masfactory/visualizer/ws.py:11
↓ 3 callers
Class
Codes
Manages code files, including extraction, updates, rewriting, and version control.
applications/chatdev/chatdev/codes.py:8
↓ 3 callers
Class
ContextQuery
Normalized query passed to context providers.
masfactory/adapters/context/types.py:21
↓ 3 callers
Class
DefaultTokenCounter
Fallback token counter using `cl100k_base`.
masfactory/adapters/token_usage_tracker.py:273
↓ 3 callers
Class
Documents
Manages document content, including parsing, updating, rewriting, and retrieving document content.
applications/chatdev_lite/chatdev/documents.py:7
↓ 3 callers
Class
Documents
Manages document content, including parsing, updating, rewriting, and retrieving document content.
applications/chatdev/chatdev/documents.py:7
↓ 3 callers
Class
OpenAICompatibleClient
applications/sparse_mad_reproduction/sparse_mad/llm_runner.py:19
↓ 3 callers
Class
TaggedFieldMessageFormatter
Tag-based stateful message formatter. Output format (no closing tags, no JSON wrapper): <key1>value1<key2>value2 Parsing rules:
masfactory/core/message/tagged.py:10
↓ 2 callers
Class
AttachmentTagRegistry
Assign stable, collision-free tags to media assets within one request.
masfactory/core/multimodal.py:359
↓ 2 callers
Class
CanvasEdge
applications/clawcanvas/backend/clawcanvas_backend/schema.py:28
↓ 2 callers
Class
CanvasNode
applications/clawcanvas/backend/clawcanvas_backend/schema.py:19
↓ 2 callers
Class
Codes
Manages code files, including extraction, updates, rewriting, and version control.
applications/chatdev_lite/chatdev/codes.py:8
↓ 2 callers
Class
CoverageTestExecutor
Compute concept coverage for text-generation solutions. This executor is primarily used for CommonGen-style tasks where the task description
applications/agentverse/components/executors/coverage_test.py:11
↓ 2 callers
Class
DefaultContextRenderer
Inject context as a single `CONTEXT` field in the user payload.
masfactory/adapters/context/renderer.py:17
↓ 2 callers
Class
Graph
Composite graph node with internal entry and exit ports. Graph is both a node and a container. It can be nested inside another graph.
masfactory/components/graphs/graph.py:12
↓ 2 callers
Class
HookManager
Simple in-process hook registry and dispatcher. Hooks are stored under an arbitrary `hook_key`. Callers register callbacks via `register()` a
masfactory/utils/hook.py:7
↓ 2 callers
Class
InquiryState
applications/ddo/ddo/state_model/state.py:62
↓ 2 callers
Class
InvalidSkillPackageError
Raised when a skill path exists but does not conform to the expected package layout.
masfactory/skills/errors.py:9
↓ 2 callers
Class
LATSNode
applications/lats/components/tree.py:8
↓ 2 callers
Class
LegacyOpenAIModel
OpenAI-compatible model adapter using Chat Completions only.
masfactory/adapters/model/legacy_openai.py:23
↓ 2 callers
Class
MCP
MCP-backed context provider. This adapter is intentionally lightweight: it delegates to a user-supplied callable that talks to an MCP server/
masfactory/adapters/mcp.py:9
↓ 2 callers
Class
MediaMessageBlock
Provider-agnostic media message block recorded in history and encoded by adapters.
masfactory/core/multimodal.py:215
↓ 2 callers
Class
Position
applications/clawcanvas/backend/clawcanvas_backend/schema.py:13
↓ 2 callers
Class
ResponseState
applications/ddo/ddo/state_model/state.py:83
↓ 2 callers
Class
RuntimeWarnings
applications/clawcanvas/backend/clawcanvas_backend/runtime_bindings.py:49
↓ 2 callers
Class
SentenceTransformerEmbedder
Embedder backed by `sentence-transformers`.
masfactory/utils/embedding.py:115
↓ 2 callers
Class
SimpleEmbedder
Very simple hashing-based embedder. This is intended for lightweight demos and tests, not for high-quality retrieval.
masfactory/utils/embedding.py:268
↓ 2 callers
Class
SkillManifest
applications/clawcanvas/backend/clawcanvas_backend/schema.py:36
↓ 2 callers
Class
SkillNotFoundError
Raised when the target skill directory or its required SKILL.md file does not exist.
masfactory/skills/errors.py:5
↓ 2 callers
Class
TimeoutException
applications/camel/eval/windows_execution.py:15
↓ 2 callers
Class
TimeoutException
applications/camel/bigcodebench/windows_eval.py:18
↓ 2 callers
Class
VisualizerClient
A small, stable facade for interacting with the `masfactory-visualizer` VS Code extension. Design goals: - Keep call-sites simple: `visu
masfactory/visualizer/client.py:24
↓ 2 callers
Class
_StubDifyModel
masfactory/compatibility/dify/options.py:41
↓ 2 callers
Class
tqdm
applications/camel/srdd/evaluate_quality.py:31
↓ 1 callers
Class
ACNet
applications/ddo/ddo/services/policy.py:11
↓ 1 callers
Class
APIConfigResolver
applications/ddo/ddo/runtime/config_types.py:11
↓ 1 callers
Class
APIGroupConfig
applications/ddo/ddo/runtime/config_types.py:45
↓ 1 callers
Class
Agent
LLM-driven agent node. The agent builds prompts from instructions, input fields, memories, retrievers, and output-field constraints, the
masfactory/components/agents/agent.py:103
↓ 1 callers
Class
AmlDocument
masfactory/aml/v0_2/document.py:52
↓ 1 callers
Class
AmlEdge
masfactory/aml/v0_2/document.py:15
↓ 1 callers
Class
AmlGraph
masfactory/aml/v0_2/document.py:44
↓ 1 callers
Class
AnthropicTokenCounter
Anthropic token counter using Anthropic SDK.
masfactory/adapters/token_usage_tracker.py:88
↓ 1 callers
Class
AppRuntime
applications/ddo/ddo/runtime/app_runtime.py:7
↓ 1 callers
Class
CanvasDocument
applications/clawcanvas/backend/clawcanvas_backend/schema.py:52
↓ 1 callers
Class
ChatDevCompileOptions
masfactory/compatibility/common/llm_options.py:35
↓ 1 callers
Class
ChatDevRootGraph
masfactory/compatibility/chatdev/graph.py:4
↓ 1 callers
Class
CodeTwinsFieldTextFormatter
A `TwinsFieldTextFormatter` that additionally extracts python code for selected fields. Default behavior extracts code for the `"solution"`
applications/agentverse/formatters.py:111
↓ 1 callers
Class
CompileWarnings
applications/clawcanvas/backend/clawcanvas_backend/compiler.py:20
↓ 1 callers
Class
ContextComposer
Collect context blocks from providers and inject them into the user payload.
masfactory/adapters/context/composer.py:12
↓ 1 callers
Class
ControlState
applications/ddo/ddo/state_model/state.py:21
↓ 1 callers
Class
Controller
Internal loop controller that decides continue vs terminate.
masfactory/components/graphs/loop.py:125
↓ 1 callers
Class
DatasetContext
applications/ddo/ddo/runtime/dataset_context.py:4
↓ 1 callers
Class
DefaultContextPolicy
Default policy: provider order dominates; score sorts only within provider.
masfactory/adapters/context/policy.py:20
↓ 1 callers
Class
DifyCompileOptions
Options for compiling a Dify DSL export into an executable MASFactory graph. By default, `llm` nodes use a **real** `OpenAIModel` (see `dify_mode
masfactory/compatibility/dify/options.py:13
↓ 1 callers
Class
DifyRootGraph
Executable root graph for compiled Dify workflows.
masfactory/compatibility/dify/root_graph.py:8
↓ 1 callers
Class
DifyRuntimeState
masfactory/compatibility/dify/runtime.py:14
↓ 1 callers
Class
DummyEvalEnvs
applications/ddo/ddo/services/policy_sampler.py:14
↓ 1 callers
Class
Edge
Workflow edge definition.
masfactory/components/vibe/vibe_workflow/planner/diagnose_node.py:39
↓ 1 callers
Class
EntryNode
masfactory/components/graphs/graph.py:47
↓ 1 callers
Class
ExitNode
masfactory/components/graphs/graph.py:62
↓ 1 callers
Class
GeminiTokenCounter
Gemini token counter with SDK-first and local fallback behavior.
masfactory/adapters/token_usage_tracker.py:127
↓ 1 callers
Class
HuggingFaceAdapter
HuggingFace model inference adapter. This adapter handles inference calls to HuggingFace models through the Inference API, supporting mul
applications/hugggpt2/adapters/huggingface_adapter.py:21
↓ 1 callers
Class
HuggingFaceTokenCounter
HuggingFace tokenizer-based counter for mapped model names.
masfactory/adapters/token_usage_tracker.py:183
↓ 1 callers
Class
ImageAsset
Image media asset.
masfactory/core/multimodal.py:123
↓ 1 callers
Class
LLMJsonError
applications/nowwhat/tools/llm_tools.py:11
↓ 1 callers
Class
LangflowCompileOptions
masfactory/compatibility/common/llm_options.py:40
↓ 1 callers
Class
LangflowRootGraph
masfactory/compatibility/langflow/graph.py:4
↓ 1 callers
Class
LocalAdapter
Local model server inference adapter. This adapter handles inference calls to locally deployed models through a local inference server en
applications/hugggpt2/adapters/local_adapter.py:13
↓ 1 callers
Class
LoopPlan
A strongly-connected region compiled into one MASFactory `Loop` node.
masfactory/compatibility/common/loops.py:10
↓ 1 callers
Class
MeshGraph
Multi-agent mesh composite component with round-robin discussion. A composite component that creates a Loop with multiple agents taking turns
masfactory/components/composed_graph/mesh_graph.py:21
↓ 1 callers
Class
ModelSelector
Model selector: checks model availability. This class manages checking model availability across different inference endpoints (HuggingFa
applications/hugggpt2/adapters/model_selector.py:14
↓ 1 callers
Class
NoneExecutor
No-op executor that returns the solution unchanged.
applications/agentverse/components/executors/none_executor.py:1
↓ 1 callers
Class
OpenAITokenCounter
OpenAI-family token counter based on `tiktoken`.
masfactory/adapters/token_usage_tracker.py:33
next →
1–100 of 339, ranked by callers