reflex-agentkit 0.1.0rc1__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 (155) hide show
  1. reflex_agentkit-0.1.0rc1/.gitignore +229 -0
  2. reflex_agentkit-0.1.0rc1/CHANGELOG.md +115 -0
  3. reflex_agentkit-0.1.0rc1/LICENSE +21 -0
  4. reflex_agentkit-0.1.0rc1/PKG-INFO +457 -0
  5. reflex_agentkit-0.1.0rc1/README.md +418 -0
  6. reflex_agentkit-0.1.0rc1/examples/_shared/README.md +15 -0
  7. reflex_agentkit-0.1.0rc1/examples/langgraph_dojo/README.md +32 -0
  8. reflex_agentkit-0.1.0rc1/examples/pydantic_ai_dojo/README.md +28 -0
  9. reflex_agentkit-0.1.0rc1/pyproject.toml +136 -0
  10. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/__init__.py +68 -0
  11. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/adapters/__init__.py +1 -0
  12. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/adapters/_require.py +27 -0
  13. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/adapters/langgraph.py +277 -0
  14. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/adapters/pydantic_ai.py +93 -0
  15. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/__init__.py +21 -0
  16. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/approval.py +123 -0
  17. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/chat.py +42 -0
  18. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/composer.py +44 -0
  19. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/messages.py +104 -0
  20. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/shared_state.py +32 -0
  21. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/status.py +41 -0
  22. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/components/tools.py +97 -0
  23. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/__init__.py +56 -0
  24. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/_log.py +47 -0
  25. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/_patch.py +46 -0
  26. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/clients/__init__.py +14 -0
  27. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/clients/base.py +71 -0
  28. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/clients/http.py +147 -0
  29. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/clients/in_process.py +67 -0
  30. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/clients/sse.py +75 -0
  31. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/commands.py +589 -0
  32. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/conversation.py +93 -0
  33. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/errors.py +74 -0
  34. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/models.py +243 -0
  35. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/reducer.py +1065 -0
  36. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/run_input.py +122 -0
  37. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/core/tools.py +204 -0
  38. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/py.typed +0 -0
  39. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/state/__init__.py +5 -0
  40. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/state/_driver.py +520 -0
  41. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/state/_projection.py +120 -0
  42. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/state/_registry.py +46 -0
  43. reflex_agentkit-0.1.0rc1/src/reflex_agentkit/state/agent_state.py +496 -0
  44. reflex_agentkit-0.1.0rc1/tests/bench/conftest.py +5 -0
  45. reflex_agentkit-0.1.0rc1/tests/bench/test_bench_flush.py +97 -0
  46. reflex_agentkit-0.1.0rc1/tests/bench/test_bench_reducer.py +61 -0
  47. reflex_agentkit-0.1.0rc1/tests/conftest.py +1 -0
  48. reflex_agentkit-0.1.0rc1/tests/contract/test_agui_protocol.py +107 -0
  49. reflex_agentkit-0.1.0rc1/tests/contract/test_langgraph_facts.py +165 -0
  50. reflex_agentkit-0.1.0rc1/tests/contract/test_pydantic_ai_facts.py +134 -0
  51. reflex_agentkit-0.1.0rc1/tests/contract/test_reflex_facts.py +82 -0
  52. reflex_agentkit-0.1.0rc1/tests/fixtures/events/client_tool_marked.jsonl +8 -0
  53. reflex_agentkit-0.1.0rc1/tests/fixtures/events/custom_ring.jsonl +8 -0
  54. reflex_agentkit-0.1.0rc1/tests/fixtures/events/finish_cancelled_outcome.jsonl +6 -0
  55. reflex_agentkit-0.1.0rc1/tests/fixtures/events/finish_interrupt_generic_multi.jsonl +3 -0
  56. reflex_agentkit-0.1.0rc1/tests/fixtures/events/finish_interrupt_tool_call.jsonl +6 -0
  57. reflex_agentkit-0.1.0rc1/tests/fixtures/events/finish_mixed_interrupts.jsonl +5 -0
  58. reflex_agentkit-0.1.0rc1/tests/fixtures/events/finish_success.jsonl +5 -0
  59. reflex_agentkit-0.1.0rc1/tests/fixtures/events/finish_with_pending_client_tool.jsonl +6 -0
  60. reflex_agentkit-0.1.0rc1/tests/fixtures/events/hitl_approve.jsonl +12 -0
  61. reflex_agentkit-0.1.0rc1/tests/fixtures/events/hitl_approve_edited.jsonl +9 -0
  62. reflex_agentkit-0.1.0rc1/tests/fixtures/events/hitl_cancel_while_paused.jsonl +11 -0
  63. reflex_agentkit-0.1.0rc1/tests/fixtures/events/hitl_generic_queue.jsonl +8 -0
  64. reflex_agentkit-0.1.0rc1/tests/fixtures/events/hitl_reject.jsonl +11 -0
  65. reflex_agentkit-0.1.0rc1/tests/fixtures/events/ignored_families.jsonl +9 -0
  66. reflex_agentkit-0.1.0rc1/tests/fixtures/events/invalid_event.jsonl +5 -0
  67. reflex_agentkit-0.1.0rc1/tests/fixtures/events/lifecycle_happy.jsonl +3 -0
  68. reflex_agentkit-0.1.0rc1/tests/fixtures/events/messages_snapshot.jsonl +9 -0
  69. reflex_agentkit-0.1.0rc1/tests/fixtures/events/pydantic_ai_approval_recorded.jsonl +17 -0
  70. reflex_agentkit-0.1.0rc1/tests/fixtures/events/reasoning_encrypted.jsonl +9 -0
  71. reflex_agentkit-0.1.0rc1/tests/fixtures/events/reasoning_stream.jsonl +14 -0
  72. reflex_agentkit-0.1.0rc1/tests/fixtures/events/run_error.jsonl +3 -0
  73. reflex_agentkit-0.1.0rc1/tests/fixtures/events/stale_run_event.jsonl +5 -0
  74. reflex_agentkit-0.1.0rc1/tests/fixtures/events/state_delta_fails.jsonl +6 -0
  75. reflex_agentkit-0.1.0rc1/tests/fixtures/events/state_snapshot_delta.jsonl +5 -0
  76. reflex_agentkit-0.1.0rc1/tests/fixtures/events/steps.jsonl +6 -0
  77. reflex_agentkit-0.1.0rc1/tests/fixtures/events/text_chunks.jsonl +7 -0
  78. reflex_agentkit-0.1.0rc1/tests/fixtures/events/text_stream.jsonl +7 -0
  79. reflex_agentkit-0.1.0rc1/tests/fixtures/events/text_unclosed_at_finish.jsonl +6 -0
  80. reflex_agentkit-0.1.0rc1/tests/fixtures/events/text_unknown_id.jsonl +6 -0
  81. reflex_agentkit-0.1.0rc1/tests/fixtures/events/tool_call_args_too_large.jsonl +8 -0
  82. reflex_agentkit-0.1.0rc1/tests/fixtures/events/tool_call_chunks.jsonl +9 -0
  83. reflex_agentkit-0.1.0rc1/tests/fixtures/events/tool_call_happy_path.jsonl +9 -0
  84. reflex_agentkit-0.1.0rc1/tests/fixtures/events/tool_call_invalid_args.jsonl +6 -0
  85. reflex_agentkit-0.1.0rc1/tests/fixtures/events/tool_call_unknown_id.jsonl +6 -0
  86. reflex_agentkit-0.1.0rc1/tests/fixtures/events/unknown_type.jsonl +5 -0
  87. reflex_agentkit-0.1.0rc1/tests/helpers/__init__.py +1 -0
  88. reflex_agentkit-0.1.0rc1/tests/helpers/dojo.py +32 -0
  89. reflex_agentkit-0.1.0rc1/tests/helpers/fake_chat_model.py +67 -0
  90. reflex_agentkit-0.1.0rc1/tests/helpers/fake_clients.py +127 -0
  91. reflex_agentkit-0.1.0rc1/tests/helpers/fake_server.py +238 -0
  92. reflex_agentkit-0.1.0rc1/tests/helpers/fake_state_access.py +56 -0
  93. reflex_agentkit-0.1.0rc1/tests/helpers/fixtures.py +327 -0
  94. reflex_agentkit-0.1.0rc1/tests/helpers/invariants.py +121 -0
  95. reflex_agentkit-0.1.0rc1/tests/helpers/reflex_harness.py +133 -0
  96. reflex_agentkit-0.1.0rc1/tests/helpers/strategies.py +255 -0
  97. reflex_agentkit-0.1.0rc1/tests/helpers/ui_state.py +24 -0
  98. reflex_agentkit-0.1.0rc1/tests/integration/conftest.py +6 -0
  99. reflex_agentkit-0.1.0rc1/tests/integration/test_concurrent_clients.py +58 -0
  100. reflex_agentkit-0.1.0rc1/tests/integration/test_fake_server.py +65 -0
  101. reflex_agentkit-0.1.0rc1/tests/integration/test_http_client.py +282 -0
  102. reflex_agentkit-0.1.0rc1/tests/integration/test_langgraph_hitl.py +218 -0
  103. reflex_agentkit-0.1.0rc1/tests/integration/test_multiworker_cancel.py +83 -0
  104. reflex_agentkit-0.1.0rc1/tests/integration/test_pydantic_ai_hitl.py +119 -0
  105. reflex_agentkit-0.1.0rc1/tests/integration/test_responsiveness.py +45 -0
  106. reflex_agentkit-0.1.0rc1/tests/integration/test_secret_hygiene.py +51 -0
  107. reflex_agentkit-0.1.0rc1/tests/integration/test_security_vectors.py +309 -0
  108. reflex_agentkit-0.1.0rc1/tests/smoke/conftest.py +5 -0
  109. reflex_agentkit-0.1.0rc1/tests/smoke/test_dojo_langgraph.py +164 -0
  110. reflex_agentkit-0.1.0rc1/tests/smoke/test_dojo_pydantic_ai.py +103 -0
  111. reflex_agentkit-0.1.0rc1/tests/smoke/test_quickstart.py +113 -0
  112. reflex_agentkit-0.1.0rc1/tests/test_smoke.py +35 -0
  113. reflex_agentkit-0.1.0rc1/tests/unit/adapters/test_langgraph_legacy.py +153 -0
  114. reflex_agentkit-0.1.0rc1/tests/unit/adapters/test_langgraph_resume.py +154 -0
  115. reflex_agentkit-0.1.0rc1/tests/unit/adapters/test_langgraph_unit.py +123 -0
  116. reflex_agentkit-0.1.0rc1/tests/unit/adapters/test_pydantic_ai_unit.py +146 -0
  117. reflex_agentkit-0.1.0rc1/tests/unit/adapters/test_require.py +40 -0
  118. reflex_agentkit-0.1.0rc1/tests/unit/components/test_approval.py +38 -0
  119. reflex_agentkit-0.1.0rc1/tests/unit/components/test_chat.py +66 -0
  120. reflex_agentkit-0.1.0rc1/tests/unit/components/test_composer.py +24 -0
  121. reflex_agentkit-0.1.0rc1/tests/unit/components/test_messages.py +37 -0
  122. reflex_agentkit-0.1.0rc1/tests/unit/components/test_shared_state.py +15 -0
  123. reflex_agentkit-0.1.0rc1/tests/unit/components/test_status.py +19 -0
  124. reflex_agentkit-0.1.0rc1/tests/unit/components/test_tool_card.py +53 -0
  125. reflex_agentkit-0.1.0rc1/tests/unit/core/clients/test_base.py +74 -0
  126. reflex_agentkit-0.1.0rc1/tests/unit/core/clients/test_in_process.py +188 -0
  127. reflex_agentkit-0.1.0rc1/tests/unit/core/clients/test_sse.py +83 -0
  128. reflex_agentkit-0.1.0rc1/tests/unit/core/test_commands.py +775 -0
  129. reflex_agentkit-0.1.0rc1/tests/unit/core/test_conversation.py +234 -0
  130. reflex_agentkit-0.1.0rc1/tests/unit/core/test_errors.py +84 -0
  131. reflex_agentkit-0.1.0rc1/tests/unit/core/test_fixtures.py +344 -0
  132. reflex_agentkit-0.1.0rc1/tests/unit/core/test_isolation.py +17 -0
  133. reflex_agentkit-0.1.0rc1/tests/unit/core/test_models.py +218 -0
  134. reflex_agentkit-0.1.0rc1/tests/unit/core/test_patch.py +116 -0
  135. reflex_agentkit-0.1.0rc1/tests/unit/core/test_reducer_finish.py +223 -0
  136. reflex_agentkit-0.1.0rc1/tests/unit/core/test_reducer_lifecycle.py +268 -0
  137. reflex_agentkit-0.1.0rc1/tests/unit/core/test_reducer_properties.py +97 -0
  138. reflex_agentkit-0.1.0rc1/tests/unit/core/test_reducer_state.py +543 -0
  139. reflex_agentkit-0.1.0rc1/tests/unit/core/test_reducer_text.py +182 -0
  140. reflex_agentkit-0.1.0rc1/tests/unit/core/test_reducer_tools.py +383 -0
  141. reflex_agentkit-0.1.0rc1/tests/unit/core/test_run_input.py +177 -0
  142. reflex_agentkit-0.1.0rc1/tests/unit/core/test_tools.py +233 -0
  143. reflex_agentkit-0.1.0rc1/tests/unit/examples/test_example_models.py +92 -0
  144. reflex_agentkit-0.1.0rc1/tests/unit/state/conftest.py +5 -0
  145. reflex_agentkit-0.1.0rc1/tests/unit/state/test_agent_state_config.py +223 -0
  146. reflex_agentkit-0.1.0rc1/tests/unit/state/test_agent_state_handlers.py +483 -0
  147. reflex_agentkit-0.1.0rc1/tests/unit/state/test_driver_cancel.py +155 -0
  148. reflex_agentkit-0.1.0rc1/tests/unit/state/test_driver_client_tools.py +338 -0
  149. reflex_agentkit-0.1.0rc1/tests/unit/state/test_driver_streaming.py +357 -0
  150. reflex_agentkit-0.1.0rc1/tests/unit/state/test_projection.py +144 -0
  151. reflex_agentkit-0.1.0rc1/tests/unit/state/test_reflex_harness.py +69 -0
  152. reflex_agentkit-0.1.0rc1/tests/unit/state/test_registry.py +68 -0
  153. reflex_agentkit-0.1.0rc1/tests/unit/test_deps_latest_workflow.py +60 -0
  154. reflex_agentkit-0.1.0rc1/tests/unit/test_public_api.py +97 -0
  155. reflex_agentkit-0.1.0rc1/tests/unit/test_release.py +131 -0
