lite-agent 0.14.0__tar.gz → 0.14.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.

Potentially problematic release.


This version of lite-agent might be problematic. Click here for more details.

Files changed (153) hide show
  1. {lite_agent-0.14.0 → lite_agent-0.14.1}/CHANGELOG.md +8 -0
  2. {lite_agent-0.14.0 → lite_agent-0.14.1}/PKG-INFO +1 -1
  3. {lite_agent-0.14.0 → lite_agent-0.14.1}/pyproject.toml +1 -1
  4. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/context.py +4 -1
  5. {lite_agent-0.14.0 → lite_agent-0.14.1}/.claude/settings.local.json +0 -0
  6. {lite_agent-0.14.0 → lite_agent-0.14.1}/.github/workflows/ci.yml +0 -0
  7. {lite_agent-0.14.0 → lite_agent-0.14.1}/.gitignore +0 -0
  8. {lite_agent-0.14.0 → lite_agent-0.14.1}/.python-version +0 -0
  9. {lite_agent-0.14.0 → lite_agent-0.14.1}/.vscode/launch.json +0 -0
  10. {lite_agent-0.14.0 → lite_agent-0.14.1}/CLAUDE.md +0 -0
  11. {lite_agent-0.14.0 → lite_agent-0.14.1}/README.md +0 -0
  12. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/basic.py +0 -0
  13. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/basic_agent.py +0 -0
  14. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/basic_model.py +0 -0
  15. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/cancel_and_transfer_demo.py +0 -0
  16. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/channels/rich_channel.py +0 -0
  17. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/chat_display_demo.py +0 -0
  18. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/confirm_and_continue.py +0 -0
  19. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/consolidate_history.py +0 -0
  20. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/context.py +0 -0
  21. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/context_modify.py +0 -0
  22. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/custom_termination.py +0 -0
  23. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/debug_non_streaming.py +0 -0
  24. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/debug_with_logging.py +0 -0
  25. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/handoffs.py +0 -0
  26. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/history_context_demo.py +0 -0
  27. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/image.py +0 -0
  28. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/knowledge/main.py +0 -0
  29. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/llm_config_demo.py +0 -0
  30. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/message_transfer_example.py +0 -0
  31. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/message_transfer_example_new.py +0 -0
  32. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/new_message_structure_demo.py +0 -0
  33. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/non_streaming.py +0 -0
  34. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/reasoning_example.py +0 -0
  35. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/response_api_example.py +0 -0
  36. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/responses.py +0 -0
  37. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/set_chat_history_example.py +0 -0
  38. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/simple_debug.py +0 -0
  39. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/simple_debug2.py +0 -0
  40. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/stop_before_functions.py +0 -0
  41. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/stop_with_tool_call.py +0 -0
  42. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/streaming_demo.py +0 -0
  43. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/terminal.py +0 -0
  44. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/translate/main.py +0 -0
  45. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/translate/prompts/translation_system.md.j2 +0 -0
  46. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/translate.py +0 -0
  47. {lite_agent-0.14.0 → lite_agent-0.14.1}/examples/type_system_example.py +0 -0
  48. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/.gitignore +0 -0
  49. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/class_index.html +0 -0
  50. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/coverage_html_cb_6fb7b396.js +0 -0
  51. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/favicon_32_cb_58284776.png +0 -0
  52. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/function_index.html +0 -0
  53. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/index.html +0 -0
  54. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/keybd_closed_cb_ce680311.png +0 -0
  55. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/status.json +0 -0
  56. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/style_cb_6b508a39.css +0 -0
  57. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_02adcf90d0f2eeb1___init___py.html +0 -0
  58. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_02adcf90d0f2eeb1_events_py.html +0 -0
  59. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_02adcf90d0f2eeb1_messages_py.html +0 -0
  60. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_02adcf90d0f2eeb1_tool_calls_py.html +0 -0
  61. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_1d32cdd6b7b66bed___init___py.html +0 -0
  62. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_1d32cdd6b7b66bed_message_builder_py.html +0 -0
  63. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_1d32cdd6b7b66bed_metrics_py.html +0 -0
  64. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e___init___py.html +0 -0
  65. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_agent_py.html +0 -0
  66. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_chat_display_py.html +0 -0
  67. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_client_py.html +0 -0
  68. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_constants_py.html +0 -0
  69. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_loggers_py.html +0 -0
  70. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_message_transfers_py.html +0 -0
  71. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_40b804173f68aa9e_runner_py.html +0 -0
  72. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_71ac9935daa08879___init___py.html +0 -0
  73. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_71ac9935daa08879_base_py.html +0 -0
  74. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_71ac9935daa08879_completion_py.html +0 -0
  75. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_71ac9935daa08879_responses_py.html +0 -0
  76. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_c8357a9ef7e20b45___init___py.html +0 -0
  77. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_c8357a9ef7e20b45_litellm_py.html +0 -0
  78. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_f01690d2832086e5___init___py.html +0 -0
  79. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_f01690d2832086e5_completion_event_processor_py.html +0 -0
  80. {lite_agent-0.14.0 → lite_agent-0.14.1}/htmlcov/z_f01690d2832086e5_response_event_processor_py.html +0 -0
  81. {lite_agent-0.14.0 → lite_agent-0.14.1}/pyrightconfig.json +0 -0
  82. {lite_agent-0.14.0 → lite_agent-0.14.1}/scripts/record_chat_messages.py +0 -0
  83. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/__init__.py +0 -0
  84. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/agent.py +0 -0
  85. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/chat_display.py +0 -0
  86. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/client.py +0 -0
  87. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/constants.py +0 -0
  88. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/loggers.py +0 -0
  89. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/message_transfers.py +0 -0
  90. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/processors/__init__.py +0 -0
  91. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/processors/completion_event_processor.py +0 -0
  92. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/processors/response_event_processor.py +0 -0
  93. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/py.typed +0 -0
  94. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/response_handlers/__init__.py +0 -0
  95. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/response_handlers/base.py +0 -0
  96. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/response_handlers/completion.py +0 -0
  97. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/response_handlers/responses.py +0 -0
  98. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/runner.py +0 -0
  99. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/stream_handlers/__init__.py +0 -0
  100. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/stream_handlers/litellm.py +0 -0
  101. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/templates/handoffs_source_instructions.xml.j2 +0 -0
  102. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/templates/handoffs_target_instructions.xml.j2 +0 -0
  103. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/templates/wait_for_user_instructions.xml.j2 +0 -0
  104. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/types/__init__.py +0 -0
  105. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/types/events.py +0 -0
  106. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/types/messages.py +0 -0
  107. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/types/tool_calls.py +0 -0
  108. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/utils/__init__.py +0 -0
  109. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/utils/advanced_message_builder.py +0 -0
  110. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/utils/message_builder.py +0 -0
  111. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/utils/message_converter.py +0 -0
  112. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/utils/message_state_manager.py +0 -0
  113. {lite_agent-0.14.0 → lite_agent-0.14.1}/src/lite_agent/utils/metrics.py +0 -0
  114. {lite_agent-0.14.0 → lite_agent-0.14.1}/temp/main.py +0 -0
  115. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/integration/test_agent_with_mocks.py +0 -0
  116. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/integration/test_basic.py +0 -0
  117. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/integration/test_context_modification.py +0 -0
  118. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/integration/test_mock_litellm.py +0 -0
  119. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/mocks/basic/1.jsonl +0 -0
  120. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/mocks/confirm_and_continue/1.jsonl +0 -0
  121. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/mocks/confirm_and_continue/2.jsonl +0 -0
  122. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/mocks/context/1.jsonl +0 -0
  123. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/mocks/handoffs/1.jsonl +0 -0
  124. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/performance/test_set_chat_history_performance.py +0 -0
  125. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/test_new_messages.py +0 -0
  126. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_agent.py +0 -0
  127. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_agent_additional.py +0 -0
  128. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_agent_handoffs.py +0 -0
  129. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_append_message.py +0 -0
  130. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_cancel_pending_tools.py +0 -0
  131. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_chat_display.py +0 -0
  132. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_chat_display_additional.py +0 -0
  133. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_chat_display_simple.py +0 -0
  134. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_client.py +0 -0
  135. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_completion_condition.py +0 -0
  136. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_file_recording.py +0 -0
  137. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_litellm_stream_handler.py +0 -0
  138. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_message_builder.py +0 -0
  139. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_message_transfer.py +0 -0
  140. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_message_transfers.py +0 -0
  141. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_message_transfers_additional.py +0 -0
  142. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_response_api_format.py +0 -0
  143. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_response_event_processor.py +0 -0
  144. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_response_handlers.py +0 -0
  145. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_runner.py +0 -0
  146. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_set_chat_history.py +0 -0
  147. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_simple_stream_handlers.py +0 -0
  148. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_stream_chunk_processor.py +0 -0
  149. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_stream_handlers_additional.py +0 -0
  150. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_streaming_config.py +0 -0
  151. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/unit/test_utils_extended.py +0 -0
  152. {lite_agent-0.14.0 → lite_agent-0.14.1}/tests/utils/mock_litellm.py +0 -0
  153. {lite_agent-0.14.0 → lite_agent-0.14.1}/uv.lock +0 -0
