Commit Graph

57 Commits

Author SHA1 Message Date
extio-de
1e5adefd13 feat: Implement skipCache functionality across conversation handling 2026-03-14 14:27:39 +01:00
extio-de
ab968f121c fix: Improve error prompt formatting in CsvAgentResponseHandler 2026-03-01 15:53:54 +01:00
extio-de
d5898e35f5 feat: Add Spring Boot auto-configuration for lm-lib modules
- Introduced auto-configuration classes for profile, client, agent, and prompt modules.
- Updated README to reflect new modular architecture and configuration properties.
- Added selective enabling/disabling of modules via application properties.
- Refactored existing services and strategies to remove unnecessary Spring annotations.
- Enhanced test configurations to utilize auto-configuration.
- Updated META-INF imports to include new auto-configuration classes.
2026-01-05 21:58:12 +01:00
extio-de
4ebb8640c7 Version 2.0
Java 25, Spring Boot 4, Use RestClient with JDK client backend
2025-12-19 17:58:56 +01:00
extio-de
9109e8ffd0 feat: Update CSV parsing to handle escaped line endings in CsvAgentResponseHandler and CsvUnmarshallingAgentResponseHandler 2025-12-17 22:46:26 +01:00
extio-de
3ae2f7414b feat: Refactor CSV parsing in CsvAgentResponseHandler and CsvUnmarshallingAgentResponseHandler to use TextUtils for normalization 2025-12-17 22:37:35 +01:00
extio-de
d2f5c46847 Convert spaces to tabs 2025-12-13 15:26:38 +01:00
extio-de
e0cd2a56c8 feat: Implement stripQuotes method to clean CSV values in CsvAgentResponseHandler and CsvUnmarshallingAgentResponseHandler 2025-12-09 21:56:16 +01:00
extio-de
353870dd79 Add CsvAgentResponseHandler 2025-12-09 21:18:39 +01:00
extio-de
e7c8dc3e2a feat: Enhance JsonAgentResponseHandler with JSON sanitization and add comprehensive unit tests 2025-12-09 21:03:40 +01:00
extio-de
dff1b46228 feat: Add debug logging for parsed CSV objects in CsvAgentResponseHandler 2025-12-08 22:52:06 +01:00
extio-de
55c8e43fb3 feat: Update responseHandler method to accept AgentContext 2025-12-08 22:31:42 +01:00
extio-de
28a1fde3ef feat: Add CsvAgentResponseHandler and corresponding tests for CSV parsing functionality 2025-12-08 21:57:30 +01:00
extio-de
b7c1e90dc7 feat: Update model profile and statistics tracking
- Updated model profile to support new cost parameters: costPerCachedInToken and costPerReasoningOutToken.
- Enhanced AgentRequestStatistic to track cached input tokens and reasoning output tokens.
- Modified CompletionStatistics to include cached input tokens and reasoning output tokens.
- Updated AzureAiClient, CachedClient, and other clients to handle new statistics fields.
- Introduced Timings class to capture detailed timing metrics for requests.
- Adjusted Usage class to include input and output token details.
- Updated properties files to include new cost parameters for cached and reasoning tokens.
2025-11-30 18:19:01 +01:00
extio-de
dcc653fe2a bump version to 1.8.5 in pom.xml and add request duration tracking in BaseAgent 2025-11-23 16:14:33 +01:00
extio-de
ae322743d6 bump version to 1.8.3 in pom.xml and add getValues method to AgentContext for improved value retrieval 2025-10-31 16:33:42 +01:00
extio-de
304924e223 feat: Enhance agent functionality with ModelProfile integration
- Added ModelProfile to the Agent record to allow for more detailed model configurations.
- Updated AgentExecutorService to utilize ModelProfile when fetching clients.
- Modified BaseAgent interface to include a default modelProfile method.
- Adjusted Client interface and implementations to support ModelProfile in conversation and streaming methods.
- Enhanced ClientService to retrieve clients based on ModelProfile.
- Updated CompletionInterceptor to work with ModelProfile instead of ModelCategory.
- Refactored AzureAiClient and other client implementations to handle ModelProfile correctly.
- Changed CachedClient to cache responses based on ModelProfile.
- Updated ModelCategory to a record type for better validation and immutability.
- Enhanced ModelProfile with validation checks for its fields.
- Updated ModelProfileService to support fetching profiles based on ModelCategory.
- Adjusted tests to accommodate changes in Agent and ModelProfile.
- Updated properties files to include category information for model profiles.
2025-10-29 12:07:36 +01:00
extio-de
1ba9227311 fix: Update setStringValue method to handle null values by removing the key from context 2025-10-13 21:20:18 +02:00
extio-de
514dad1c7f feat: Introduce reasoning capabilities in chat and text completion
- Added AbstractCompletionRequest and AbstractCompletionResponse classes to standardize request and response structures.
- Implemented StreamOptions for streaming responses in chat completions.
- Enhanced ChatCompletionClient and TextCompletionClient to support reasoning content in responses.
- Updated ModelProfile to include reasoning effort and summary details.
- Created GptOssPromptStrategy to handle specific prompt formatting and reasoning extraction.
- Modified existing tests to validate reasoning content in completions.
- Updated configuration properties for reasoning settings in local properties files.
2025-10-01 19:05:15 +02:00
extio-de
34c96f0147 chore: Bump version to 1.6.24 in pom.xml and update logging for conversation in BaseAgent 2025-09-30 15:50:55 +02:00
extio-de
1650bac4b8 fix: Update version to 1.6.23 in pom.xml and add null check for conversation in BaseAgent 2025-09-29 18:11:34 +02:00
extio-de
db0cb39127 feat: Enhance branching support in BaseAgent with hidden placeholders and improved context handling 2025-09-28 20:52:43 +02:00
extio-de
b24dfd1e08 refactor: Optimize response handler usage in BaseAgent for improved readability and performance 2025-09-28 18:25:45 +02:00
extio-de
d77c11e809 chore: Bump version to 1.6.19 and refactor AgentRequestStatistic for improved instantiation and duration handling 2025-09-27 08:48:02 +02:00
extio-de
b5f9a21f8b chore: Remove unused import for Collections in BaseAgent 2025-09-26 12:51:44 +02:00
extio-de
e5ef603e5b chore: Bump version to 1.6.18 and fix branch agent retrieval logic in AgentExecutorService 2025-09-25 15:23:02 +02:00
extio-de
3680fe7854 chore: Bump version to 1.6.17 and add context update handling in BaseAgent 2025-09-25 14:19:45 +02:00
extio-de
df8bc252ed chore: Bump version to 1.6.16 and refactor AgentExecutorService to improve context walking logic 2025-09-25 13:44:16 +02:00
extio-de
ab1695f9a1 chore: Bump version to 1.6.15 and enhance JsonAgentResponseHandler to improve array entry parsing 2025-09-23 18:47:33 +02:00
extio-de
34ff8844a3 chore: Bump version to 1.6.14 and add setValues method to AgentContext for improved context management 2025-09-23 17:52:25 +02:00
extio-de
103ff2cb40 chore: Bump version to 1.6.13 and refactor execute method in BaseAgent for improved split handling 2025-09-22 19:49:08 +02:00
extio-de
d17286a7f4 chore: Bump version to 1.6.12 and refactor JsonAgentResponseHandler to improve response handling 2025-09-22 13:10:08 +02:00
extio-de
7c467fd5b4 chore: Bump version to 1.6.11 and update spring-boot.version to 3.5.6; refactor JsonAgentResponseHandler for improved property parsing 2025-09-21 18:12:26 +02:00
extio-de
47b63dcb40 chore: Bump version to 1.6.10 and enhance AgentContext and AgentExecutorService with optional agent list handling 2025-09-14 11:29:48 +02:00
extio-de
5c3c89b580 chore: Bump version to 1.6.9 and enhance JsonAgentResponseHandler with prefixFields and array of objects support 2025-09-13 19:47:30 +02:00
extio-de
a417b95dda chore: Update version to 1.6.8 and enhance conversation handling in BaseAgent 2025-09-13 17:56:30 +02:00
extio-de
a176e6b6c4 refactor: Update modelCategory method to accept AgentContext and adjust related calls 2025-07-13 10:42:02 +02:00
extio-de
d9fae7eebd chore: Update version to 1.6.6 and refactor agentType method for context handling 2025-07-10 00:20:16 +02:00
extio-de
7cf067400b feat: Allow AgentContext update consumer in BaseAgent and add beforeStream to TextAgentResponseHandler
This commit introduces the following changes:

