Skip to content

Commit 28a41a9

Browse files
authored
format
1 parent 75390d5 commit 28a41a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/hub/agents.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To learn more about write actions in code vs JSON, check out our [new short cour
1212

1313
If you want to avoid defining agents yourself, the easiest way to start an agent is through the CLI, using the `smolagent` command.
1414

15-
```
15+
```bash
1616
smolagent "Plan a trip to Tokyo, Kyoto and Osaka between Mar 28 and Apr 7." --model-type "InferenceClientModel" --model-id "Qwen/Qwen2.5-Coder-32B-Instruct" --imports "pandas numpy" --tools "web_search"
1717
```
1818

@@ -48,13 +48,15 @@ export MODEL_ID="Qwen/Qwen2.5-72B-Instruct"
4848
export PROVIDER="nebius"
4949
npx @huggingface/mcp-client
5050
```
51+
5152
or, you can use any Local LLM (for example via lmstudio):
5253

54+
```bash
5355
ENDPOINT_URL=http://localhost:1234/v1 \
5456
MODEL_ID=lmstudio-community/Qwen3-14B-GGUF \
5557
npx @huggingface/mcp-client
5658
You can get more information about mcp-client [here](https://huggingface.co/docs/huggingface.js/en/mcp-client/README).
57-
59+
```
5860

5961

6062
## Gradio MCP Server / Tools
@@ -81,6 +83,7 @@ demo = gr.Interface(
8183
)
8284

8385
demo.launch(mcp_server=True)
86+
```
8487

8588
The MCP server will be available at `http://your-server:port/gradio_api/mcp/sse` where your application is served. It will have a tool corresponding to each function in your Gradio app, with the tool description automatically generated from the docstrings of your functions.
8689

0 commit comments

Comments
 (0)