diff --git a/.flake8 b/.flake8 index ff9a93a..e0688a3 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,3 @@ [flake8] max-line-length = 120 -ignore = E402 +ignore = E402, W503 diff --git a/docs/mkdocs/en/tool.md b/docs/mkdocs/en/tool.md index f3d4a8f..ed2823c 100644 --- a/docs/mkdocs/en/tool.md +++ b/docs/mkdocs/en/tool.md @@ -2260,3 +2260,584 @@ print(regular_tool.is_streaming) # False - [Streaming Tools Complete Example](../../../examples/streaming_tools/run_agent.py) - Streaming tools running example - [Function Tools Documentation](#function-tools) - Usage of standard function tools + +## WebFetchTool + +`WebFetchTool` is the built-in **single-URL web fetching tool** in the trpc-agent-python framework. When an Agent needs to read, summarize, or cite content from a public web page, it can use this tool to issue a single HTTP GET request. The framework then converts the response into structured text consumable by the LLM: HTML is reduced to plain Markdown text, textual MIME types such as `text/*` and `application/json` are returned as-is, and binary responses are rejected with a structured error. + +### Features + +- **HTTP GET**: HTML is automatically converted to plain Markdown text, with non-content blocks such as `