Skip to content

Commit 4ae7517

Browse files
committed
add a use case for a code editing agent
1 parent 05299e0 commit 4ae7517

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

units/en/unit1/key-concepts.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ Of course, your application's value is the sum of the capabilities it offers. So
7070
| **Prompts** | Pre-defined templates or workflows that guide interactions between users, AI models, and the available capabilities. | A summarization prompt. |
7171
| **Sampling** | Server-initiated requests for the Client/Host to perform LLM interactions, enabling recursive actions where the LLM can review generated content and make further decisions. | A writing application reviewing its own output and decide to refine it further. |
7272

73+
In the following diagram, we can see the collective capabilities applied to a use case for a code agent.
74+
75+
![collective diagram](https://huggingface.co/datasets/mcp-course/images/resolve/main/unit1/8.png)
76+
77+
This application might use their MCP entities in the following way:
78+
79+
| Entity | Name | Description |
80+
| --- | --- | --- |
81+
| Tool | Code Interpreter | A tool that can execute code that the LLM writes. |
82+
| Resource | Documentation | A resource that contains the documentation of the application. |
83+
| Prompt | Code Style | A prompt that guides the LLM to generate code. |
84+
| Sampling | Code Review | A sampling that allows the LLM to review the code and make further decisions. |
85+
7386
### Conclusion
7487

7588
Understanding these key concepts and terminology provides the foundation for working with MCP effectively. In the following sections, we'll build on this foundation to explore the architectural components, communication protocol, and capabilities that make up the Model Context Protocol.

0 commit comments

Comments
 (0)