Skip to content

Conversation

@sklinglernv
Copy link
Collaborator

Colang 2.0 Standard Library Fix, that

  • Resolves an issue with the avatar posture stuck in thinking state
  • Adds an option for idle posture (when no user is present)

match (polling llm request response).Started()
start bot posture "Thinking, idle" as $posture
match (polling llm request response).Finished()
if not $bot_talking_state
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems to unnecessary since we already check before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think the issue here is that since this in a separate loop you can have the StartPostureBotAction() at the "same time" as a StartUtteranceBotAction() from a different loop. (So basically, the value of $bot_talking_state changes during the line 285 so we check again on 286).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good point... That seems to call for an additional Colang feature imo. Something to define a scope where a certain state must hold...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes I agree. We should think about that.

@schuellc-nvidia schuellc-nvidia merged commit eef798d into develop Oct 4, 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.

3 participants