This is my code,I am using DeepSeek V3:
from agno.agent import Agent
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.baidusearch import BaiduSearchTools
from agno.tools.newspaper4k import Newspaper4kTools
from mymodel import getModel
agent_storage: str = "tmp/agents.db"
# V3 = "deepseek-v3-241226"
dsllm=getModel()
agent = Agent(
model=dsllm,
tools=[BaiduSearchTools(), Newspaper4kTools()],
instructions=[
"Step 1: Search for the latest information about Huawei's HarmonyOS operating system and retrieve the top 5 links",
"Step 2: Read the content of each URL one by one and extract the main text of the articles",
"Step 3: Based on the collected information, write a comprehensive analysis report",
"Step 4: The report should include: latest developments, technical features, market impact, etc.",
"If a URL is inaccessible, skip it and continue processing the remaining links",
"The final output must be a complete analysis report; only showing the tool call process is not acceptable"
],
debug_mode=True,
show_tool_calls=True,
)
agent.print_response("Analyze Huawei's latest HarmonyOS (Harmony Operating System)", stream=True)
output:
DEBUG ******************************************************* Agent ID: 6c7c0b14-6954-4608-8ec9-dcf98827ad5c *******************************************************
DEBUG ****************************************************** Session ID: ee2d9214-67e6-4fd5-b002-ff44b49224be ******************************************************
DEBUG *************************************************** Agent Run Start: 938680bd-c28e-4eea-866e-ed3efab598b5 ****************************************************
DEBUG Processing tools for model
DEBUG Added tool baidu_search from baidusearch
DEBUG Added tool read_article from newspaper4k_tools
DEBUG --------------------------------------------------------------- DeepSeek Response Stream Start ---------------------------------------------------------------
DEBUG --------------------------------------------------------------- Model: deepseek-ai/DeepSeek-V3 ---------------------------------------------------------------
DEBUG =========================================================================== system ===========================================================================
DEBUG <instructions>
- Step 1: Search for the latest information about Huawei's HarmonyOS operating system and retrieve the top 5 links
- Step 2: Read the content of each URL one by one and extract the main text of the articles
- Step 3: Based on the collected information, write a comprehensive analysis report
- Step 4: The report should include: latest developments, technical features, market impact, etc.
- If a URL is inaccessible, skip it and continue processing the remaining links
- The final output must be a complete analysis report; only showing the tool call process is not acceptable
</instructions>
DEBUG ============================================================================ user ============================================================================
DEBUG Analyze Huawei's latest HarmonyOS (Harmony Operating System)
DEBUG ========================================================================= assistant ==========================================================================
DEBUG Tool Calls:
- ID: '0197451117ed88ef80e1e8c9e44bd352'
Name: 'baidu_search'
Arguments: 'query: Huawei HarmonyOS latest developments 2023, max_results: 5'
DEBUG ************************************************************************* METRICS **************************************************************************
DEBUG * Tokens: input=368, output=20, total=388
DEBUG * Time: 4.4157s
DEBUG * Tokens per second: 4.5293 tokens/s
DEBUG * Time to first token: 1.7432s
DEBUG ************************************************************************* METRICS **************************************************************************
DEBUG Getting function baidu_search
DEBUG Running: baidu_search(query=Huawei HarmonyOS latest developments 2023, max_results=5)
DEBUG Searching Baidu [zh] for: Huawei HarmonyOS latest developments 2023
DEBUG ============================================================================ tool ============================================================================
DEBUG Tool call Id: 0197451117ed88ef80e1e8c9e44bd352
DEBUG [
{
"title": "HDC2023\u73b0\u573a\u76f4\u51fb:HarmonyOS 4\u6b63\u5f0f\u53d1\u5e03,\u5168\u573a\u666f\u4f53\u9a8c\u66f4\u8fdb\u4e00\u6b65_\u817e\u8baf\u65b0\u95fb",
"url": "http://www.baidu.com/link?url=BzwPftdllLrT3SmxIzX2e42hkBco6ZKbhpUcGtemJLmkuyp15i9eLxTc-zyMa6qx4-0O7YJKth422q9oc2nVya",
"abstract": "HDC2023\u73b0\u573a\u76f4\u51fb:HarmonyOS
4\u6b63\u5f0f\u53d1\u5e03,\u5168\u573a\u666f\u4f53\u9a8c\u66f4\u8fdb\u4e00\u6b65_\u817e\u8baf\u65b0\u95fb\n\n\n\n\n\n\n\n\n\n2023\u5e748\u67084\u65e5\u65b9\u821f\u5f15\u64c
e\u7531\u56fe\u5f62\u5f15\u64ce\u3001\u5185\u5b58\u5f15\u64ce\u3001\u8c03\u5ea6\u5f15\u64ce\u3001\u5b58\u50a8\u5f15\u64ce\u3001\u591a\u5a92\u4f53\u5f15\u64ce\u3001\u4f4e\u5
29f\u8017\u5f15\u64ce\u5171\u516d\u5927\u90e8\u5206\u6784\u6210,\u8ba9HarmonyOS
4\u5728\u54cd\u5e94\u901f\u5ea6\u3001\u6ed1\u52a8\u6d41\u7545\u6027\u3001\u7eed\u822a\u5747\u6709\u4e0d\u5c11\u63d0\u5347\u3002
\u6839\u636e\u534e\u4e3a\u5b98\u65b9\u4ecb\u7ecd,8\u67084\u65e5HDC.Together\u53d1\u5e03\u4f1a\u5f53\u5929\u8d77,HUAWEI Mate 50\u7cfb\u5217\u3001P60\u7cfb\u5217\u3001Mate
X3\u3001MatePad Pro\u7b4911\u6b3e\u4ea7\u54c1\u542f\u52a8\u516c\u6d4b\u5347\u7ea7\u3002\u9664Mate
50\u7cfb\u5217\u7b49\u9996\u6279\u673a\u578b\u5916,\u52302023\u5e74\u5e95,\u5305\u62ecMate 30\u7cfb\u5217\u3001P40\u7cfb\u5217\u3001nova
6\u7cfb\u5217...\n\n\n\u817e\u8baf\u7f51\n\n\n\n\n\n\n\n\n\ue680\n\u64ad\u62a5\n",
"rank": "1"
},
{
"title": "\u4ee5\u201c\u66f4\u65b0\u201d\u59ff\u6001\u518d\u6b21\u8dc3\u5347,HarmonyOS NEXT\u53c8\u4e00\u6b21\u89c1\u8bc1\u65f6\u4ee3",
"url": "http://www.baidu.com/link?url=ZaJ-ENGDVLv0LEBg_Vv6r2DLqY7SynSMrAhuv23FOJdodfhtHtaTgAWoeeYqss0xQr_a9pwsAVSDMvBAxyLjrq",
"abstract": "\u4ee5\u201c\u66f4\u65b0\u201d\u59ff\u6001\u518d\u6b21\u8dc3\u5347,HarmonyOS
NEXT\u53c8\u4e00\u6b21\u89c1\u8bc1\u65f6\u4ee3\n\n\n\n\ue66a\n\n\n\n\n\n\u89c6\u98912025\u5e741\u670824\u65e5\u4ee5\u201c\u66f4\u65b0\u201d\u59ff\u6001\u518d\u6b21\u8dc3\u5
347,HarmonyOS NEXT\u53c8\u4e00\u6b21\u89c1\u8bc1\u65f6\u4ee3 2025-01-24 16:50 \u53d1\u5e03\u4e8e\u5e7f\u4e1c|1\u4e07 \u89c2\u770b 90 11 24 19 \u624b\u673a\u770b
\u79d1\u6280\u6700\u524d\u7ebf \u7c89\u4e1d4179|\u5173\u6ce83 +\u5173\u6ce8 \u4f5c\u8005\u6700\u65b0\u89c6\u9891 897|01:05
\u62ff\u4e0b\u6c99\u72791.8\u4e07\u679aAI\u82af\u7247\u5927\u5355!\u9ec4\u4ec1\u52cb\u63ed\u793aAI\u7684\u56db\u5927\u9636\u6bb5 1\u8bc4\u8bba19\u5c0f\u65f6\u524d
6144|01:01 \u9a6c\u65af\u514b\u5168\u9762\u5165\u5c40\u4e2d\u4e1c!\u4e94\u5927\u5e03\u5c40,\u5927\u5e55\u62c9\u5f00
4\u8bc4\u8bba\u524d...\n\n\nnews.qq.com/rain/a/20250...",
"rank": "2"
},
{
"title": "2023\u534e\u4e3a\u5f00\u53d1\u8005\u5927\u4f1a(Together) - HUAWEI Developer",
"url": "http://www.baidu.com/link?url=Hu9ruJNW6KZcf6Cq2dMsEd7vtTCKyikvkCghahfaeoJjEKmbLc2GEluKZyB6V_G4kfzo-lWfG1P5unKNML7kmPruoEAS1KZf2-_fJP1pPeu",
"abstract": "2023\u534e\u4e3a\u5f00\u53d1\u8005\u5927\u4f1a(Together) - HUAWEI
Developer\n\n\n\n\n\n\n\n\n\n\u57288\u67084\u65e5\u7684\u534e\u4e3a\u5f00\u53d1\u8005\u5927\u4f1a2023(HDC.Together)\u5927\u4f1a\u4e0a,HarmonyOS
4\u6b63\u5f0f\u53d1\u5e03\u3002\u81ea2019\u5e74\u53d1\u5e03\u4ee5\u6765,HarmonyOS\u4e00\u76f4\u4ee5\u7528\u6237\u4e3a\u4e2d\u5fc3,\u7ecf\u5386\u56db\u5e74\u591a\u7684\u53d1
\u5c55,HarmonyOS\u5df2\u6784\u5efa\u8d77\u5168\u65b0\u7684\u667a\u6167\u751f\u6001\u4f53\u7cfb,\u5f7b\u5e95\u6539\u53d8\u4e86\u667a\u80fd\u7ec8\u7aef\u7684\u4ea4\u4e92\u65b
9\u5f0f\u3002 \u5f00\u53d1\u8005\u6545\u4e8b
\u9e3f\u8499\u751f\u6001\u661f\u6cb3\u7480\u74a8\u4e28\u6821\u56ed\u5f00\u53d1\u8005\u501f\u52a9\u201c\u5143\u670d\u52a1\u201d,\u6253\u9020\u5168\u65b0\u7684\u6570\u5b57\u5
0a8\u7269\u4f53\u9a8c ...\n\n\n\u534e\u4e3a\u5f00\u53d1\u8005\u8054\u76df",
"rank": "3"
},
{
"title": "\u534e\u4e3a\u5f00\u53d1\u8005\u5927\u4f1a2023\u4eca\u65e5\u53ec\u5f00 \u9e3f\u8499\u751f\u6001\u5f15\u9886\u5168\u573a\u666f\u65f6\u4ee3-\u65b0\u534e\u7f51",
"url": "http://www.baidu.com/link?url=mDSlXWO_zQoaAnUJ0Zyf8VEtd-MlCg4oxVtAnx1ZbAUvHDuVCF4NNCf6xsGvFHCu-7OCgBcfwwB1fvTlwEZspno1znU00apa0vBAc64eh--RxDPsdhymCm_LzTHACndN",
"abstract": "\u534e\u4e3a\u5f00\u53d1\u8005\u5927\u4f1a2023\u4eca\u65e5\u53ec\u5f00
\u9e3f\u8499\u751f\u6001\u5f15\u9886\u5168\u573a\u666f\u65f6\u4ee3-\u65b0\u534e\u7f51
\n\n\n\n\n\n\n\n\n\n2023\u5e748\u67084\u65e5\u2003\u20038\u67084\u65e5,2023\u5e74\u534e\u4e3a\u5f00\u53d1\u8005\u5927\u4f1a(HDC.Together)\u4eca\u5929\u6b63\u5f0f\u5f00\u5e5
5,\u534e\u4e3a\u53d1\u5e03HarmonyOS 4\u3001\u5168\u65b0\u5347\u7ea7\u7684\u9e3f\u8499\u5f00\u53d1\u5957\u4ef6\u3001HarmonyOS
Next\u5f00\u53d1\u8005\u9884\u89c8\u7248\u672c\u7b49\u4e00\u7cfb\u5217\u9886\u5148\u6280\u672f,\u4e3a\u7528\u6237\u63d0\u4f9b\u524d\u6240\u672a\u6709\u7684\u9769\u65b0\u4f5
3\u9a8c,\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u9ad8\u6548\u5730\u6253\u9020\u521b\u65b0\u7684\u667a\u80fd\u7ec8\u7aef\u548c\u5e94\u7528\u670d\u52a1\u3002
\u2003\u2003\u534e\u4e3a\u5e38\u52a1\u8463\u4e8b\u3001\u7ec8\u7aefBG CEO\u3001\u667a\u80fd\u6c7d\u8f66\u89e3\u51b3\u65b9\u6848BU
CEO\u4f59\u627f\u4e1c\u516c\u5e03\u9e3f...\n\n\n\u65b0\u534e\u7f51\n\n\n\n\n\n\n\n\n\ue680\n\u64ad\u62a5\n\n\n\ue67d\n\u6682\u505c",
"rank": "4"
},
{
"title": "2023 Annual Report - Huawei",
"url": "http://www.baidu.com/link?url=BxR7wIYHoWX3iB8tXwQ7YF4rG0zxZMnwEyzQZB9br_oOU2Mbe3GaNN7YmwAA-PbnKfOjS1O5pdYyS03DO5plka",
"abstract": "2023 Annual Report - Huawei\n\n\n\n\n\n\n\n\n\nUnder the Huawei Zhixuan model, we worked with partners around the Harmony Intelligent Mobility Alliance
(HIMA) to launch products that deliver ever-improving experiences. We officially launched HarmonyOS 4 in 2023, and by the end of the year HarmonyOS had been d",
"rank": "5"
}
]
DEBUG *********************************************************************** TOOL METRICS ***********************************************************************
DEBUG * Time: 1.0424s
DEBUG *********************************************************************** TOOL METRICS ***********************************************************************
DEBUG ========================================================================= assistant ==========================================================================
DEBUG <|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>read_article
```json
{"url": "http://www.baidu.com/link?url=BzwPftdllLrT3SmxIzX2e42hkBco6ZKbhpUcGtemJLmkuyp15i9eLxTc-zyMa6qx4-0O7YJKth422q9oc2nVya"}
```<|tool▁call▁end|>
<|tool▁call▁begin|>function<|tool▁sep|>read_article
```json
{"url": "http://www.baidu.com/link?url=ZaJ-ENGDVLv0LEBg_Vv6r2DLqY7SynSMrAhuv23FOJdodfhtHtaTgAWoeeYqss0xQr_a9pwsAVSDMvBAxyLjrq"}
```<|tool▁call▁end|>
<|tool▁call▁begin|>function<|tool▁sep|>read_article
```json
{"url": "http://www.baidu.com/link?url=Hu9ruJNW6KZcf6Cq2dMsEd7vtTCKyikvkCghahfaeoJjEKmbLc2GEluKZyB6V_G4kfzo-lWfG1P5unKNML7kmPruoEAS1KZf2-_fJP1pPeu"}
```<|tool▁call▁end|>
<|tool▁call▁begin|>function<|tool▁sep|>read_article
```json
{"url": "http://www.baidu.com/link?url=mDSlXWO_zQoaAnUJ0Zyf8VEtd-MlCg4oxVtAnx1ZbAUvHDuVCF4NNCf6xsGvFHCu-7OCgBcfwwB1fvTlwEZspno1znU00apa0vBAc64eh--RxDPsdhymCm_LzTHACndN"}
```<|tool▁call▁end|>
<|tool▁call▁begin|>function<|tool▁sep|>read_article
```json
{"url": "http://www.baidu.com/link?url=BxR7wIYHoWX3iB8tXwQ7YF4rG0zxZMnwEyzQZB9br_oOU2Mbe3GaNN7YmwAA-PbnKfOjS1O5pdYyS03DO5plka"}
```<|tool▁call▁end|><|tool▁calls▁end|>
DEBUG ************************************************************************* METRICS **************************************************************************
DEBUG * Tokens: input=3555, output=491, total=4046
DEBUG * Time: 39.5710s
DEBUG * Tokens per second: 12.4081 tokens/s
DEBUG * Time to first token: 1.0941s
DEBUG ************************************************************************* METRICS **************************************************************************
DEBUG ---------------------------------------------------------------- DeepSeek Response Stream End ----------------------------------------------------------------
DEBUG Added RunResponse to Memory
DEBUG Logging Agent Run
DEBUG **************************************************** Agent Run End: 938680bd-c28e-4eea-866e-ed3efab598b5 *****************************************************
┏━ Message ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ Analyze Huawei's latest HarmonyOS (Harmony Operating System) ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┏━ Tool Calls ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ • baidu_search(query=Huawei HarmonyOS latest developments 2023, max_results=5) ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┏━ Response (45.0s) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ <|tool▁calls▁begin|><|tool▁call▁begin|>function<|tool▁sep|>read_article ┃
┃ ```json ┃
┃ {"url": "http://www.baidu.com/link?url=BzwPftdllLrT3SmxIzX2e42hkBco6ZKbhpUcGtemJLmkuyp15i9eLxTc-zyMa6qx4-0O7YJKth422q9oc2nVya"} ┃
┃ ```<|tool▁call▁end|> ┃
┃ <|tool▁call▁begin|>function<|tool▁sep|>read_article ┃
┃ ```json ┃
┃ {"url": "http://www.baidu.com/link?url=ZaJ-ENGDVLv0LEBg_Vv6r2DLqY7SynSMrAhuv23FOJdodfhtHtaTgAWoeeYqss0xQr_a9pwsAVSDMvBAxyLjrq"} ┃
┃ ```<|tool▁call▁end|> ┃
┃ <|tool▁call▁begin|>function<|tool▁sep|>read_article ┃
┃ ```json ┃
┃ {"url": "http://www.baidu.com/link?url=Hu9ruJNW6KZcf6Cq2dMsEd7vtTCKyikvkCghahfaeoJjEKmbLc2GEluKZyB6V_G4kfzo-lWfG1P5unKNML7kmPruoEAS1KZf2-_fJP1pPeu"} ┃
┃ ```<|tool▁call▁end|> ┃
┃ <|tool▁call▁begin|>function<|tool▁sep|>read_article ┃
┃ ```json ┃
┃ {"url": "http://www.baidu.com/link?url=mDSlXWO_zQoaAnUJ0Zyf8VEtd-MlCg4oxVtAnx1ZbAUvHDuVCF4NNCf6xsGvFHCu-7OCgBcfwwB1fvTlwEZspno1znU00apa0vBAc64eh--RxDPsdhymCm_LzTHACndN"} ┃
┃ ```<|tool▁call▁end|> ┃
┃ <|tool▁call▁begin|>function<|tool▁sep|>read_article ┃
┃ ```json ┃
┃ {"url": "http://www.baidu.com/link?url=BxR7wIYHoWX3iB8tXwQ7YF4rG0zxZMnwEyzQZB9br_oOU2Mbe3GaNN7YmwAA-PbnKfOjS1O5pdYyS03DO5plka"} ┃
┃ ```<|tool▁call▁end|><|tool▁calls▁end|> ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
It seems like it was called, but it didn’t actually output the report I wanted.