This is an automated email from the ASF dual-hosted git repository.
fmariani pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
from d5407b7adca Upgrade Elasticsearch container image version for
test-infra to 9.1.0 (#18801)
new 2ae53cdc75a OpenAIMock - handle complex scenarios for camel
langchain4j agent
new 7713368c305 Move IT tests to integration + add a comprehensive unit
test
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../camel-ai/camel-langchain4j-agent/pom.xml | 11 ++
...tractRAGTest.java => BaseLangChain4jAgent.java} | 97 +++++--------
.../LangChain4jAgentWithMemoryServiceTest.java | 151 +++++++++++++++++++++
.../AbstractRAGIT.java} | 70 +---------
.../LangChain4jAgentGuardrailsIntegrationIT.java | 2 +-
.../LangChain4jAgentNaiveRagIT.java | 4 +-
.../LangChain4jAgentServiceIT.java | 5 +-
.../LangChain4jAgentWithMemoryIT.java | 2 +-
.../LangChain4jAgentWithMemoryServiceIT.java} | 5 +-
.../LangChain4jAgentWithToolsIT.java | 5 +-
.../LangChain4jSimpleAgentIT.java | 3 +-
.../test/infra/openai/mock/MockExpectation.java | 9 ++
.../test/infra/openai/mock/OpenAIMockBuilder.java | 7 +
.../test/infra/openai/mock/RequestContext.java | 20 +--
.../test/infra/openai/mock/RequestHandler.java | 14 +-
.../test/infra/openai/mock/ResponseBuilder.java | 18 ++-
.../mock/OpenAIMockConversationHistoryTest.java | 82 +++++++++++
....java => OpenAIMockReplyWithAfterToolTest.java} | 64 ++++-----
...ava => OpenAIMockReplyWithToolContentTest.java} | 78 +++++------
.../openai/mock/OpenAIMockSimpleAssertionTest.java | 106 +++++++++++++++
20 files changed, 522 insertions(+), 231 deletions(-)
copy
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{AbstractRAGTest.java
=> BaseLangChain4jAgent.java} (53%)
create mode 100644
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/LangChain4jAgentWithMemoryServiceTest.java
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{AbstractRAGTest.java
=> integration/AbstractRAGIT.java} (56%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{
=> integration}/LangChain4jAgentGuardrailsIntegrationIT.java (99%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{
=> integration}/LangChain4jAgentNaiveRagIT.java (98%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{
=> integration}/LangChain4jAgentServiceIT.java (96%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{
=> integration}/LangChain4jAgentWithMemoryIT.java (99%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{LangChain4jAgenWithMemoryServiceIT.java
=> integration/LangChain4jAgentWithMemoryServiceIT.java} (97%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{
=> integration}/LangChain4jAgentWithToolsIT.java (97%)
rename
components/camel-ai/camel-langchain4j-agent/src/test/java/org/apache/camel/component/langchain4j/agent/{
=> integration}/LangChain4jSimpleAgentIT.java (97%)
create mode 100644
test-infra/camel-test-infra-openai-mock/src/test/java/org/apache/camel/test/infra/openai/mock/OpenAIMockConversationHistoryTest.java
copy
test-infra/camel-test-infra-openai-mock/src/test/java/org/apache/camel/test/infra/openai/mock/{OpenAIMockMultipleToolsTest.java
=> OpenAIMockReplyWithAfterToolTest.java} (54%)
copy
test-infra/camel-test-infra-openai-mock/src/test/java/org/apache/camel/test/infra/openai/mock/{OpenAIMockMultipleToolsTest.java
=> OpenAIMockReplyWithToolContentTest.java} (50%)
create mode 100644
test-infra/camel-test-infra-openai-mock/src/test/java/org/apache/camel/test/infra/openai/mock/OpenAIMockSimpleAssertionTest.java