teff.tool.builtin.http¶
teff.tool.builtin.http
¶
HTTP tool — send arbitrary HTTP requests to APIs.
Classes:
| Name | Description |
|---|---|
HttpRequestTool |
Send an HTTP request to an API endpoint. |
HttpRequestTool
¶
Bases: Tool
Send an HTTP request to an API endpoint.
Unlike :class:~teff.tool.builtin.web_fetch.WebFetchTool, this tool
exposes the full request surface: method, headers, and body, and
returns the raw response (status, headers, text).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict | None
|
Optional dict with |
None
|
Source code in teff/tool/builtin/http.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |