Skip to content

UserMessage is also excluded in requests with IncludeContents.NONE #329

@nlinhvu

Description

@nlinhvu

Describe the bug
As the doc

/**
* Enum to define if contents of previous events should be included in requests to the underlying
* LLM.
*/

With this

LlmAgent.builder()
    .includeContents(LlmAgent.IncludeContents.NONE)

I expect the current user message (event) should be sent. Do I understand it correct?

It looks like all contents (include the current user message) being deleted at the current version:

if (llmAgent.includeContents() == LlmAgent.IncludeContents.NONE) {
return Single.just(
RequestProcessor.RequestProcessingResult.create(
request.toBuilder().contents(ImmutableList.of()).build(), ImmutableList.of()));
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions