aiecs 2.2.0__tar.gz → 2.2.1__tar.gz

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.
Files changed (363) hide show
  1. {aiecs-2.2.0/aiecs.egg-info → aiecs-2.2.1}/PKG-INFO +1 -1
  2. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/__init__.py +1 -1
  3. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/graphiti/llm_adapter.py +50 -18
  4. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/googleai_client.py +5 -0
  5. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/vertex_client.py +5 -0
  6. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/main.py +2 -2
  7. {aiecs-2.2.0 → aiecs-2.2.1/aiecs.egg-info}/PKG-INFO +1 -1
  8. {aiecs-2.2.0 → aiecs-2.2.1}/pyproject.toml +2 -2
  9. {aiecs-2.2.0 → aiecs-2.2.1}/LICENSE +0 -0
  10. {aiecs-2.2.0 → aiecs-2.2.1}/LICENSE_HEADER.txt +0 -0
  11. {aiecs-2.2.0 → aiecs-2.2.1}/MANIFEST.in +0 -0
  12. {aiecs-2.2.0 → aiecs-2.2.1}/README.md +0 -0
  13. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/__main__.py +0 -0
  14. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/aiecs_client.py +0 -0
  15. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/application/__init__.py +0 -0
  16. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/application/executors/__init__.py +0 -0
  17. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/application/executors/operation_executor.py +0 -0
  18. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/common/__init__.py +0 -0
  19. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/config/__init__.py +0 -0
  20. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/config/config.py +0 -0
  21. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/config/skills_config.py +0 -0
  22. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/config/tool_config.py +0 -0
  23. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/core/__init__.py +0 -0
  24. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/core/interface/__init__.py +0 -0
  25. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/core/interface/execution_interface.py +0 -0
  26. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/core/interface/storage_interface.py +0 -0
  27. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/core/registry/__init__.py +0 -0
  28. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/core/registry/service_registry.py +0 -0
  29. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/__init__.py +0 -0
  30. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/__init__.py +0 -0
  31. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/base_agent.py +0 -0
  32. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/exceptions.py +0 -0
  33. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/goal_graph.py +0 -0
  34. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/hybrid_agent.py +0 -0
  35. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/integration/__init__.py +0 -0
  36. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/integration/context_compressor.py +0 -0
  37. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/integration/context_engine_adapter.py +0 -0
  38. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/integration/protocols.py +0 -0
  39. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/integration/retry_policy.py +0 -0
  40. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/integration/role_config.py +0 -0
  41. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/lifecycle.py +0 -0
  42. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/llm_agent.py +0 -0
  43. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/loop_detection.py +0 -0
  44. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/memory/__init__.py +0 -0
  45. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/memory/conversation.py +0 -0
  46. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/migration/__init__.py +0 -0
  47. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/migration/conversion.py +0 -0
  48. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/migration/legacy_wrapper.py +0 -0
  49. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/models.py +0 -0
  50. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/observability.py +0 -0
  51. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/persistence.py +0 -0
  52. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/__init__.py +0 -0
  53. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/base.py +0 -0
  54. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/__init__.py +0 -0
  55. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/collaboration_plugin.py +0 -0
  56. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/dawp_plugin.py +0 -0
  57. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/hook_plugin.py +0 -0
  58. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/knowledge_plugin.py +0 -0
  59. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/memory_plugin.py +0 -0
  60. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/skill_plugin.py +0 -0
  61. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/temporal_memory_plugin.py +0 -0
  62. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/tool_plugin.py +0 -0
  63. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/tools/__init__.py +0 -0
  64. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/builtin/tools/dawp_start_tool.py +0 -0
  65. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/context.py +0 -0
  66. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/__init__.py +0 -0
  67. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/budget.py +0 -0
  68. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/completion.py +0 -0
  69. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/document_loader.py +0 -0
  70. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/document_path_policy.py +0 -0
  71. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/enqueue_guard.py +0 -0
  72. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/inject.py +0 -0
  73. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/loop_scope.py +0 -0
  74. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/metrics.py +0 -0
  75. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/prompt_chain_runner.py +0 -0
  76. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/run_scheduler.py +0 -0
  77. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/schema.py +0 -0
  78. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/step_handlers.py +0 -0
  79. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/step_handoff.py +0 -0
  80. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/stream_consumer.py +0 -0
  81. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/suppress.py +0 -0
  82. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/temp_store.py +0 -0
  83. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/temporal_memory_context.py +0 -0
  84. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/tools_filter.py +0 -0
  85. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/dawp/workflow_registry.py +0 -0
  86. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/defaults.py +0 -0
  87. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/errors.py +0 -0
  88. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/__init__.py +0 -0
  89. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/bridge_compression.py +0 -0
  90. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/dispatch.py +0 -0
  91. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/events.py +0 -0
  92. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/executor.py +0 -0
  93. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/gvr_blocking.py +0 -0
  94. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/loader.py +0 -0
  95. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/notifications.py +0 -0
  96. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/payload.py +0 -0
  97. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/permission.py +0 -0
  98. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/prompt_client.py +0 -0
  99. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/registry.py +0 -0
  100. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/schemas.py +0 -0
  101. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/task_boundary.py +0 -0
  102. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/tool_dispatch.py +0 -0
  103. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/hooks/types.py +0 -0
  104. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/identifier.py +0 -0
  105. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/manager.py +0 -0
  106. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/manifest_loader.py +0 -0
  107. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/models.py +0 -0
  108. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/protocols.py +0 -0
  109. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/registry.py +0 -0
  110. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/schema/__init__.py +0 -0
  111. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/schema/dependency.py +0 -0
  112. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/schema/manifest.py +0 -0
  113. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/schema/validation.py +0 -0
  114. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/testing/__init__.py +0 -0
  115. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/testing/capture.py +0 -0
  116. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/testing/normalize.py +0 -0
  117. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/plugins/testing/parity.py +0 -0
  118. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/prompts/__init__.py +0 -0
  119. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/prompts/builder.py +0 -0
  120. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/prompts/formatters.py +0 -0
  121. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/prompts/template.py +0 -0
  122. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/registry.py +0 -0
  123. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/search_burst_guard.py +0 -0
  124. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/__init__.py +0 -0
  125. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/builtin/__init__.py +0 -0
  126. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/builtin/api-integration/examples/api-client-example.py +0 -0
  127. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/builtin/data-analysis/examples/analysis-example.py +0 -0
  128. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/builtin/data-analysis/scripts/validate-data.py +0 -0
  129. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/builtin/python-coding/examples/code-patterns.py +0 -0
  130. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/context.py +0 -0
  131. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/discovery.py +0 -0
  132. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/executor.py +0 -0
  133. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/loader.py +0 -0
  134. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/matcher.py +0 -0
  135. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/mixin.py +0 -0
  136. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/models.py +0 -0
  137. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/registry.py +0 -0
  138. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/skills/validator.py +0 -0
  139. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tool_agent.py +0 -0
  140. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tool_loop_core.py +0 -0
  141. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tool_result_matcher.py +0 -0
  142. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tools/__init__.py +0 -0
  143. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tools/models.py +0 -0
  144. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tools/registry.py +0 -0
  145. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/tools/schema_generator.py +0 -0
  146. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/__init__.py +0 -0
  147. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/context_builder.py +0 -0
  148. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/criteria.py +0 -0
  149. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/cwe_verifier.py +0 -0
  150. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/cwe_verifier_policy_models.py +0 -0
  151. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/dawp_result.py +0 -0
  152. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/__init__.py +0 -0
  153. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/citation_url_gate.py +0 -0
  154. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/conversion.py +0 -0
  155. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/gate_criterion.py +0 -0
  156. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/models.py +0 -0
  157. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/protocol.py +0 -0
  158. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/registry.py +0 -0
  159. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gates/spec_gate.py +0 -0
  160. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/gvr_checkpoints.py +0 -0
  161. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/models.py +0 -0
  162. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/peer_review.py +0 -0
  163. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/peer_review_policy_models.py +0 -0
  164. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/policy_models.py +0 -0
  165. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/policy_runner.py +0 -0
  166. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/read_only_verifier.py +0 -0
  167. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/review_refinement.py +0 -0
  168. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/agent/verification/verifier.py +0 -0
  169. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/__init__.py +0 -0
  170. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/agent_adapter.py +0 -0
  171. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/analytics.py +0 -0
  172. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/collaborative_workflow.py +0 -0
  173. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/communication_hub.py +0 -0
  174. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/community_builder.py +0 -0
  175. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/community_integration.py +0 -0
  176. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/community_manager.py +0 -0
  177. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/decision_engine.py +0 -0
  178. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/exceptions.py +0 -0
  179. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/models/__init__.py +0 -0
  180. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/models/community_models.py +0 -0
  181. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/resource_manager.py +0 -0
  182. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/community/shared_context_manager.py +0 -0
  183. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/__init__.py +0 -0
  184. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/__init__.py +0 -0
  185. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/adapters/__init__.py +0 -0
  186. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/adapters/conversation_message.py +0 -0
  187. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/adapters/llm_message.py +0 -0
  188. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/collapse.py +0 -0
  189. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/constants.py +0 -0
  190. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/gvr_preserve.py +0 -0
  191. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/hooks.py +0 -0
  192. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/images.py +0 -0
  193. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/legacy.py +0 -0
  194. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/llm_compact.py +0 -0
  195. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/metadata.py +0 -0
  196. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/microcompact.py +0 -0
  197. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/orchestrator.py +0 -0
  198. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/pairs.py +0 -0
  199. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/policy.py +0 -0
  200. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/policy_resolver.py +0 -0
  201. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/progress.py +0 -0
  202. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/ptl.py +0 -0
  203. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/result.py +0 -0
  204. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/session_memory.py +0 -0
  205. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/state.py +0 -0
  206. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/tokens.py +0 -0
  207. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/tool_budget.py +0 -0
  208. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/truncation.py +0 -0
  209. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/compression/types.py +0 -0
  210. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/context_engine.py +0 -0
  211. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/context/conversation_models.py +0 -0
  212. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/execution/__init__.py +0 -0
  213. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/execution/model.py +0 -0
  214. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/memory/__init__.py +0 -0
  215. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/memory/models.py +0 -0
  216. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/memory/unified_retriever.py +0 -0
  217. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/task/__init__.py +0 -0
  218. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/task/dsl_processor.py +0 -0
  219. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/task/model.py +0 -0
  220. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/task/task_context.py +0 -0
  221. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/__init__.py +0 -0
  222. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/constants.py +0 -0
  223. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/engine.py +0 -0
  224. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/episode_bridge.py +0 -0
  225. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/group_id.py +0 -0
  226. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/models/__init__.py +0 -0
  227. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/models/episode.py +0 -0
  228. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/models/fact.py +0 -0
  229. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/pii.py +0 -0
  230. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/ports.py +0 -0
  231. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/domain/temporal_memory/search_cache.py +0 -0
  232. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/__init__.py +0 -0
  233. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/compression/__init__.py +0 -0
  234. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/compression/config.py +0 -0
  235. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/compression/l2_mc_adapter.py +0 -0
  236. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/compression/progress_bridge.py +0 -0
  237. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/compression/s3_tool_artifact_port.py +0 -0
  238. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/compression/transcript_compact.py +0 -0
  239. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/hooks/__init__.py +0 -0
  240. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/host/hooks/sse_bridge.py +0 -0
  241. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/__init__.py +0 -0
  242. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/knowledge/__init__.py +0 -0
  243. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/knowledge/graph_store_factory.py +0 -0
  244. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/knowledge/graph_store_protocol.py +0 -0
  245. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/knowledge/noop_graph_store.py +0 -0
  246. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/messaging/__init__.py +0 -0
  247. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/messaging/celery_task_manager.py +0 -0
  248. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/messaging/websocket_manager.py +0 -0
  249. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/monitoring/__init__.py +0 -0
  250. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/monitoring/executor_metrics.py +0 -0
  251. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/monitoring/global_metrics_manager.py +0 -0
  252. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/monitoring/structured_logger.py +0 -0
  253. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/monitoring/tracing_manager.py +0 -0
  254. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/__init__.py +0 -0
  255. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/clickhouse_client.py +0 -0
  256. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/clickhouse_permanent_backend.py +0 -0
  257. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/context_engine_client.py +0 -0
  258. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/database_manager.py +0 -0
  259. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/file_storage.py +0 -0
  260. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/permanent_backend_factory.py +0 -0
  261. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/permanent_backend_utils.py +0 -0
  262. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/postgres_permanent_backend.py +0 -0
  263. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/persistence/redis_client.py +0 -0
  264. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/__init__.py +0 -0
  265. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/graphiti/__init__.py +0 -0
  266. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/graphiti/search_filters.py +0 -0
  267. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/graphiti/store.py +0 -0
  268. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/ingest_queue.py +0 -0
  269. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/metrics.py +0 -0
  270. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/noop_store.py +0 -0
  271. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/postgres/__init__.py +0 -0
  272. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/postgres/store.py +0 -0
  273. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/infrastructure/temporal_memory/store_factory.py +0 -0
  274. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/__init__.py +0 -0
  275. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/callbacks/__init__.py +0 -0
  276. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/callbacks/custom_callbacks.py +0 -0
  277. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/client_factory.py +0 -0
  278. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/client_resolver.py +0 -0
  279. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/__init__.py +0 -0
  280. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/anthropic_client.py +0 -0
  281. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/base_client.py +0 -0
  282. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/google_function_calling_mixin.py +0 -0
  283. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/openai_client.py +0 -0
  284. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/openai_compatible_mixin.py +0 -0
  285. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/openrouter_client.py +0 -0
  286. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/schemas.py +0 -0
  287. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/vertex_maas_client.py +0 -0
  288. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/clients/xai_client.py +0 -0
  289. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/config/__init__.py +0 -0
  290. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/config/config_loader.py +0 -0
  291. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/config/config_validator.py +0 -0
  292. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/config/model_config.py +0 -0
  293. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/protocols.py +0 -0
  294. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/utils/__init__.py +0 -0
  295. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/utils/gcp_credentials.py +0 -0
  296. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/utils/image_utils.py +0 -0
  297. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/llm/utils/validate_config.py +0 -0
  298. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/__init__.py +0 -0
  299. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/aid/VERSION_MANAGEMENT.md +0 -0
  300. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/aid/__init__.py +0 -0
  301. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/aid/module_checker.py +0 -0
  302. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/aid/version_manager.py +0 -0
  303. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/__init__.py +0 -0
  304. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/fix_weasel/README_WEASEL_PATCH.md +0 -0
  305. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/fix_weasel/__init__.py +0 -0
  306. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/fix_weasel/fix_weasel_validator.py +0 -0
  307. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/fix_weasel/fix_weasel_validator.sh +0 -0
  308. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/fix_weasel/patch_weasel_library.sh +0 -0
  309. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/dependance_patch/fix_weasel/run_weasel_patch.sh +0 -0
  310. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/scripts/migrations/multi_tenancy/README.md +0 -0
  311. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tasks/__init__.py +0 -0
  312. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tasks/worker.py +0 -0
  313. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/__init__.py +0 -0
  314. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/_builtin_tool_deprecation.py +0 -0
  315. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/base_tool.py +0 -0
  316. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/schema_generator.py +0 -0
  317. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/__init__.py +0 -0
  318. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/analyzers.py +0 -0
  319. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/__init__.py +0 -0
  320. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/_resilience_factory.py +0 -0
  321. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/async_bridge.py +0 -0
  322. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/credentials.py +0 -0
  323. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/gemini_grounding.py +0 -0
  324. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/google_cse.py +0 -0
  325. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/grok_grounding.py +0 -0
  326. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/protocol.py +0 -0
  327. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/backends/registry.py +0 -0
  328. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/cache.py +0 -0
  329. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/cache_fingerprint.py +0 -0
  330. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/constants.py +0 -0
  331. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/context.py +0 -0
  332. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/core.py +0 -0
  333. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/deduplicator.py +0 -0
  334. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/error_handler.py +0 -0
  335. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/errors.py +0 -0
  336. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/metrics.py +0 -0
  337. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/normalizer.py +0 -0
  338. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/partition.py +0 -0
  339. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/rate_limiter.py +0 -0
  340. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/resilience.py +0 -0
  341. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/router.py +0 -0
  342. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/search_tool/schemas.py +0 -0
  343. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/task_tools/__init__.py +0 -0
  344. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/task_tools/image_tool.py +0 -0
  345. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/temp_file_manager.py +0 -0
  346. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/tool_executor/__init__.py +0 -0
  347. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/tools/tool_executor/tool_executor.py +0 -0
  348. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/LLM_output_structor.py +0 -0
  349. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/__init__.py +0 -0
  350. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/base_callback.py +0 -0
  351. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/cache_provider.py +0 -0
  352. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/execution_utils.py +0 -0
  353. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/logging.py +0 -0
  354. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/prompt_loader.py +0 -0
  355. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/utils/token_usage_repository.py +0 -0
  356. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/ws/__init__.py +0 -0
  357. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs/ws/socket_server.py +0 -0
  358. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs.egg-info/SOURCES.txt +0 -0
  359. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs.egg-info/dependency_links.txt +0 -0
  360. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs.egg-info/entry_points.txt +0 -0
  361. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs.egg-info/requires.txt +0 -0
  362. {aiecs-2.2.0 → aiecs-2.2.1}/aiecs.egg-info/top_level.txt +0 -0
  363. {aiecs-2.2.0 → aiecs-2.2.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiecs
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration
5
5
  Author-email: AIECS Team <iretbl@gmail.com>
6
6
  License-Expression: MIT
@@ -9,7 +9,7 @@ A powerful Python middleware framework for building AI-powered applications
9
9
  with tool orchestration, task execution, and multi-provider LLM support.
10
10
  """
11
11
 
12
- __version__ = "2.2.0"
12
+ __version__ = "2.2.1"
13
13
  __author__ = "AIECS Team"
14
14
  __email__ = "iretbl@gmail.com"
15
15
 
@@ -100,27 +100,59 @@ def _extract_json_dict(content: str) -> dict[str, Any]:
100
100
  return {"content": content}
101
101
 
102
102
 
103
+ def _validated_dump(response_model: type[Any], payload: str | dict[str, Any]) -> dict[str, Any]:
104
+ """Validate ``payload`` as ``response_model`` and return its field dict."""
105
+ if isinstance(payload, str):
106
+ validator = getattr(response_model, "model_validate_json", None)
107
+ if not callable(validator):
108
+ raise TypeError(f"{getattr(response_model, '__name__', response_model)} cannot validate JSON")
109
+ validated = validator(payload)
110
+ else:
111
+ validator = getattr(response_model, "model_validate", None)
112
+ if not callable(validator):
113
+ raise TypeError(f"{getattr(response_model, '__name__', response_model)} cannot validate a dict")
114
+ validated = validator(payload)
115
+ model_dump = getattr(validated, "model_dump", None)
116
+ if not callable(model_dump):
117
+ raise TypeError(f"{getattr(response_model, '__name__', response_model)} did not produce a model instance")
118
+ dumped = model_dump()
119
+ if not isinstance(dumped, dict):
120
+ raise TypeError(f"{getattr(response_model, '__name__', response_model)} dump was not an object")
121
+ return dumped
122
+
123
+
103
124
  def _parse_structured_response(content: str, response_model: type[Any] | None) -> dict[str, Any]:
125
+ if response_model is None:
126
+ return _extract_json_dict(content)
127
+
104
128
  text = _strip_json_fences(content)
105
- if response_model is not None and text:
106
- model_validate_json = getattr(response_model, "model_validate_json", None)
107
- if callable(model_validate_json):
108
- try:
109
- validated = model_validate_json(text)
110
- model_dump = getattr(validated, "model_dump", None)
111
- if callable(model_dump):
112
- dumped = model_dump()
113
- if isinstance(dumped, dict):
114
- return dumped
115
- except Exception:
116
- logger.debug("Pydantic model_validate_json failed; falling back to JSON extraction", exc_info=True)
117
- return _extract_json_dict(content)
118
-
119
-
120
- def _structured_output_kwargs(aiecs_client: Any) -> dict[str, Any]:
129
+ last_error: Exception | None = None
130
+ if text:
131
+ try:
132
+ return _validated_dump(response_model, text)
133
+ except Exception as exc:
134
+ last_error = exc
135
+ logger.debug("Pydantic validation failed; falling back to JSON extraction", exc_info=True)
136
+
137
+ try:
138
+ return _validated_dump(response_model, _extract_json_dict(content))
139
+ except Exception as exc:
140
+ last_error = exc
141
+
142
+ name = getattr(response_model, "__name__", "response model")
143
+ logger.warning("Structured response did not match %s", name)
144
+ raise ValueError(f"Structured response did not match {name}") from last_error
145
+
146
+
147
+ def _structured_output_kwargs(aiecs_client: Any, response_model: type[Any] | None = None) -> dict[str, Any]:
121
148
  provider = (getattr(aiecs_client, "provider_name", None) or "").strip()
122
149
  if provider in ("Vertex", "GoogleAI"):
123
- return {"response_mime_type": "application/json"}
150
+ # application/json only requires JSON. response_schema constrains the instance,
151
+ # so the model cannot echo the schema Graphiti appends to the prompt.
152
+ kwargs: dict[str, Any] = {"response_mime_type": "application/json"}
153
+ if response_model is not None:
154
+ kwargs["response_schema"] = response_model
155
+ return kwargs
124
156
  if provider in ("OpenAI", "OpenRouter", "xAI", "VertexMaaS"):
125
157
  return {"response_format": {"type": "json_object"}}
126
158
  return {}
@@ -311,7 +343,7 @@ class AiecsGraphitiLLMClient:
311
343
  model = self._model_for_size(model_size)
312
344
  llm_kwargs: dict[str, Any] = {}
313
345
  if response_model is not None:
314
- llm_kwargs.update(_structured_output_kwargs(self._aiecs))
346
+ llm_kwargs.update(_structured_output_kwargs(self._aiecs, response_model))
315
347
  llm_kwargs.setdefault("temperature", 0.0)
316
348
 
317
349
  response = await self._aiecs.generate_text(
@@ -311,12 +311,17 @@ class GoogleAIClient(BaseLLMClient):
311
311
  top_p_val = kwargs.pop("top_p", None)
312
312
  top_k_val = kwargs.pop("top_k", None)
313
313
  response_mime_type = kwargs.pop("response_mime_type", None)
314
+ response_schema = kwargs.pop("response_schema", None)
315
+ if response_schema is not None and response_mime_type is None:
316
+ response_mime_type = "application/json"
314
317
  if top_p_val is not None:
315
318
  generate_config_params["top_p"] = top_p_val
316
319
  if top_k_val is not None:
317
320
  generate_config_params["top_k"] = top_k_val
318
321
  if response_mime_type is not None:
319
322
  generate_config_params["response_mime_type"] = response_mime_type
323
+ if response_schema is not None:
324
+ generate_config_params["response_schema"] = response_schema
320
325
  config = types.GenerateContentConfig(**generate_config_params)
321
326
 
322
327
  # Use async client for async operations
@@ -593,6 +593,7 @@ class VertexAIClient(BaseLLMClient, GoogleFunctionCallingMixin):
593
593
  _top_p = kwargs.pop("top_p", None)
594
594
  _top_k = kwargs.pop("top_k", None)
595
595
  _response_mime_type = kwargs.pop("response_mime_type", None)
596
+ _response_schema = kwargs.pop("response_schema", None)
596
597
  _gen_config_params: Dict[str, Any] = {
597
598
  "temperature": temperature,
598
599
  "max_output_tokens": max_tokens or 8192,
@@ -601,8 +602,12 @@ class VertexAIClient(BaseLLMClient, GoogleFunctionCallingMixin):
601
602
  "safety_settings": safety_settings,
602
603
  "thinking_config": thinking_config,
603
604
  }
605
+ if _response_schema is not None and _response_mime_type is None:
606
+ _response_mime_type = "application/json"
604
607
  if _response_mime_type is not None:
605
608
  _gen_config_params["response_mime_type"] = _response_mime_type
609
+ if _response_schema is not None:
610
+ _gen_config_params["response_schema"] = _response_schema
606
611
  if _top_p is not None:
607
612
  _gen_config_params["top_p"] = _top_p
608
613
  if _top_k is not None:
@@ -165,7 +165,7 @@ async def lifespan(app: FastAPI):
165
165
  app = FastAPI(
166
166
  title="AIECS - AI Execute Services",
167
167
  description="Middleware service for AI-powered task execution and tool orchestration",
168
- version="2.2.0",
168
+ version="2.2.1",
169
169
  lifespan=lifespan,
170
170
  )
171
171
 
@@ -187,7 +187,7 @@ socket_app = socketio.ASGIApp(sio, other_asgi_app=app)
187
187
  @app.get("/health")
188
188
  async def health_check():
189
189
  """Health check endpoint"""
190
- return {"status": "healthy", "service": "aiecs", "version": "2.2.0"}
190
+ return {"status": "healthy", "service": "aiecs", "version": "2.2.1"}
191
191
 
192
192
 
193
193
  # Metrics health check endpoint
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiecs
3
- Version: 2.2.0
3
+ Version: 2.2.1
4
4
  Summary: AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration
5
5
  Author-email: AIECS Team <iretbl@gmail.com>
6
6
  License-Expression: MIT
@@ -20,7 +20,7 @@ exclude = '''
20
20
  # Poetry 2.x 配置 - 需要基本的 metadata (使用 PEP 621 格式时保持最小配置)
21
21
  [tool.poetry]
22
22
  name = "aiecs"
23
- version = "2.2.0"
23
+ version = "2.2.1"
24
24
  description = "AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration"
25
25
  authors = ["AIECS Team <iretbl@gmail.com>"]
26
26
  readme = "README.md"
@@ -28,7 +28,7 @@ packages = [{include = "aiecs"}]
28
28
 
29
29
  [project]
30
30
  name = "aiecs"
31
- version = "2.2.0"
31
+ version = "2.2.1"
32
32
  description = "AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration"
33
33
  authors = [
34
34
  {name = "AIECS Team", email = "iretbl@gmail.com"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes