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

Handling stream advisor responses #1293

Closed

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented Aug 29, 2024

No description provided.

@tzolov tzolov marked this pull request as ready for review September 3, 2024 15:04
@tzolov tzolov changed the title [WIP] Handling stream advisor responses Handling stream advisor responses Sep 3, 2024
@markpollack markpollack self-assigned this Sep 3, 2024
@@ -410,6 +388,47 @@ public String content() {

}

public static Prompt toPrompt(DefaultChatClientRequestSpec advisedRequest, String formatParam) {
Copy link
Member

Choose a reason for hiding this comment

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

could be protected instead of public.

advisedResponse = advisor.adviseResponse(advisedResponse, context);
advisedResponse = AdvisorObservableHelper.adviseResponse(parentObservation, advisor,
advisedResponse, context);
// advisedResponse = advisor.adviseResponse(advisedResponse, context);
Copy link
Member

Choose a reason for hiding this comment

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

removed commented out line

@@ -151,4 +140,9 @@ protected Filter.Expression doGetFilterExpression(Map<String, Object> context) {

}

@Override
public StreamResponseMode getStreamResponseMode() {
return StreamResponseMode.ON_FINISH_REASON;
Copy link
Member

Choose a reason for hiding this comment

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

why not AGGREGATE?

@tzolov
Copy link
Contributor Author

tzolov commented Sep 10, 2024

Merged at bf8dabf

@tzolov tzolov closed this Sep 10, 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