@iqai/adk 0.1.21 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @iqai/adk
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 17341fc: Refactor agent loading and resolution logic with enhanced flexibility and reliability
8
+
9
+ This major enhancement improves the ADK CLI server's agent loading capabilities and adds new features to the core framework:
10
+
11
+ **CLI Server Improvements:**
12
+
13
+ - **Modular Architecture**: Refactored monolithic server file into organized modules (`server/index.ts`, `server/routes.ts`, `server/services.ts`, `server/types.ts`)
14
+ - **Enhanced Agent Resolution**: New `resolveAgentExport` method supports multiple export patterns:
15
+ - Direct agent exports: `export const agent = new LlmAgent(...)`
16
+ - Function factories: `export function agent() { return new LlmAgent(...) }`
17
+ - Async factories: `export async function agent() { return new LlmAgent(...) }`
18
+ - Container objects: `export default { agent: ... }`
19
+ - Primitive exports with fallback scanning
20
+ - **Improved TypeScript Import Handling**: Better project root detection and module resolution for TypeScript files
21
+
22
+ **Core Framework Enhancements:**
23
+
24
+ - **New AgentBuilder Method**: Added `withAgent()` method to directly provide existing agent instances with definition locking to prevent accidental configuration overwrites
25
+ - **Two-Tier Tool Deduplication**: Implemented robust deduplication logic to prevent duplicate function declarations that cause errors with LLM providers (especially Google)
26
+ - **Better Type Safety**: Improved type definitions and replaced `any[]` usage with proper typed interfaces
27
+
28
+ **Testing & Reliability:**
29
+
30
+ - **Comprehensive Test Coverage**: New `agent-resolution.test.ts` with extensive fixtures testing various agent export patterns
31
+ - **Multiple Test Fixtures**: Added 6 different agent export pattern examples for validation
32
+ - **Edge Case Handling**: Improved error handling and logging throughout the agent loading pipeline
33
+
34
+ These changes provide a more flexible, reliable, and maintainable foundation for agent development and deployment while maintaining backward compatibility.
35
+
36
+ - 1564b7b: Port Python evaluation framework to TypeScript
37
+
38
+ This change introduces a comprehensive evaluation framework for testing AI agent performance. Key features include:
39
+
40
+ - **Core evaluation engine** with agent-evaluator and local evaluation service
41
+ - **Built-in evaluators** for response matching, trajectory analysis, LLM-as-judge, and safety checks
42
+ - **Metrics system** with ROUGE scoring and tool trajectory analysis
43
+ - **Vertex AI integration** for cloud-based evaluation
44
+ - **Pluggable registry system** for custom metric evaluators
45
+ - **Structured evaluation cases and test sets** for organized testing
46
+
47
+ The framework is marked as experimental and provides essential tooling for evaluating agent responses, tool usage, and overall performance across different scenarios.
48
+
49
+ ## 0.1.22
50
+
51
+ ### Patch Changes
52
+
53
+ - c4e642a: downgraded info level logs to debug, removed legacy starter in create-adk-project and new adk cli initial version!
54
+
3
55
  ## 0.1.21
4
56
 
5
57
  ### Patch Changes