- **BaseAgent:** Added a mechanism to allow consumers to update the AgentContext after post-processing a split. This provides more flexibility for downstream components to react to the processed data.
- **TextAgentResponseHandler:** Introduced a `beforeStream` consumer that allows updating the AgentContext before the stream begins.  This enables pre-processing or initialization steps within the response handler.  The constructor has been updated to accept this new consumer.  Also fixed a bug where the chunkKey and updateKey were not being removed after processing.

These changes enhance the extensibility and configurability of the agent processing pipeline.
2025-07-02 21:45:44 +02:00
extio-de
c5e2ace604 Fix TextAgentResponseHandler, Added afterChunkUpdate() 2025-06-29 17:29:37 +02:00
extio-de
9ca590a8d4 Implemented agent streaming 2025-06-28 16:55:26 +02:00
extio-de
47ef9ba436 Refactored llm clients, removed maxContinuations feature, exposed finishReason instead; 2025-06-27 20:43:04 +02:00
extio-de
dcd6eeee41 Refactor BaseAgent 2025-06-27 10:25:54 +02:00
extio-de
38138b177b Agent: Skip branching in case of empty template inputs; 2025-06-26 00:19:35 +02:00
extio-de
c3fd40f4a7 AgentNext.END constant and bump version to 1.5.6 2025-06-25 20:20:50 +02:00
extio-de
cf6b868d3c Update version to 1.5.4 and enhance BaseAgent's chooseNext method 2025-06-23 13:31:49 +02:00
extio-de
52963e4eed AgentContext: Convenience value getter and setter; 2025-06-23 12:48:59 +02:00
extio-de
1ab2340714 Agent walkGraph convenience overload; 2025-06-23 12:42:40 +02:00
extio-de
8aee0acb15 AgentContext new ctor; 2025-06-23 12:37:16 +02:00
extio-de
2378e8c758 Moved Agent implementation to BaseAgent interface 2025-06-23 09:09:24 +02:00