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.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
category=
|
||||
prompts=
|
||||
tokenEncoding=cl100k_base
|
||||
maxTokens=1500
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
category=M
|
||||
prompts=
|
||||
tokenEncoding=cl100k_base
|
||||
maxTokens=2500
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
category=S
|
||||
prompts=gpt-oss
|
||||
tokenEncoding=cl100k_base
|
||||
maxTokens=2500
|
||||
|
||||
Reference in New Issue
Block a user