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

Type Driven API for the Prompt Gateway code #297

Open
junr03 opened this issue Nov 20, 2024 · 0 comments
Open

Type Driven API for the Prompt Gateway code #297

junr03 opened this issue Nov 20, 2024 · 0 comments
Milestone

Comments

@junr03
Copy link
Collaborator

junr03 commented Nov 20, 2024

The prompt gateway code is difficult to follow given all the transitions it can take. Evidence of this is the crate/prompt_gateway/context.rs docs (and the fact that this file has to live on its own).

This code is ripe to be re-architected. Some inspiration:
https://willcrichton.net/rust-api-type-patterns/state_machines.html
https://hoverbear.org/blog/rust-state-machine-pattern/

@adilhafeez adilhafeez changed the title Type Drive API for the Prompt Gateway code Type Driven API for the Prompt Gateway code Nov 22, 2024
@adilhafeez adilhafeez added this to the release 0.2.0 milestone Nov 26, 2024
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

No branches or pull requests

2 participants