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

Add function to return current state of ChatRuntime #26

Closed
mitchmastroni opened this issue Apr 3, 2018 · 1 comment
Closed

Add function to return current state of ChatRuntime #26

mitchmastroni opened this issue Apr 3, 2018 · 1 comment

Comments

@mitchmastroni
Copy link
Collaborator

mitchmastroni commented Apr 3, 2018

One or two checks:

  • event queued
  • "waiting" for an answer

This would be useful in situations where interruptability is irrelevant e.g. for determining when "small talk" chats should be triggered.

@dhowe
Copy link
Owner

dhowe commented Apr 3, 2018

RuntimeContext ChatRuntime.CurrentContext()

returns a RuntimeContext object which includes the state (either Running, Waiting, or Suspended), the current Chat, and the next scheduled event time

@dhowe dhowe changed the title Chat in progress check(s) Add function to return current state of ChatRuntime Apr 3, 2018
@dhowe dhowe closed this as completed Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants