bosun-ai / swiftide

Fast, streaming indexing and query library for AI (RAG) applications, written in Rust
https://swiftide.rs
MIT License
213 stars 12 forks source link

feat(core): Add support for cloning all trait objects #355

Closed timonv closed 2 days ago

timonv commented 2 days ago

For instance, if you have a Box<dyn SimplePrompt>, you can now clone into an owned copy and more effectively use the available generics. This also works for borrowed trait objects.