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

Split Agent and Session for per-session use-cases #17

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

wiktor-k
Copy link
Owner

@wiktor-k wiktor-k commented Feb 22, 2024

Splits Agent activities (listening and creating sessions) and Session activities (handling messages) into two separate traits allowing per-session state to be stored.

New code should implement Session and either Default (if no session state is required) or Agent::new_session if a specialized Session object is required.

This provides minimal changes to existing clients but also allows more flexible behavior.

@wiktor-k
Copy link
Owner Author

@baloo I'd really like you to take a look at this. I think it offers vastly superior functionality compared to the old "all-in-Agent" code :)

@wiktor-k wiktor-k force-pushed the wiktor/session-agent-split branch from d4ac8d5 to f4e068b Compare February 22, 2024 13:38
Copy link
Collaborator

@baloo baloo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that works very nicely!

@wiktor-k wiktor-k merged commit f4bfda4 into wiktor/error-fixes Feb 23, 2024
9 checks passed
@wiktor-k wiktor-k deleted the wiktor/session-agent-split branch February 23, 2024 07:51
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.

2 participants