@@ -1,3 +1,11 @@
1
+ ## v0.14.1
2
+
3
+ [v0.14.0...v0.14.1](https://github.com/Jannchie/lite-agent/compare/v0.14.0...v0.14.1)
4
+
5
+ ### :adhesive_bandage: Fixes
6
+
7
+ - **context**: prevent circular import with newmessage - By [Jannchie](mailto:jannchie@gmail.com) in [80b3b68](https://github.com/Jannchie/lite-agent/commit/80b3b68)
8
+
1
9
  ## v0.14.0
2
10
 
3
11
  [v0.13.0...v0.14.0](https://github.com/Jannchie/lite-agent/compare/v0.13.0...v0.14.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lite-agent
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: A lightweight, extensible framework for building AI agent.
5
5
  Author-email: Jianqi Pan <jannchie@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lite-agent"
3
- version = "0.14.0"
3
+ version = "0.14.1"
4
4
  description = "A lightweight, extensible framework for building AI agent."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Jianqi Pan", email = "jannchie@gmail.com" }]
@@ -2,12 +2,15 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import TYPE_CHECKING, Generic, TypeVar
5
+ from typing import TYPE_CHECKING, Any, Generic, TypeVar
6
6
 
7
7
  from pydantic import BaseModel
8
8
 
9
9
  if TYPE_CHECKING:
10
10
  from lite_agent.types import NewMessage
11
+ else:
12
+ # Runtime: use Any to avoid circular import issues
13
+ NewMessage = Any
11
14
 
12
15
  T = TypeVar("T")
13
16
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes