summaryrefslogtreecommitdiff
path: root/llm-tools-web.el
diff options
context:
space:
mode:
authorVineet Kumar <git@vineetk.net>2026-05-28 14:29:57 -0400
committerVineet Kumar <git@vineetk.net>2026-05-28 14:29:57 -0400
commit389f1a7e240eca36443649d6b283c21cfeb51c08 (patch)
tree1cb0e0b52cf4626488d2ff9d30ab91f264d8d0e0 /llm-tools-web.el
parent9ff38dcde67b1c0d597eaa0bee00c395f2f272e6 (diff)
get ready for packagingv1.0
Diffstat (limited to 'llm-tools-web.el')
-rw-r--r--llm-tools-web.el32
1 files changed, 31 insertions, 1 deletions
diff --git a/llm-tools-web.el b/llm-tools-web.el
index cadf175..f5e10a0 100644
--- a/llm-tools-web.el
+++ b/llm-tools-web.el
@@ -1,4 +1,34 @@
1;;; Web tools, taken from gptel-agent -*- lexical-binding: t; -*- 1;;; llm-tools-web.el --- Web tools for llm-tools -*- lexical-binding: t; -*-
2
3;; Copyright (C) 2026 Vineet K
4
5;; Author: Vineet K <git@vineetk.net>
6;; Version: 1.0
7;; Keywords: llm, gptel, processes
8;; Package-Requires: ((emacs "28.1"))
9
10;; This program is free software; you can redistribute it and/or modify
11;; it under the terms of the GNU General Public License as published by
12;; the Free Software Foundation, either version 3 of the License, or
13;; (at your option) any later version.
14
15;; This program is distributed in the hope that it will be useful,
16;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18;; GNU General Public License for more details.
19
20;; You should have received a copy of the GNU General Public License
21;; along with this program. If not, see <https://www.gnu.org/licenses/>.
22
23;;; Commentary:
24
25;; Web tools for the llm-tools package, adapted from gptel-agent.
26;; Provides functions for web searching and URL fetching.
27
28;;; Code:
29
30(require 'cl-lib)
31
2(defun llm-tools--fetch-with-timeout (url url-cb tool-cb failed-msg &rest args) 32(defun llm-tools--fetch-with-timeout (url url-cb tool-cb failed-msg &rest args)
3 "Fetch URL and call URL-CB in the result buffer. 33 "Fetch URL and call URL-CB in the result buffer.
4 34