[ 
https://issues.apache.org/jira/browse/CAMEL-22070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151678#comment-18151678
 ] 

Claus Ibsen commented on CAMEL-22070:
-------------------------------------

Closing as obsolete. `camel-langchain4j-tools` was removed in Camel 4.23 (it is 
replaced by `camel-ai-tool` +
`camel-langchain4j-agent`). Chat memory is supported in 
`camel-langchain4j-agent` through a `ChatMemoryProvider`
(`AgentWithMemory`, with a `memoryId` per conversation). The same request for 
the tools component (CAMEL-22395) was
closed for the same reason.

_Claude Code on behalf of davsclaus_

> Chat-memory support on camel-langchain4j-chat/camel-langchain4j-tools 
> components
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-22070
>                 URL: https://issues.apache.org/jira/browse/CAMEL-22070
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-langchain4j-chat, camel-langchain4j-tools
>            Reporter: Xilai Dai
>            Priority: Major
>             Fix For: 4.x
>
>
> Currently the chat with history is supported via the 
> "chatOperation=CHAT_MULTIPLE_MESSAGES" property.
> Langchain4j provides chat-memory support, see 
> [https://docs.langchain4j.dev/tutorials/chat-memory/] 
> e.g. creating a ConversationalChain with MessageWindowChatMemory.
> {code:java}
> ChatMemory chatMemory = MessageWindowChatMemory.withMaxMessages(20);
> ConversationalChain chatChain = ConversationalChain.builder()
> .chatLanguageModel(model)
> .chatMemory(chatMemory)
> .build(); {code}
> Better this chat-memory support can be added into camel-langchain4j-chat and 
> camel-langchain4j-tools components.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to