Simon Willison
626333b987
--tools is now --functions, can be path, can be multiple
...
Closes #1016
2025-05-13 10:18:59 -07:00
Simon Willison
36113fb759
Rename --python-tools to --tools, closes #1008
2025-05-12 21:09:35 -07:00
Simon Willison
e47bdfe3b9
Made a start on tools.md docs, refs #997
...
Also documented register_tools() plugin hook, refs #991
2025-05-11 20:59:29 -07:00
Simon Willison
21096f2527
--python-tools option on prompt and tools, closes #995
2025-05-11 20:44:28 -07:00
Simon Willison
b25427a08d
llm tools and llm tools --json, closes #994
2025-05-11 20:24:17 -07:00
Simon Willison
f515ac0248
register_tools() hook, get_tools() utility
...
Refs #991
2025-05-11 19:44:02 -07:00
Simon Willison
e02863c1ca
Fragment plugins can now optionally return attachments ( #974 )
...
Closes #972
2025-05-04 14:50:27 -07:00
Simon Willison
c9f64096c9
llm fragments loaders, closes #941
2025-04-20 07:56:27 -07:00
Simon Willison
a571a4e948
register_fragment_loaders() hook ( #886 )
...
* Docs and shape of register_fragment_loaders hook, refs #863
* Update docs for fragment loaders returning a list of FragmentString
* Support multiple fragments with same content, closes #888
* Call the pm.hook.register_fragment_loaders hook
* Test for register_fragment_loaders hook
* Rename FragmentString to Fragment
Closes #863
2025-04-06 17:03:34 -07:00
Simon Willison
6c9a8efb50
register_template_loaders plugin hook, closes #809
...
* Moved templates CLI commands next to each other
* llm templates loaders command
* Template loader tests
* Documentation for template loaders
2025-03-21 16:46:44 -07:00
Simon Willison
ae87f978bd
Moved iter_prompt from Response to Model, moved a lot of other stuff
...
- Moved a whole bunch of things from llm/cli.py into llm/__init__.py
- Switched plugin listings to use importlib.metadata to avoid deprecation warning
- iter_prompt() is now a method on Model, not on Response
2023-07-10 07:45:11 -07:00
Simon Willison
4a9f7f4908
Lint using Ruff, refs #78
2023-07-02 12:41:40 -07:00
Simon Willison
14ce371007
Fix plugins tests to account for default plugins
2023-07-01 11:06:28 -07:00
Simon Willison
a396950f79
Initial plugin framework and register_commands(cli) hook, refs #49
2023-06-17 17:42:13 +01:00