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

feat(ai): agents can ask for input and continue #14486

Conversation

planger
Copy link
Contributor

@planger planger commented Nov 20, 2024

What it does

  • Allow custom chat agents to stop completing the response conditionally
  • Introduce an orthogonal response state called waitingForInput
  • Introduce show setting on progress messages to control visibility
    • 'untilFirstContent': Disappears when first response content appears
    • 'whileIncomplete': Remains visible while response is incomplete
    • 'forever': Remains visible forever.
  • Adds a QuestionResponseContent and QuestionPartRenderer
  • Adds an API example agent 'AskAndContinue' that uses these features
  • Introduces agent-specific content matchers (in contrast to globals)
  • Dels redundant response completion & recording in AbstractChatAgent

Contributed on behalf of STMicroelectronics.

How to test

You can test all features with the @AskAndContinue example agent.

AskAndContinue.mp4

Follow-ups

None

Review checklist

Reminder for reviewers

* Allow custom chat agents to stop completing the response conditionally
* Introduce an orthogonal response state called `waitingForInput`
* Introduce `show` setting on progress messages to control visibility
  * 'untilFirstContent': Disappears when first response content appears
  * 'whileIncomplete': Remains visible while response is incomplete
  * 'forever': Remains visible forever.
* Adds a `QuestionResponseContent` and `QuestionPartRenderer`
* Adds an API example agent 'AskAndContinue' that uses these features
* Introduces agent-specific content matchers (in contrast to globals)
* Dels redundant response completion & recording in `AbstractChatAgent`

Contributed on behalf of STMicroelectronics.
@planger planger requested a review from sdirix November 20, 2024 09:22
@planger planger added this to the 1.56.0 milestone Nov 22, 2024
Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

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

It works! Great work ❤️

I have some comments

@sdirix sdirix merged commit 03d8a36 into eclipse-theia:master Nov 26, 2024
11 checks passed
@sdirix sdirix deleted the planger/ai/support-structured-response-flow branch November 26, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants