MCPcopy Create free account

hub / github.com/BUPT-GAMMA/MASFactory / types & classes

Types & classes339 in github.com/BUPT-GAMMA/MASFactory

↓ 95 callersClassNodeTemplate
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 callersClassParagraphMessageFormatter
Formatter for `KEY:\\nvalue` paragraph-style message payloads.
masfactory/core/message/paragraph.py:5
↓ 44 callersClassRootGraph
Top-level executable graph. RootGraph is the user-facing entry point for building and invoking workflows.
masfactory/components/graphs/root_graph.py:5
↓ 40 callersClassOpenAIModel
OpenAI model adapter using the Responses API only.
masfactory/adapters/model/openai.py:25
↓ 38 callersClassCompatibilityImportError
Raised when an external workflow document cannot be converted into a `Graph`.
masfactory/compatibility/errors.py:4
↓ 34 callersClassHistoryMemory
Conversation history memory (list-of-dict message format).
masfactory/adapters/memory.py:55
↓ 30 callersClassTwinsFieldTextFormatter
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 callersClassExternalEdge
One directed edge between external node ids.
masfactory/compatibility/common/blueprint.py:21
↓ 17 callersClassVectorMemory
Semantic memory backed by embeddings and cosine similarity.
masfactory/adapters/memory.py:150
↓ 13 callersClassJsonMessageFormatter
Strict JSON formatter with guarded fallbacks for malformed outputs.
masfactory/core/message/json.py:70
↓ 13 callersClassShared
Marker wrapper for NodeTemplate configs. Use this to explicitly share one dependency instance across node instances.
masfactory/core/node_template.py:17
↓ 12 callersClassSkillParseError
Raised when SKILL.md cannot be read or parsed into a valid skill definition.
masfactory/skills/errors.py:13
↓ 11 callersClassExternalNode
One node discovered in an external workflow document.
masfactory/compatibility/common/blueprint.py:11
↓ 10 callersClassOpenAIModel
applications/llm_discussion/Evaluation/utils/openai_model.py:8
↓ 10 callersClassTextMessageBlock
Provider-agnostic text message block.
masfactory/core/multimodal.py:43
↓ 9 callersClassLenientJsonMessageFormatter
Best-effort JSON formatter tolerant to fenced blocks and noisy text.
masfactory/core/message/json.py:9
↓ 7 callersClassContextBlock
One structured context unit to be injected into the user prompt.
masfactory/adapters/context/types.py:8
↓ 7 callersClassModelCapabilities
Provider capability declaration used for early multimodal validation.
masfactory/adapters/model/base.py:19
↓ 6 callersClassEdge
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 callersClassFieldSpec
Normalized field declaration shared by Nodes, Edges and Agents.
masfactory/core/multimodal.py:32
↓ 6 callersClassGraphBlueprint
Normalized DAG-ish description before materializing a MASFactory `Graph`.
masfactory/compatibility/common/blueprint.py:32
↓ 6 callersClassPlainTextFormatter
Plain text formatter: clean prompts in, plain text out.
applications/multiagentesc/patch_masfactory.py:16
↓ 5 callersClassAmlNode
masfactory/aml/v0_2/document.py:24
↓ 5 callersClassHookStage
A hook stage with BEFORE/AFTER/ERROR keys derived from a stage name.
masfactory/utils/hook.py:41
↓ 5 callersClassTokenUsageTracker
Factory-backed token usage accumulator.
masfactory/adapters/token_usage_tracker.py:295
↓ 4 callersClassCamelMessageFormatter
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 callersClassToolAdapter
Adapter that exposes Python callables as LLM tool definitions.
masfactory/adapters/tool_adapter.py:6
↓ 4 callersClassWebSocketError
Raised when the minimal WebSocket client encounters a protocol error.
masfactory/visualizer/ws.py:11
↓ 3 callersClassCodes
Manages code files, including extraction, updates, rewriting, and version control.
applications/chatdev/chatdev/codes.py:8
↓ 3 callersClassContextQuery
Normalized query passed to context providers.
masfactory/adapters/context/types.py:21
↓ 3 callersClassDefaultTokenCounter
Fallback token counter using `cl100k_base`.
masfactory/adapters/token_usage_tracker.py:273
↓ 3 callersClassDocuments
Manages document content, including parsing, updating, rewriting, and retrieving document content.
applications/chatdev_lite/chatdev/documents.py:7
↓ 3 callersClassDocuments
Manages document content, including parsing, updating, rewriting, and retrieving document content.
applications/chatdev/chatdev/documents.py:7
↓ 3 callersClassOpenAICompatibleClient
applications/sparse_mad_reproduction/sparse_mad/llm_runner.py:19
↓ 3 callersClassTaggedFieldMessageFormatter
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 callersClassAttachmentTagRegistry
Assign stable, collision-free tags to media assets within one request.
masfactory/core/multimodal.py:359
↓ 2 callersClassCanvasEdge
applications/clawcanvas/backend/clawcanvas_backend/schema.py:28
↓ 2 callersClassCanvasNode
applications/clawcanvas/backend/clawcanvas_backend/schema.py:19
↓ 2 callersClassCodes
Manages code files, including extraction, updates, rewriting, and version control.
applications/chatdev_lite/chatdev/codes.py:8
↓ 2 callersClassCoverageTestExecutor
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 callersClassDefaultContextRenderer
Inject context as a single `CONTEXT` field in the user payload.
masfactory/adapters/context/renderer.py:17
↓ 2 callersClassGraph
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 callersClassHookManager
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 callersClassInquiryState
applications/ddo/ddo/state_model/state.py:62
↓ 2 callersClassInvalidSkillPackageError
Raised when a skill path exists but does not conform to the expected package layout.
masfactory/skills/errors.py:9
↓ 2 callersClassLATSNode
applications/lats/components/tree.py:8
↓ 2 callersClassLegacyOpenAIModel
OpenAI-compatible model adapter using Chat Completions only.
masfactory/adapters/model/legacy_openai.py:23
↓ 2 callersClassMCP
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 callersClassMediaMessageBlock
Provider-agnostic media message block recorded in history and encoded by adapters.
masfactory/core/multimodal.py:215
↓ 2 callersClassPosition
applications/clawcanvas/backend/clawcanvas_backend/schema.py:13
↓ 2 callersClassResponseState
applications/ddo/ddo/state_model/state.py:83
↓ 2 callersClassRuntimeWarnings
applications/clawcanvas/backend/clawcanvas_backend/runtime_bindings.py:49
↓ 2 callersClassSentenceTransformerEmbedder
Embedder backed by `sentence-transformers`.
masfactory/utils/embedding.py:115
↓ 2 callersClassSimpleEmbedder
Very simple hashing-based embedder. This is intended for lightweight demos and tests, not for high-quality retrieval.
masfactory/utils/embedding.py:268
↓ 2 callersClassSkillManifest
applications/clawcanvas/backend/clawcanvas_backend/schema.py:36
↓ 2 callersClassSkillNotFoundError
Raised when the target skill directory or its required SKILL.md file does not exist.
masfactory/skills/errors.py:5
↓ 2 callersClassTimeoutException
applications/camel/eval/windows_execution.py:15
↓ 2 callersClassTimeoutException
applications/camel/bigcodebench/windows_eval.py:18
↓ 2 callersClassVisualizerClient
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 callersClass_StubDifyModel
masfactory/compatibility/dify/options.py:41
↓ 2 callersClasstqdm
applications/camel/srdd/evaluate_quality.py:31
↓ 1 callersClassACNet
applications/ddo/ddo/services/policy.py:11
↓ 1 callersClassAPIConfigResolver
applications/ddo/ddo/runtime/config_types.py:11
↓ 1 callersClassAPIGroupConfig
applications/ddo/ddo/runtime/config_types.py:45
↓ 1 callersClassAgent
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 callersClassAmlDocument
masfactory/aml/v0_2/document.py:52
↓ 1 callersClassAmlEdge
masfactory/aml/v0_2/document.py:15
↓ 1 callersClassAmlGraph
masfactory/aml/v0_2/document.py:44
↓ 1 callersClassAnthropicTokenCounter
Anthropic token counter using Anthropic SDK.
masfactory/adapters/token_usage_tracker.py:88
↓ 1 callersClassAppRuntime
applications/ddo/ddo/runtime/app_runtime.py:7
↓ 1 callersClassCanvasDocument
applications/clawcanvas/backend/clawcanvas_backend/schema.py:52
↓ 1 callersClassChatDevCompileOptions
masfactory/compatibility/common/llm_options.py:35
↓ 1 callersClassChatDevRootGraph
masfactory/compatibility/chatdev/graph.py:4
↓ 1 callersClassCodeTwinsFieldTextFormatter
A `TwinsFieldTextFormatter` that additionally extracts python code for selected fields. Default behavior extracts code for the `"solution"`
applications/agentverse/formatters.py:111
↓ 1 callersClassCompileWarnings
applications/clawcanvas/backend/clawcanvas_backend/compiler.py:20
↓ 1 callersClassContextComposer
Collect context blocks from providers and inject them into the user payload.
masfactory/adapters/context/composer.py:12
↓ 1 callersClassControlState
applications/ddo/ddo/state_model/state.py:21
↓ 1 callersClassController
Internal loop controller that decides continue vs terminate.
masfactory/components/graphs/loop.py:125
↓ 1 callersClassDatasetContext
applications/ddo/ddo/runtime/dataset_context.py:4
↓ 1 callersClassDefaultContextPolicy
Default policy: provider order dominates; score sorts only within provider.
masfactory/adapters/context/policy.py:20
↓ 1 callersClassDifyCompileOptions
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 callersClassDifyRootGraph
Executable root graph for compiled Dify workflows.
masfactory/compatibility/dify/root_graph.py:8
↓ 1 callersClassDifyRuntimeState
masfactory/compatibility/dify/runtime.py:14
↓ 1 callersClassDummyEvalEnvs
applications/ddo/ddo/services/policy_sampler.py:14
↓ 1 callersClassEdge
Workflow edge definition.
masfactory/components/vibe/vibe_workflow/planner/diagnose_node.py:39
↓ 1 callersClassEntryNode
masfactory/components/graphs/graph.py:47
↓ 1 callersClassExitNode
masfactory/components/graphs/graph.py:62
↓ 1 callersClassGeminiTokenCounter
Gemini token counter with SDK-first and local fallback behavior.
masfactory/adapters/token_usage_tracker.py:127
↓ 1 callersClassHuggingFaceAdapter
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 callersClassHuggingFaceTokenCounter
HuggingFace tokenizer-based counter for mapped model names.
masfactory/adapters/token_usage_tracker.py:183
↓ 1 callersClassImageAsset
Image media asset.
masfactory/core/multimodal.py:123
↓ 1 callersClassLLMJsonError
applications/nowwhat/tools/llm_tools.py:11
↓ 1 callersClassLangflowCompileOptions
masfactory/compatibility/common/llm_options.py:40
↓ 1 callersClassLangflowRootGraph
masfactory/compatibility/langflow/graph.py:4
↓ 1 callersClassLocalAdapter
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 callersClassLoopPlan
A strongly-connected region compiled into one MASFactory `Loop` node.
masfactory/compatibility/common/loops.py:10
↓ 1 callersClassMeshGraph
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 callersClassModelSelector
Model selector: checks model availability. This class manages checking model availability across different inference endpoints (HuggingFa
applications/hugggpt2/adapters/model_selector.py:14
↓ 1 callersClassNoneExecutor
No-op executor that returns the solution unchanged.
applications/agentverse/components/executors/none_executor.py:1
↓ 1 callersClassOpenAITokenCounter
OpenAI-family token counter based on `tiktoken`.
masfactory/adapters/token_usage_tracker.py:33
next →1–100 of 339, ranked by callers