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

Expiration helpers #124

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Expiration helpers #124

merged 1 commit into from
Jul 9, 2024

Conversation

peterszerzo
Copy link
Collaborator

@peterszerzo peterszerzo commented Jul 9, 2024

Expose helpers to figure out the current expiration timestamp of a conversation, allowing the user to handle it however they wish. Alternative to #46.

const conversationHandler = nlxai.chatCore.create({ botUrl: "" });

conversationHandler.subscribe((responses) => {
  const timestamp = nlxai.chatCore.getCurrentExpirationTimestamp(responses);
  // Set timeouts, alerts etc.
});

@peterszerzo peterszerzo force-pushed the expiration-helpers branch from df1f452 to cdff1ce Compare July 9, 2024 15:24
Copy link
Contributor

@sam-trost sam-trost left a comment

Choose a reason for hiding this comment

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

looks like the right stuff to me.

@peterszerzo peterszerzo merged commit c51fc3a into main Jul 9, 2024
4 checks passed
@peterszerzo peterszerzo deleted the expiration-helpers branch July 9, 2024 15:39
@peterszerzo peterszerzo mentioned this pull request Jul 11, 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

Successfully merging this pull request may close these issues.

2 participants