fix(pkg-py): .server() now returns reactives, making them truly session-specific
#116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR does the following:
QueryChat()API; hard deprecate old API #101 by droppingQueryChat.df(),QueryChat.sql(), etc. in favor of.server()now returning those values. I don't think there's a way we can support that API and also prevent one session from effecting another. This doesn't, however, mean we need change the Express API (in that case, theQueryChatExpress()instance is session-specific). So, in other words, the Core API now looks like this:QueryChatto have aclientattribute (since you can read the session-specific one via.server()).system_promptproperty for convenience of inspecting the system prompt (for either class -- if a session-specific one is desired for some reason, it can be obtained via theclientserver value)typesmodules where the return value for.server()can be imported, as well as theDataSourcetypes. Relatedly,querychat.datasourcewas removed (import fromquerychat.typesinstead)