@@ -0,0 +1,229 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ # Pipfile.lock
97
+
98
+ # uv
99
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # uv.lock
103
+
104
+ # poetry
105
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
106
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
107
+ # commonly ignored for libraries.
108
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
109
+ # poetry.lock
110
+ # poetry.toml
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
115
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
116
+ # pdm.lock
117
+ # pdm.toml
118
+ .pdm-python
119
+ .pdm-build/
120
+
121
+ # pixi
122
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
123
+ # pixi.lock
124
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
125
+ # in the .venv directory. It is recommended not to include this directory in version control.
126
+ .pixi/*
127
+ !.pixi/config.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule*
134
+ celerybeat.pid
135
+
136
+ # Redis
137
+ *.rdb
138
+ *.aof
139
+ *.pid
140
+
141
+ # RabbitMQ
142
+ mnesia/
143
+ rabbitmq/
144
+ rabbitmq-data/
145
+
146
+ # ActiveMQ
147
+ activemq-data/
148
+
149
+ # SageMath parsed files
150
+ *.sage.py
151
+
152
+ # Environments
153
+ .env
154
+ .envrc
155
+ .venv
156
+ env/
157
+ venv/
158
+ ENV/
159
+ env.bak/
160
+ venv.bak/
161
+
162
+ # Spyder project settings
163
+ .spyderproject
164
+ .spyproject
165
+
166
+ # Rope project settings
167
+ .ropeproject
168
+
169
+ # mkdocs/Zensical documentation
170
+ /site
171
+
172
+ # mypy
173
+ .mypy_cache/
174
+ .dmypy.json
175
+ dmypy.json
176
+
177
+ # Pyre type checker
178
+ .pyre/
179
+
180
+ # pytype static type analyzer
181
+ .pytype/
182
+
183
+ # Cython debug symbols
184
+ cython_debug/
185
+
186
+ # PyCharm
187
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
188
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
189
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
190
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
191
+ # .idea/
192
+
193
+ # Abstra
194
+ # Abstra is an AI-powered process automation framework.
195
+ # Ignore directories containing user credentials, local state, and settings.
196
+ # Learn more at https://abstra.io/docs
197
+ .abstra/
198
+
199
+ # Visual Studio Code
200
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
201
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
202
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
203
+ # could uncomment the following to ignore the entire vscode folder
204
+ # .vscode/
205
+ # Temporary file for partial code execution
206
+ tempCodeRunnerFile.py
207
+
208
+ # Ruff stuff:
209
+ .ruff_cache/
210
+
211
+ # PyPI configuration file
212
+ .pypirc
213
+
214
+ # Marimo
215
+ marimo/_static/
216
+ marimo/_lsp/
217
+ __marimo__/
218
+
219
+ # Streamlit
220
+ .streamlit/secrets.toml
221
+
222
+ # JetBrains
223
+ .idea/
224
+
225
+ # reflex-agentkit
226
+ .venv/
227
+ .web/
228
+ dist/
229
+ .coverage
@@ -0,0 +1,115 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - Project skeleton: uv/hatchling packaging, lint, type and test configuration, and CI.
13
+ - `reflex_agentkit.core`: error hierarchy and `ErrorCode`, the `RunStatus` and
14
+ `ToolCallStatus` enums, the value types (`ChatMessage`, `ToolCall`, `PendingInterrupt`,
15
+ `CustomEventRecord`, `Diagnostic`) and the `ConversationState` aggregate, all with
16
+ version-tolerant pickling.
17
+ - `reflex_agentkit.core.reducer`: the pure, total `reduce(state, event)` over all 31
18
+ AG-UI 1.0 event types (lifecycle and `RUN_FINISHED` outcomes, text, tool calls,
19
+ shared state, messages snapshots, reasoning, custom events) and `parse_event`, with
20
+ diagnostics instead of exceptions.
21
+ - `reflex_agentkit.core.commands`: `begin_run`, `apply_approval` (with edited arguments),
22
+ `apply_rejection`, `apply_interrupt_response`, `apply_cancel`,
23
+ `apply_client_tool_result`, `all_answered`, `resume_entries` and `new_thread`.
24
+ - `client_tool` / `ClientTool`: client-side tools with a JSON Schema built from the type
25
+ hints, `to_agui_tool()` and `invoke()` (sync handlers in a worker thread, timeout,
26
+ failures returned as tool results).
27
+ - `RunInputBuilder`: builds `RunAgentInput` from the conversation (full history,
28
+ encrypted reasoning before its assistant message, edited tool arguments, shared state,
29
+ client tools, resume entries).
30
+ - Agent clients: the runtime-checkable `AGUIAgent` / `AgentClient` protocols and
31
+ `AgentSource`; `HttpAGUIClient` (AG-UI over HTTP + SSE, static or per-run headers that
32
+ are never logged, read timeout, typed `AgentHTTPError` / `AgentStreamError`, upstream
33
+ closed on cancel) and `InProcessAGUIClient` (runs an agent object in the event loop,
34
+ cancellation reaches the agent); an incremental SSE parser; invalid events are skipped
35
+ with a log record.
36
+ - `AgentState`, the Reflex state mixin: `ClassVar` configuration validated when the class
37
+ is defined (`ConfigurationError` names the attribute); public vars projected from a
38
+ backend-only conversation (system messages, interrupt answers and encrypted reasoning
39
+ never reach the browser); computed vars `is_running`, `awaiting_input`,
40
+ `pending_approvals` and `can_send`; handlers `send_message`, `approve_tool`,
41
+ `reject_tool`, `respond_to_interrupt`, `cancel_run`, `new_thread`, `set_shared_state`,
42
+ `patch_shared_state` and `retry_run`; hooks `create_client`, `prepare_run_input`,
43
+ `on_custom_event` and `on_run_end`; `typed_shared_state()` with `shared_state_model`
44
+ validation of app writes and agent updates.
45
+ - The run driver behind `AgentState`: streaming in a background task with batched pushes
46
+ (default 50 ms), cancellation within 1 s in the same worker or from another worker over
47
+ a shared state manager, client-tool rounds with follow-up runs, local approvals and a
48
+ loop limit, and silent stop when the conversation was replaced.
49
+ - `reflex_agentkit.adapters.pydantic_ai.PydanticAIAgent`: runs a PydanticAI agent in
50
+ process through its AG-UI adapter; approval-required tools pause as AG-UI interrupts
51
+ without declaring `DeferredToolRequests`; `deps` or a per-run `deps_factory`; extra
52
+ `run_stream` arguments are forwarded. Importing an adapter without its extra raises
53
+ `AdapterNotInstalledError` with the install command.
54
+ - `scripts/record_fixture.py` records event fixtures from real adapter runs.
55
+ - `reflex_agentkit.components`: `agent_chat` and its parts, built from Reflex built-ins
56
+ only. `message_list` renders Markdown with raw HTML off, reasoning and a streaming
57
+ indicator; `tool_call_card` shows a status badge and collapsible arguments and result;
58
+ `composer` sends on Enter; `run_status_bar` has a cancel button; `approval_dialog`
59
+ offers approve, edit-arguments and reject, or a form for generic interrupts with their
60
+ queue position; `shared_state_panel` shows the JSON and a stale marker. `ToolRenderer`
61
+ and `InterruptRenderer` replace the default card body or form. Every control has an
62
+ accessible label.
63
+ - `agent_chat` is re-exported lazily from `reflex_agentkit`, and `reduce` from
64
+ `reflex_agentkit.core`, as in API §3.
65
+ - `examples/quickstart/`: the 23-line quickstart, a uv workspace member, with an offline
66
+ CI smoke job (`reflex compile --dry` with PydanticAI's `TestModel`).
67
+ - `examples/_shared/` (`examples-shared`): one model selection for every example —
68
+ Claude by default, `AGENTKIT_MODEL=ollama:<model>` for a local Ollama model, and
69
+ `AGENTKIT_MODEL=test` for an offline model — for PydanticAI and for LangChain chat
70
+ models.
71
+ - `examples/pydantic_ai_dojo/` and `examples/langgraph_dojo/`: the five AG-UI Dojo demos
72
+ (agentic chat, backend tool rendering, human in the loop, shared state, tool-based
73
+ generative UI) as multi-page Reflex apps, with offline smoke tests and CI compile steps.
74
+ - Automatic releases: merging a new publishable `__version__` into `main` runs the tests,
75
+ publishes to PyPI through trusted publishing and creates the `v<version>` tag and GitHub
76
+ Release (`scripts/release_version.py` decides). Pre-releases go to PyPI too.
77
+ - `reflex_agentkit.adapters.langgraph`: `LangGraphAGUIAgent` runs a compiled LangGraph
78
+ graph through the official ag-ui-langgraph integration with standard interrupts. It
79
+ requires a checkpointer, serves every session from one instance, keeps the graph's
80
+ messages out of `shared_state`, and resumes several interrupts with LangGraph's native
81
+ map. `request_tool_approval` and `ApprovalDecision` put tool approvals in the same
82
+ dialog as PydanticAI's. `legacy_interrupts=True` maps the older `on_interrupt` event.
83
+ - A draft upstream issue for ag-ui-langgraph's unconditional `fastapi` import
84
+ (`docs/integrations/upstream-issues.md`).
85
+ - JSON Lines event fixtures and a replay runner that checks the state invariants after
86
+ every step.
87
+ - A documentation site (MkDocs Material, `mkdocs.yml` and `docs/`): getting started,
88
+ concepts, guides (your own UI, human in the loop, sidecar deployment, Ollama), the API
89
+ reference, the security model and troubleshooting. CI builds it with `--strict`.
90
+ - Benchmarks under the `bench` marker: the reducer (NFR-01) and the flush lag with 20
91
+ concurrent clients (NFR-04).
92
+ - A weekly workflow that tests against the newest allowed dependency versions and opens
93
+ an issue when they fail.
94
+
95
+ ### Changed
96
+
97
+ - The package version is `0.1.0rc1`, the release candidate for `0.1.0`.
98
+
99
+ ### Fixed
100
+
101
+ - A `TOOL_CALL_RESULT` no longer moves a rejected or failed tool call back to `done`.
102
+ - A `MESSAGES_SNAPSHOT` now fills in the result of a tool call it keeps, so LangGraph tool
103
+ calls end as `done` after their tool node runs.
104
+
105
+ ### Security
106
+
107
+ - Reducer diagnostics are logged above DEBUG by code and event type only, since a failed
108
+ patch can quote shared-state values.
109
+ - App-side shared-state patches are applied op by op under the 64 KiB cap and limited to
110
+ 256 operations, so `copy` ops cannot grow the document exponentially.
111
+ - `AgentState`'s hooks (`create_client`, `prepare_run_input`, `on_custom_event`,
112
+ `on_run_end`) and `typed_shared_state`, and every override of them, are no longer
113
+ registered as Reflex event handlers, so the browser cannot call them.
114
+ - The latest-dependencies workflow runs the newest, unvetted versions without a token or
115
+ stored git credentials; a separate job reports failures.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ernesto Crespo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.