Commit a4a5086
Clean up internal LLM API (#484)
* Fresh diff
* remove instructionhandler
* updated internal interface to make all tests pass
* fixed caching tests
* updated llm.ipynb
* removed unnecessarily defensive validation
* updated tool call decoding to use concrete type of tool result instead of annotations
* updated completions to fix basic type errors
* updated call assistant to handle decoding tool calls
* dropped stale comments
* moved model and param model back to internals of `completions`
---------
Co-authored-by: Kiran Gopinathan <kiran@basis.ai>1 parent 02facf3 commit a4a5086
29 files changed
Lines changed: 684 additions & 904 deletions
File tree
- docs/source
- effectful/handlers/llm
- tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
| 35 | + | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
Large diffs are not rendered by default.
0 commit comments