Simon Willison
d96ae4ed8d
Fix --async logging to database, closes #1150
2025-06-01 17:38:26 -07:00
Simon Willison
30e0c4abe8
ToolResult.exception for tool errors, now logged to DB
...
Closes #1104
2025-06-01 17:01:40 -07:00
Simon Willison
ed64fc3362
chain_limit/before_call/after_call for conversations
...
* chain_limit/before_call/after_call for conversations, closes #1088
* Docs for before_call/after_call including for model.conversation
2025-06-01 12:00:29 -07:00
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
Simon Willison
6bab712cdd
Fix for module 'builtins' has no attribute 'instance_id, closes #1107
2025-05-27 13:13:28 -07:00
Simon Willison
9e25055765
Turn incorrect tool names into errors, closes #1104
2025-05-27 09:29:05 -07:00
Simon Willison
2bc6d7679c
New default tool, llm_time, closes #1103
2025-05-26 23:00:18 -07:00
Simon Willison
9bbb37fae0
New default llm_version tool, closes #1096
...
Refs https://github.com/simonw/llm/issues/1095#issuecomment-2910574597
2025-05-26 13:30:47 -07:00
Simon Willison
e23e13e6c7
Test for async toolbox, docs for toolboxes in general
...
Closes #1090 , refs #997
2025-05-26 10:23:03 -07:00
Simon Willison
3cbc37a470
Log tool plugin to database
...
Refs https://github.com/simonw/llm/issues/1020#issuecomment-2905968166
2025-05-23 15:59:43 -07:00
Simon Willison
3e3492898c
Conversations using tools in Python API
...
Refs #1033
2025-05-21 23:05:16 -07:00
Simon Willison
3cb875fa3d
Async tool support ( #1063 )
...
* Sync models can now call async tools, refs #987
* Test for async tool functions in sync context, refs #987
* Test for asyncio tools, plus test that they run in parallel
* Docs for async tool usage
2025-05-21 21:42:19 -07:00
Simon Willison
88b806ae1a
Got multi-tool OpenAI chat working, in no-stream mode too
...
Refs #1017 , #1019
2025-05-13 17:19:30 -07:00
Simon Willison
a50de8b57a
ChainResponse.log_to_db() method and test, refs #1017 , #1003
2025-05-13 17:19:30 -07:00
Simon Willison
5162cabbe1
First test for tools, plus vcr+syrupy, refs #1017
2025-05-13 17:19:30 -07:00