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

Dynamic session #52

Closed
hemanth opened this issue Oct 25, 2024 · 1 comment
Closed

Dynamic session #52

hemanth opened this issue Oct 25, 2024 · 1 comment

Comments

@hemanth
Copy link
Contributor

hemanth commented Oct 25, 2024

It would be useful to have getter and setter functions for systemPrompt and initialPrompts.

Use case: I have a session and need to know what the systemPrompt or initialPrompts passed to the create function was, so that I can display, verify, or update it. Any updates to either of these options should be reflected in the session.

@domenic
Copy link
Collaborator

domenic commented Oct 28, 2024

We cannot have setters since the purpose of a session is to be immutable.

For getters, this is a subset of #51.

So, I will close this issue.

@domenic domenic closed this as completed Oct 28, 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