Simon Willison
|
d88386e1c7
|
Slim initial python API docs for tools and chains, closes #1022
Test / test (macos-latest, 3.10) (push) Has been cancelled
Test / test (macos-latest, 3.11) (push) Has been cancelled
Test / test (macos-latest, 3.12) (push) Has been cancelled
Test / test (macos-latest, 3.13) (push) Has been cancelled
Test / test (macos-latest, 3.9) (push) Has been cancelled
Test / test (ubuntu-latest, 3.10) (push) Has been cancelled
Test / test (ubuntu-latest, 3.11) (push) Has been cancelled
Test / test (ubuntu-latest, 3.12) (push) Has been cancelled
Test / test (ubuntu-latest, 3.13) (push) Has been cancelled
Test / test (ubuntu-latest, 3.9) (push) Has been cancelled
Test / test (windows-latest, 3.10) (push) Has been cancelled
Test / test (windows-latest, 3.11) (push) Has been cancelled
Test / test (windows-latest, 3.12) (push) Has been cancelled
Test / test (windows-latest, 3.13) (push) Has been cancelled
Test / test (windows-latest, 3.9) (push) Has been cancelled
|
2025-05-13 20:18:06 -04:00 |
|
Simon Willison
|
474320fcb6
|
Basic tool usage docs using --functions
Refs #1022, #995, #1016
|
2025-05-13 17:07:11 -07:00 |
|
Simon Willison
|
61c94b24de
|
Tests run on Click < 8.2.0
Refs #1024, #1023
|
2025-05-13 16:53:01 -07:00 |
|
Simon Willison
|
a8740b066c
|
Fixed remaining mypy problems, refs #1023
Refs https://github.com/simonw/llm/pull/996#issuecomment-2878191352
|
2025-05-13 16:47:59 -07:00 |
|
Simon Willison
|
cc99984259
|
Fix for TypeError: 'coroutine' object is not iterable
|
2025-05-13 16:39:20 -07:00 |
|
Simon Willison
|
917d1e68ce
|
Fix for Error binding parameter 2: type 'coroutine' is not supported
|
2025-05-13 16:36:53 -07:00 |
|
Simon Willison
|
7a32d0daec
|
AsyncModel.chain() raises NotImplementedError, closes #1021
|
2025-05-13 16:31:17 -07:00 |
|
github-actions[bot]
|
c52da27926
|
Ran cog
|
2025-05-13 23:28:28 +00:00 |
|
Simon Willison
|
c9e0b2859f
|
Enable tools for o3, o3-mini, o4-mini, refs #988
|
2025-05-13 16:27:55 -07:00 |
|
Simon Willison
|
9f3f4fb1e3
|
Better display of --tools-debug/--td
Refs https://github.com/simonw/llm/issues/1005#issuecomment-2878164610
|
2025-05-13 16:25:30 -07:00 |
|
Simon Willison
|
69c028df44
|
Better output for --ta/--tools-approve
Refs https://github.com/simonw/llm/issues/1005#issuecomment-2878163701
|
2025-05-13 16:20:59 -07:00 |
|
Simon Willison
|
964d2e5b85
|
Got multi-tool OpenAI chat working, in no-stream mode too
Refs #1017, #1019
|
2025-05-13 12:18:46 -07:00 |
|
Simon Willison
|
027ec69ed5
|
Guard against chunk=None from models
Bug that I encountered while working on #1019
|
2025-05-13 12:12:24 -07:00 |
|
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
|
104ef266cb
|
Upgrade condense-json
Refs https://github.com/simonw/llm/issues/1003#issuecomment-2873322525
Refs https://github.com/simonw/condense-json/issues/5
|
2025-05-13 10:10:25 -07:00 |
|
Simon Willison
|
1ea8f6eb24
|
ChainResponse.log_to_db() method and test, refs #1017, #1003
|
2025-05-13 09:53:40 -07:00 |
|
Simon Willison
|
0bdefd10c9
|
First test for tools, plus vcr+syrupy, refs #1017
|
2025-05-13 08:03:01 -07:00 |
|
Simon Willison
|
7e0130c274
|
dict() is now model_dump()
|
2025-05-13 07:57:24 -07:00 |
|
Simon Willison
|
30125f8b24
|
llm logs tool output, long form, refs #1012
|
2025-05-12 21:59:30 -07:00 |
|
Simon Willison
|
03345956e3
|
llm logs tools output for --json and --short
Refs #1012
|
2025-05-12 21:49:51 -07:00 |
|
Simon Willison
|
36113fb759
|
Rename --python-tools to --tools, closes #1008
|
2025-05-12 21:09:35 -07:00 |
|
Simon Willison
|
e9bcb51ebd
|
Better visible error message for cancel
Refs #1005
|
2025-05-12 21:08:03 -07:00 |
|
Simon Willison
|
0273e0ff69
|
Removed obsolete details() method, closes #1007
|
2025-05-12 21:02:02 -07:00 |
|
Simon Willison
|
9e7d463ef4
|
Initial implementation of --td and --ta, refs #1005
Uses new mechanism from #1007
|
2025-05-12 20:57:50 -07:00 |
|
Simon Willison
|
95b8150b5b
|
New response.excute_tool_calls(), refs #1007
|
2025-05-12 20:47:15 -07:00 |
|
Simon Willison
|
4d64410ca3
|
Load tool stuff from database, refs #1010
|
2025-05-12 19:54:32 -07:00 |
|
Simon Willison
|
0c85b30bdf
|
Ensure all responses have a ULID
|
2025-05-12 19:52:33 -07:00 |
|
Simon Willison
|
b10506b85d
|
llm models --tools filter
|
2025-05-12 11:52:08 -07:00 |
|
github-actions[bot]
|
4b57f72ced
|
Ran cog
|
2025-05-12 18:50:45 +00:00 |
|
Simon Willison
|
c058e6708c
|
Show tool support on 'llm models --options'
|
2025-05-12 11:50:13 -07:00 |
|
Simon Willison
|
2cee1d2946
|
tool_calls_or_raise()
Refs #992, #998, #999
|
2025-05-12 11:46:16 -07:00 |
|
Simon Willison
|
e1b06d31f7
|
Log tool stuff to the database, refs #1003
|
2025-05-12 10:02:19 -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 |
|
github-actions[bot]
|
518b8b2863
|
Ran cog
|
2025-05-12 03:30:30 +00:00 |
|
Simon Willison
|
b25427a08d
|
llm tools and llm tools --json, closes #994
|
2025-05-11 20:24:17 -07:00 |
|
Simon Willison
|
60861eddc3
|
First working prototype of llm -T toolname
Refs https://github.com/simonw/llm/issues/990#issuecomment-2870630946
|
2025-05-11 20:09:31 -07:00 |
|
Simon Willison
|
f515ac0248
|
register_tools() hook, get_tools() utility
Refs #991
|
2025-05-11 19:44:02 -07:00 |
|
Simon Willison
|
9263f37658
|
model.chain() method, tools=[func1, func2]
Also fixed mypy errors, but had to drop AsyncResponse for the moment.
Refs https://github.com/simonw/llm/issues/937#issuecomment-2870479021
|
2025-05-11 18:53:42 -07:00 |
|
Simon Willison
|
dd95f23e0c
|
.chain().details() debug method
https://github.com/simonw/llm/issues/937#issuecomment-2870465951
|
2025-05-11 18:28:55 -07:00 |
|
Simon Willison
|
8f9ca0b4b7
|
Got a tool call to run through OpenAI
Refs https://github.com/simonw/llm/issues/937#issuecomment-2870434157
|
2025-05-11 18:01:28 -07:00 |
|
Simon Willison
|
dae4ad6bcc
|
Enforce chain limit of 5
Refs https://github.com/simonw/llm/issues/937#issuecomment-2870390330
|
2025-05-11 17:23:43 -07:00 |
|
Simon Willison
|
5e2190162b
|
Initial Conversation.chain() and ChainResponse
Refs https://github.com/simonw/llm/issues/937#issuecomment-2870365809
|
2025-05-11 17:14:57 -07:00 |
|
Simon Willison
|
2b082e6062
|
ToolCall.tool_call_id property, refs #937
|
2025-05-11 17:14:38 -07:00 |
|
Simon Willison
|
d58ad5f65b
|
prompt.tools and prompt.tool_results no longer optional
They will always be at least an empty list
|
2025-05-10 15:10:14 -07:00 |
|
Simon Willison
|
1b0dd34a32
|
Prompt.tool_results property
Refs https://github.com/simonw/llm/issues/937#issuecomment-2869124983
|
2025-05-10 12:36:30 -07:00 |
|
Simon Willison
|
614941dbe5
|
ToolResult dataclass
Refs https://github.com/simonw/llm/issues/937#issuecomment-2869123620
|
2025-05-10 12:33:29 -07:00 |
|
Simon Willison
|
ab9cea9858
|
Dropped Tool.output_schema
Refs https://github.com/simonw/llm/issues/935#issuecomment-2869120546
|
2025-05-10 12:23:35 -07:00 |
|
Simon Willison
|
ca4a08e90b
|
Stash function in tool.implementation
Refs https://github.com/simonw/llm/issues/935#issuecomment-2869084490
|
2025-05-10 11:54:40 -07:00 |
|
Simon Willison
|
f8cd7be600
|
response.tool_calls() methods
Refs https://github.com/simonw/llm/issues/936#issuecomment-2869082672
|
2025-05-10 11:38:51 -07:00 |
|