Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.0 Release #3

Merged
merged 11 commits into from
Sep 24, 2024
Merged

v0.3.0 Release #3

merged 11 commits into from
Sep 24, 2024

Conversation

mdegans
Copy link
Owner

@mdegans mdegans commented Sep 24, 2024

Most of the API is exactly the same, as is usage, with the exception of a few things:

  • Request has been renamed Prompt because in actual use this makes things clearer.
  • Almost everything supports zero-copy deserialization where possible at the possible cost of cognitive overhead, however most code will require no changes. Cow strings are used everywhere. This also allows static Messages and the like to be created at compile time.
  • Stream is now Send.
  • Added an example of an Assistant using Python to solve problems.
  • More convenience methods like to_static for some structs.

All tests pass, everything works. There is some minor cognitive overhead as a result of the lifetimes everywhere but it should also allow zero copy deserialization and streaming where possible, greatly reducing necessary allocations.

In most cases the code does not change. The one example that did, `strawberry.rs` we ended up reducing in size. A dedicated error type was not necessary for such an example.
- Added an example of an agent that can call Python to answer questions. The system prompt could use improvement. Otherwise the crate is almost ready for release.
Note to self on `tool::Result` and `tool::Use` construction.
Almost ready for a release.
@mdegans mdegans merged commit 0735915 into main Sep 24, 2024
3 checks passed
@mdegans mdegans deleted the dev branch September 24, 2024 22:37
@mdegans mdegans restored the dev branch September 24, 2024 22:38
@mdegans mdegans deleted the dev branch September 24, 2024 22:38
@mdegans mdegans restored the dev branch September 24, 2024 22:38
@mdegans mdegans deleted the dev branch September 24, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant