Skip to content

Commit 944b101

Browse files
committed
reset execution_count
1 parent 7d7ccff commit 944b101

File tree

1 file changed

+22
-27
lines changed

1 file changed

+22
-27
lines changed

veadk_tutorial.ipynb

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
},
122122
{
123123
"cell_type": "code",
124-
"execution_count": 5,
124+
"execution_count": null,
125125
"metadata": {
126126
"colab": {
127127
"base_uri": "https://localhost:8080/"
@@ -163,7 +163,7 @@
163163
},
164164
{
165165
"cell_type": "code",
166-
"execution_count": 6,
166+
"execution_count": null,
167167
"metadata": {
168168
"colab": {
169169
"base_uri": "https://localhost:8080/"
@@ -227,7 +227,7 @@
227227
},
228228
{
229229
"cell_type": "code",
230-
"execution_count": 7,
230+
"execution_count": null,
231231
"metadata": {
232232
"colab": {
233233
"base_uri": "https://localhost:8080/"
@@ -300,7 +300,7 @@
300300
},
301301
{
302302
"cell_type": "code",
303-
"execution_count": 9,
303+
"execution_count": null,
304304
"metadata": {
305305
"colab": {
306306
"base_uri": "https://localhost:8080/"
@@ -375,7 +375,7 @@
375375
},
376376
{
377377
"cell_type": "code",
378-
"execution_count": 11,
378+
"execution_count": null,
379379
"metadata": {
380380
"colab": {
381381
"base_uri": "https://localhost:8080/"
@@ -481,7 +481,7 @@
481481
},
482482
{
483483
"cell_type": "code",
484-
"execution_count": 12,
484+
"execution_count": null,
485485
"metadata": {
486486
"colab": {
487487
"base_uri": "https://localhost:8080/"
@@ -555,7 +555,7 @@
555555
},
556556
{
557557
"cell_type": "code",
558-
"execution_count": 37,
558+
"execution_count": null,
559559
"metadata": {
560560
"colab": {
561561
"base_uri": "https://localhost:8080/"
@@ -746,7 +746,7 @@
746746
},
747747
{
748748
"cell_type": "code",
749-
"execution_count": 47,
749+
"execution_count": null,
750750
"metadata": {
751751
"id": "3QJbO5JqixP6"
752752
},
@@ -794,7 +794,7 @@
794794
},
795795
{
796796
"cell_type": "code",
797-
"execution_count": 48,
797+
"execution_count": null,
798798
"metadata": {
799799
"colab": {
800800
"base_uri": "https://localhost:8080/"
@@ -884,7 +884,7 @@
884884
},
885885
{
886886
"cell_type": "code",
887-
"execution_count": 5,
887+
"execution_count": null,
888888
"metadata": {
889889
"colab": {
890890
"base_uri": "https://localhost:8080/"
@@ -919,7 +919,7 @@
919919
},
920920
{
921921
"cell_type": "code",
922-
"execution_count": 6,
922+
"execution_count": null,
923923
"metadata": {
924924
"colab": {
925925
"base_uri": "https://localhost:8080/"
@@ -997,7 +997,7 @@
997997
},
998998
{
999999
"cell_type": "code",
1000-
"execution_count": 4,
1000+
"execution_count": null,
10011001
"metadata": {
10021002
"colab": {
10031003
"base_uri": "https://localhost:8080/"
@@ -1060,7 +1060,7 @@
10601060
},
10611061
{
10621062
"cell_type": "code",
1063-
"execution_count": 6,
1063+
"execution_count": null,
10641064
"metadata": {
10651065
"colab": {
10661066
"base_uri": "https://localhost:8080/"
@@ -1161,7 +1161,7 @@
11611161
},
11621162
{
11631163
"cell_type": "code",
1164-
"execution_count": 17,
1164+
"execution_count": null,
11651165
"metadata": {
11661166
"colab": {
11671167
"base_uri": "https://localhost:8080/"
@@ -1301,7 +1301,7 @@
13011301
},
13021302
{
13031303
"cell_type": "code",
1304-
"execution_count": 18,
1304+
"execution_count": null,
13051305
"metadata": {
13061306
"colab": {
13071307
"base_uri": "https://localhost:8080/"
@@ -1528,7 +1528,7 @@
15281528
},
15291529
{
15301530
"cell_type": "code",
1531-
"execution_count": 22,
1531+
"execution_count": null,
15321532
"metadata": {
15331533
"colab": {
15341534
"base_uri": "https://localhost:8080/"
@@ -1641,7 +1641,7 @@
16411641
},
16421642
{
16431643
"cell_type": "code",
1644-
"execution_count": 25,
1644+
"execution_count": null,
16451645
"metadata": {
16461646
"id": "U1r9txhY4TRz"
16471647
},
@@ -1664,7 +1664,7 @@
16641664
},
16651665
{
16661666
"cell_type": "code",
1667-
"execution_count": 26,
1667+
"execution_count": null,
16681668
"metadata": {
16691669
"colab": {
16701670
"base_uri": "https://localhost:8080/"
@@ -1771,7 +1771,7 @@
17711771
},
17721772
{
17731773
"cell_type": "code",
1774-
"execution_count": 29,
1774+
"execution_count": null,
17751775
"metadata": {
17761776
"id": "AncPEwMz4HDX"
17771777
},
@@ -1780,8 +1780,7 @@
17801780
"name": "stdout",
17811781
"output_type": "stream",
17821782
"text": [
1783-
"VeFaaS 应用 ID: \n",
1784-
"返回的消息内容: 您好呀!作为 Agent 开发者,您是不是有关于如何调用功能获取天气信息之类的问题呢?要是想获取特定城市天气,您只要提出需求,我会通过合适的函数调用为您提供准确天气情况。 \n"
1783+
"返回的消息内容: 您好呀!作为Agent开发者,或许您对如何更高效精准地使用函数获取天气数据感兴趣?要是您想测试关于天气查询的功能,不妨给我一个城市名,我调用`get_city_weather`函数来为您获取相应的天气报告,方便您做进一步研究。 \n"
17851784
]
17861785
}
17871786
],
@@ -1794,8 +1793,6 @@
17941793
"\n",
17951794
"cloud_app = CloudApp(vefaas_application_name=vefaas_application_name, vefaas_endpoint=vefaas_endpoint)\n",
17961795
"\n",
1797-
"print(f\"VeFaaS 应用 ID: {cloud_app.vefaas_application_id}\")\n",
1798-
"\n",
17991796
"# 发送消息\n",
18001797
"response_message = await cloud_app.message_send(\n",
18011798
" message=\"你好,我是一名 Agent 开发者。\", user_id=user_id, session_id=session_id\n",
@@ -1848,7 +1845,7 @@
18481845
},
18491846
{
18501847
"cell_type": "code",
1851-
"execution_count": 34,
1848+
"execution_count": null,
18521849
"metadata": {
18531850
"id": "SiszeafO6Iav"
18541851
},
@@ -1857,9 +1854,8 @@
18571854
"name": "stdout",
18581855
"output_type": "stream",
18591856
"text": [
1860-
"VeFaaS 应用 Endpoint: https://sd3n10st049upp79s7nb0.apigateway-cn-beijing.volceapi.com\n",
18611857
"云部署的 MCP 工具: [Tool(name='run_agent', title=None, description='A reporter for weather updates\\nArgs:\\n user_input: User\\'s input message (required).\\n user_id: User identifier. Defaults to \"mcp_user\".\\n session_id: Session identifier. Defaults to \"mcp_session\".\\nReturns:\\n Final agent response as a string.\\n\\n\\n**Query Parameters:**\\n\\n- **user_input** (Required): No description.\\n\\n- **user_id**: No description.\\n\\n- **session_id**: No description.\\n\\n\\n**Responses:**\\n\\n- **200** (Success): Successful Response\\n - Content-Type: `application/json`\\n\\n - **Example:**\\n```json\\n\"string\"\\n```\\n\\n- **422**: Validation Error\\n - Content-Type: `application/json`\\n\\n - **Response Properties:**\\n\\n - **Example:**\\n```json\\n{\\n \"detail\": [\\n \"unknown_type\"\\n ]\\n}\\n```', inputSchema={'type': 'object', 'properties': {'user_input': {'type': 'string', 'title': 'User Input'}, 'user_id': {'type': 'string', 'title': 'User Id', 'default': 'mcp_user'}, 'session_id': {'type': 'string', 'title': 'Session Id', 'default': 'mcp_session'}}, 'required': ['user_input']}, outputSchema={'type': 'object', 'properties': {'result': {'type': 'string', 'title': 'Response Run Agent'}}, 'required': ['result'], 'x-fastmcp-wrap-result': True}, annotations=None, meta={'_fastmcp': {'tags': ['mcp']}}), Tool(name='agent_card', title=None, description='Agent Card\\n\\n\\n**Responses:**\\n\\n- **200** (Success): Successful Response\\n - Content-Type: `application/json`\\n\\n - **Example:**\\n```json\\n{\\n \"key\": \"value\"\\n}\\n```', inputSchema={'type': 'object', 'properties': {}, 'required': []}, outputSchema={'additionalProperties': True, 'type': 'object', 'title': 'Response Agent Card'}, annotations=None, meta={'_fastmcp': {'tags': ['mcp']}}), Tool(name='get_cozeloop_space_id', title=None, description='Get Cozeloop Space Id\\n\\n\\n**Responses:**\\n\\n- **200** (Success): Successful Response\\n - Content-Type: `application/json`\\n\\n - **Example:**\\n```json\\n{\\n \"key\": \"value\"\\n}\\n```', inputSchema={'type': 'object', 'properties': {}, 'required': []}, outputSchema={'additionalProperties': True, 'type': 'object', 'title': 'Response Get Cozeloop Space Id'}, annotations=None, meta={'_fastmcp': {'tags': ['mcp']}})]\n",
1862-
"返回的消息内容: CallToolResult(content=[TextContent(type='text', text='{\"result\":\"您好呀!作为Agent开发者,想必您对各种功能调用很熟悉啦。要是您对我获取天气信息的流程感兴趣,或是想了解如何优化相关调用,咱们都可以交流探讨。要是您想获取某个城市的天气,我随时可以通过 `get_city_weather` 函数为您查询。 \"}', annotations=None, meta=None)], structured_content={'result': '您好呀!作为Agent开发者,想必您对各种功能调用很熟悉啦。要是您对我获取天气信息的流程感兴趣,或是想了解如何优化相关调用,咱们都可以交流探讨。要是您想获取某个城市的天气,我随时可以通过 `get_city_weather` 函数为您查询。 '}, data='您好呀!作为Agent开发者,想必您对各种功能调用很熟悉啦。要是您对我获取天气信息的流程感兴趣,或是想了解如何优化相关调用,咱们都可以交流探讨。要是您想获取某个城市的天气,我随时可以通过 `get_city_weather` 函数为您查询。 ', is_error=False)\n"
1858+
"返回的消息内容: CallToolResult(content=[TextContent(type='text', text='{\"result\":\"您好呀!作为Agent开发者,想必您对于功能集成与调用有独到见解。若您想了解天气相关功能在实际应用中的开发要点,比如怎样更好结合`get_city_weather`函数优化您的项目,都能和我说说,咱们一起探讨。要是您想测试天气查询功能,告诉我城市名称,我就调用函数给出天气信息。 \"}', annotations=None, meta=None)], structured_content={'result': '您好呀!作为Agent开发者,想必您对于功能集成与调用有独到见解。若您想了解天气相关功能在实际应用中的开发要点,比如怎样更好结合`get_city_weather`函数优化您的项目,都能和我说说,咱们一起探讨。要是您想测试天气查询功能,告诉我城市名称,我就调用函数给出天气信息。 '}, data='您好呀!作为Agent开发者,想必您对于功能集成与调用有独到见解。若您想了解天气相关功能在实际应用中的开发要点,比如怎样更好结合`get_city_weather`函数优化您的项目,都能和我说说,咱们一起探讨。要是您想测试天气查询功能,告诉我城市名称,我就调用函数给出天气信息。 ', is_error=False)\n"
18631859
]
18641860
}
18651861
],
@@ -1874,7 +1870,6 @@
18741870
"cloud_app = CloudApp(vefaas_application_name=vefaas_application_name)\n",
18751871
"\n",
18761872
"endpoint = cloud_app._get_vefaas_endpoint()\n",
1877-
"print(f\"VeFaaS 应用 Endpoint: {endpoint}\")\n",
18781873
"\n",
18791874
"client = Client(f\"{endpoint}/mcp?token={vefaas_application_token}\")\n",
18801875
"\n",

0 commit comments

Comments
 (0)