llm/llm
Simon Willison b5d1c5ee90
Tools can now return attachments
Closes #1014

- llm.ToolOutput(output='...', attachments=[...]) for tools to return attachments
- New table: `tool_results_attachments`
- Table is populated when tools return attachments
- llm --tools-debug shows attachments returned by tools
- llm logs shows attachments returned by tools
2025-06-01 10:08:36 -07:00
..
default_plugins Tools can now return attachments 2025-06-01 10:08:36 -07:00
__init__.py Tools can now return attachments 2025-06-01 10:08:36 -07:00
__main__.py Rename back to llm, refs #1 2023-04-01 15:00:19 -07:00
cli.py Tools can now return attachments 2025-06-01 10:08:36 -07:00
embeddings.py Filter IDs with --prefix in llm similar (#1052) 2025-05-23 22:54:55 -07:00
embeddings_migrations.py Binary embeddings (#254) 2023-09-11 18:58:44 -07:00
errors.py Upgrade to black>=25.1.0 2025-01-31 13:18:41 -08:00
hookspecs.py register_tools() hook, get_tools() utility 2025-05-13 17:19:30 -07:00
migrations.py Tools can now return attachments 2025-06-01 10:08:36 -07:00
models.py Tools can now return attachments 2025-06-01 10:08:36 -07:00
plugins.py New default llm_version tool, closes #1096 2025-05-26 13:30:47 -07:00
py.typed py.typed marker file 2025-04-10 17:19:36 -07:00
templates.py Tools in templates (#1138) 2025-05-30 17:44:52 -07:00
tools.py Fix for mypy 2025-05-27 10:16:27 -07:00
utils.py Fix for Python 3.9, refs #1099 2025-05-26 19:54:57 -07:00