Skip to content

Commit ff00ea8

Browse files
docs: update mcp-agent codeboarding documentation
1 parent 90163e5 commit ff00ea8

17 files changed

Lines changed: 1554 additions & 1073 deletions
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"description": "This component serves as the central hub for all interactions with Large Language Models (LLMs) and text embedding models within the `mcp_agent` framework. Its primary purpose is to abstract away the complexities and provider-specific details of various AI models, offering a unified, extensible, and intelligent interface. This centralization promotes reusability, simplifies the integration of new models, and ensures optimal model selection based on performance and cost criteria.",
3+
"components": [
4+
{
5+
"name": "AugmentedLLM",
6+
"description": "This is the foundational abstract class that defines the unified interface for all Large Language Model (LLM) interactions within the framework. It extends the base `Agent` class and provides core capabilities such as prompt conversion, structured output generation, and tool calling, making it a versatile interface for various LLM-powered operations.",
7+
"referenced_source_code": [
8+
{
9+
"qualified_name": "mcp_agent.workflows.llm.augmented_llm.AugmentedLLM",
10+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm.py",
11+
"reference_start_line": 218,
12+
"reference_end_line": 668
13+
}
14+
]
15+
},
16+
{
17+
"name": "ModelSelector",
18+
"description": "This component is responsible for intelligently selecting the most appropriate LLM for a given request. It evaluates various factors such as cost, speed, and intelligence benchmarks of available models, ensuring efficient resource utilization and optimal performance for LLM calls.",
19+
"referenced_source_code": [
20+
{
21+
"qualified_name": "mcp_agent.workflows.llm.llm_selector.ModelSelector",
22+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/llm_selector.py",
23+
"reference_start_line": 96,
24+
"reference_end_line": 413
25+
}
26+
]
27+
},
28+
{
29+
"name": "EmbeddingModel",
30+
"description": "This abstract base class defines the standard interface for generating text embeddings. It allows for seamless integration of different embedding model providers, abstracting away their specific APIs and enabling consistent semantic understanding across the framework.",
31+
"referenced_source_code": [
32+
{
33+
"qualified_name": "mcp_agent.workflows.embedding.embedding_base.EmbeddingModel",
34+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/embedding/embedding_base.py",
35+
"reference_start_line": 13,
36+
"reference_end_line": 31
37+
}
38+
]
39+
},
40+
{
41+
"name": "Provider-Specific AugmentedLLM Implementations",
42+
"description": "These concrete classes extend `AugmentedLLM` and provide the actual implementation details for interacting with specific LLM providers (e.g., Anthropic, OpenAI, Google, Bedrock, Azure, Ollama). They translate the unified `AugmentedLLM` interface calls into provider-specific API requests.",
43+
"referenced_source_code": [
44+
{
45+
"qualified_name": "mcp_agent.workflows.llm.augmented_llm_anthropic.AnthropicAugmentedLLM",
46+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm_anthropic.py",
47+
"reference_start_line": 110,
48+
"reference_end_line": 722
49+
},
50+
{
51+
"qualified_name": "mcp_agent.workflows.llm.augmented_llm_openai.OpenAIAugmentedLLM",
52+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm_openai.py",
53+
"reference_start_line": 80,
54+
"reference_end_line": 845
55+
},
56+
{
57+
"qualified_name": "mcp_agent.workflows.llm.augmented_llm_google.GoogleAugmentedLLM",
58+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm_google.py",
59+
"reference_start_line": 34,
60+
"reference_end_line": 319
61+
}
62+
]
63+
},
64+
{
65+
"name": "Provider-Specific EmbeddingModel Implementations",
66+
"description": "These concrete classes extend `EmbeddingModel` and provide the specific logic for generating embeddings using different providers (e.g., Cohere, OpenAI). They ensure that the framework can leverage various embedding services through a consistent interface.",
67+
"referenced_source_code": [
68+
{
69+
"qualified_name": "mcp_agent.workflows.embedding.embedding_cohere.CohereEmbeddingModel",
70+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/embedding/embedding_cohere.py",
71+
"reference_start_line": 18,
72+
"reference_end_line": 72
73+
},
74+
{
75+
"qualified_name": "mcp_agent.workflows.embedding.embedding_openai.OpenAIEmbeddingModel",
76+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/embedding/embedding_openai.py",
77+
"reference_start_line": 18,
78+
"reference_end_line": 70
79+
}
80+
]
81+
},
82+
{
83+
"name": "ProviderToMCPConverter",
84+
"description": "These utility classes are crucial for the \"unified interface\" aspect of AI Model Services. They handle the conversion of data types, function schemas, and other parameters between the specific formats required by individual LLM providers and the internal, standardized format used by the `mcp_agent` framework. This enables consistent tool calling and structured output across different LLMs.",
85+
"referenced_source_code": [
86+
{
87+
"qualified_name": "mcp_agent.workflows.llm.augmented_llm_anthropic.AnthropicMCPTypeConverter",
88+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm_anthropic.py",
89+
"reference_start_line": 777,
90+
"reference_end_line": 886
91+
},
92+
{
93+
"qualified_name": "mcp_agent.workflows.llm.augmented_llm_openai.MCPOpenAITypeConverter",
94+
"reference_file": "/mnt/e/StartUp/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm_openai.py",
95+
"reference_start_line": 949,
96+
"reference_end_line": 1055
97+
}
98+
]
99+
}
100+
],
101+
"components_relations": [
102+
{
103+
"relation": "extends",
104+
"src_name": "Provider-Specific AugmentedLLM Implementations",
105+
"dst_name": "AugmentedLLM"
106+
},
107+
{
108+
"relation": "uses",
109+
"src_name": "AugmentedLLM",
110+
"dst_name": "ModelSelector"
111+
},
112+
{
113+
"relation": "is used by",
114+
"src_name": "ModelSelector",
115+
"dst_name": "AugmentedLLM"
116+
},
117+
{
118+
"relation": "extends",
119+
"src_name": "Provider-Specific EmbeddingModel Implementations",
120+
"dst_name": "EmbeddingModel"
121+
},
122+
{
123+
"relation": "use",
124+
"src_name": "Provider-Specific AugmentedLLM Implementations",
125+
"dst_name": "ProviderToMCPConverter"
126+
},
127+
{
128+
"relation": "is used by",
129+
"src_name": "ProviderToMCPConverter",
130+
"dst_name": "Provider-Specific AugmentedLLM Implementations"
131+
}
132+
]
133+
}

.codeboarding/Agent_Core_LLM_Integration.json

Lines changed: 0 additions & 141 deletions
This file was deleted.

0 commit comments

Comments
 (0)