reflex-agentkit 0.1.0__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.
- reflex_agentkit-0.1.0/.gitignore +229 -0
- reflex_agentkit-0.1.0/CHANGELOG.md +121 -0
- reflex_agentkit-0.1.0/LICENSE +21 -0
- reflex_agentkit-0.1.0/PKG-INFO +457 -0
- reflex_agentkit-0.1.0/README.md +418 -0
- reflex_agentkit-0.1.0/examples/_shared/README.md +15 -0
- reflex_agentkit-0.1.0/examples/langgraph_dojo/README.md +32 -0
- reflex_agentkit-0.1.0/examples/pydantic_ai_dojo/README.md +28 -0
- reflex_agentkit-0.1.0/pyproject.toml +136 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/__init__.py +68 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/adapters/__init__.py +1 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/adapters/_require.py +27 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/adapters/langgraph.py +277 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/adapters/pydantic_ai.py +93 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/__init__.py +21 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/approval.py +123 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/chat.py +42 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/composer.py +44 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/messages.py +104 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/shared_state.py +32 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/status.py +41 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/components/tools.py +97 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/__init__.py +56 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/_log.py +47 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/_patch.py +46 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/clients/__init__.py +14 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/clients/base.py +71 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/clients/http.py +147 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/clients/in_process.py +67 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/clients/sse.py +75 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/commands.py +589 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/conversation.py +93 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/errors.py +74 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/models.py +243 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/reducer.py +1078 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/run_input.py +122 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/core/tools.py +204 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/py.typed +0 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/state/__init__.py +5 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/state/_driver.py +520 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/state/_projection.py +120 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/state/_registry.py +46 -0
- reflex_agentkit-0.1.0/src/reflex_agentkit/state/agent_state.py +496 -0
- reflex_agentkit-0.1.0/tests/bench/conftest.py +5 -0
- reflex_agentkit-0.1.0/tests/bench/test_bench_flush.py +97 -0
- reflex_agentkit-0.1.0/tests/bench/test_bench_reducer.py +61 -0
- reflex_agentkit-0.1.0/tests/conftest.py +1 -0
- reflex_agentkit-0.1.0/tests/contract/test_agui_protocol.py +107 -0
- reflex_agentkit-0.1.0/tests/contract/test_langgraph_facts.py +165 -0
- reflex_agentkit-0.1.0/tests/contract/test_pydantic_ai_facts.py +134 -0
- reflex_agentkit-0.1.0/tests/contract/test_reflex_facts.py +82 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/client_tool_marked.jsonl +8 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/custom_ring.jsonl +8 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/finish_cancelled_outcome.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/finish_interrupt_generic_multi.jsonl +3 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/finish_interrupt_tool_call.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/finish_mixed_interrupts.jsonl +5 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/finish_success.jsonl +5 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/finish_with_pending_client_tool.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/hitl_approve.jsonl +12 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/hitl_approve_edited.jsonl +9 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/hitl_cancel_while_paused.jsonl +11 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/hitl_generic_queue.jsonl +8 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/hitl_reject.jsonl +11 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/ignored_families.jsonl +9 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/invalid_event.jsonl +5 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/lifecycle_happy.jsonl +3 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/messages_snapshot.jsonl +9 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/pydantic_ai_approval_recorded.jsonl +17 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/reasoning_encrypted.jsonl +9 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/reasoning_stream.jsonl +14 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/run_error.jsonl +3 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/stale_run_event.jsonl +5 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/state_delta_fails.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/state_snapshot_delta.jsonl +5 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/steps.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/text_chunks.jsonl +7 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/text_stream.jsonl +7 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/text_unclosed_at_finish.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/text_unknown_id.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/tool_call_args_too_large.jsonl +8 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/tool_call_chunks.jsonl +9 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/tool_call_happy_path.jsonl +9 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/tool_call_invalid_args.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/tool_call_unknown_id.jsonl +6 -0
- reflex_agentkit-0.1.0/tests/fixtures/events/unknown_type.jsonl +5 -0
- reflex_agentkit-0.1.0/tests/helpers/__init__.py +1 -0
- reflex_agentkit-0.1.0/tests/helpers/dojo.py +32 -0
- reflex_agentkit-0.1.0/tests/helpers/fake_chat_model.py +67 -0
- reflex_agentkit-0.1.0/tests/helpers/fake_clients.py +127 -0
- reflex_agentkit-0.1.0/tests/helpers/fake_server.py +238 -0
- reflex_agentkit-0.1.0/tests/helpers/fake_state_access.py +56 -0
- reflex_agentkit-0.1.0/tests/helpers/fixtures.py +327 -0
- reflex_agentkit-0.1.0/tests/helpers/invariants.py +121 -0
- reflex_agentkit-0.1.0/tests/helpers/reflex_harness.py +133 -0
- reflex_agentkit-0.1.0/tests/helpers/strategies.py +255 -0
- reflex_agentkit-0.1.0/tests/helpers/ui_state.py +24 -0
- reflex_agentkit-0.1.0/tests/integration/conftest.py +6 -0
- reflex_agentkit-0.1.0/tests/integration/test_concurrent_clients.py +58 -0
- reflex_agentkit-0.1.0/tests/integration/test_fake_server.py +65 -0
- reflex_agentkit-0.1.0/tests/integration/test_http_client.py +282 -0
- reflex_agentkit-0.1.0/tests/integration/test_langgraph_hitl.py +218 -0
- reflex_agentkit-0.1.0/tests/integration/test_multiworker_cancel.py +83 -0
- reflex_agentkit-0.1.0/tests/integration/test_pydantic_ai_hitl.py +119 -0
- reflex_agentkit-0.1.0/tests/integration/test_responsiveness.py +45 -0
- reflex_agentkit-0.1.0/tests/integration/test_secret_hygiene.py +51 -0
- reflex_agentkit-0.1.0/tests/integration/test_security_vectors.py +309 -0
- reflex_agentkit-0.1.0/tests/smoke/conftest.py +5 -0
- reflex_agentkit-0.1.0/tests/smoke/test_dojo_langgraph.py +164 -0
- reflex_agentkit-0.1.0/tests/smoke/test_dojo_pydantic_ai.py +103 -0
- reflex_agentkit-0.1.0/tests/smoke/test_quickstart.py +113 -0
- reflex_agentkit-0.1.0/tests/test_smoke.py +35 -0
- reflex_agentkit-0.1.0/tests/unit/adapters/test_langgraph_legacy.py +153 -0
- reflex_agentkit-0.1.0/tests/unit/adapters/test_langgraph_resume.py +154 -0
- reflex_agentkit-0.1.0/tests/unit/adapters/test_langgraph_unit.py +123 -0
- reflex_agentkit-0.1.0/tests/unit/adapters/test_pydantic_ai_unit.py +146 -0
- reflex_agentkit-0.1.0/tests/unit/adapters/test_require.py +40 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_approval.py +38 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_chat.py +66 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_composer.py +24 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_messages.py +37 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_shared_state.py +15 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_status.py +19 -0
- reflex_agentkit-0.1.0/tests/unit/components/test_tool_card.py +53 -0
- reflex_agentkit-0.1.0/tests/unit/core/clients/test_base.py +74 -0
- reflex_agentkit-0.1.0/tests/unit/core/clients/test_in_process.py +188 -0
- reflex_agentkit-0.1.0/tests/unit/core/clients/test_sse.py +83 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_commands.py +775 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_conversation.py +234 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_errors.py +84 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_fixtures.py +344 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_isolation.py +17 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_models.py +218 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_patch.py +116 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_reducer_finish.py +223 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_reducer_lifecycle.py +268 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_reducer_properties.py +97 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_reducer_state.py +579 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_reducer_text.py +182 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_reducer_tools.py +383 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_run_input.py +177 -0
- reflex_agentkit-0.1.0/tests/unit/core/test_tools.py +233 -0
- reflex_agentkit-0.1.0/tests/unit/examples/test_example_models.py +92 -0
- reflex_agentkit-0.1.0/tests/unit/state/conftest.py +5 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_agent_state_config.py +223 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_agent_state_handlers.py +483 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_driver_cancel.py +155 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_driver_client_tools.py +338 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_driver_streaming.py +357 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_projection.py +144 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_reflex_harness.py +69 -0
- reflex_agentkit-0.1.0/tests/unit/state/test_registry.py +68 -0
- reflex_agentkit-0.1.0/tests/unit/test_deps_latest_workflow.py +60 -0
- reflex_agentkit-0.1.0/tests/unit/test_public_api.py +97 -0
- reflex_agentkit-0.1.0/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,121 @@
|
|
|
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
|
+
## [0.1.0] - 2026-10-31
|
|
11
|
+
|
|
12
|
+
The first release. `0.1.0rc1` was published on 2026-10-31 as its release candidate.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Project skeleton: uv/hatchling packaging, lint, type and test configuration, and CI.
|
|
17
|
+
- `reflex_agentkit.core`: error hierarchy and `ErrorCode`, the `RunStatus` and
|
|
18
|
+
`ToolCallStatus` enums, the value types (`ChatMessage`, `ToolCall`, `PendingInterrupt`,
|
|
19
|
+
`CustomEventRecord`, `Diagnostic`) and the `ConversationState` aggregate, all with
|
|
20
|
+
version-tolerant pickling.
|
|
21
|
+
- `reflex_agentkit.core.reducer`: the pure, total `reduce(state, event)` over all 31
|
|
22
|
+
AG-UI 1.0 event types (lifecycle and `RUN_FINISHED` outcomes, text, tool calls,
|
|
23
|
+
shared state, messages snapshots, reasoning, custom events) and `parse_event`, with
|
|
24
|
+
diagnostics instead of exceptions.
|
|
25
|
+
- `reflex_agentkit.core.commands`: `begin_run`, `apply_approval` (with edited arguments),
|
|
26
|
+
`apply_rejection`, `apply_interrupt_response`, `apply_cancel`,
|
|
27
|
+
`apply_client_tool_result`, `all_answered`, `resume_entries` and `new_thread`.
|
|
28
|
+
- `client_tool` / `ClientTool`: client-side tools with a JSON Schema built from the type
|
|
29
|
+
hints, `to_agui_tool()` and `invoke()` (sync handlers in a worker thread, timeout,
|
|
30
|
+
failures returned as tool results).
|
|
31
|
+
- `RunInputBuilder`: builds `RunAgentInput` from the conversation (full history,
|
|
32
|
+
encrypted reasoning before its assistant message, edited tool arguments, shared state,
|
|
33
|
+
client tools, resume entries).
|
|
34
|
+
- Agent clients: the runtime-checkable `AGUIAgent` / `AgentClient` protocols and
|
|
35
|
+
`AgentSource`; `HttpAGUIClient` (AG-UI over HTTP + SSE, static or per-run headers that
|
|
36
|
+
are never logged, read timeout, typed `AgentHTTPError` / `AgentStreamError`, upstream
|
|
37
|
+
closed on cancel) and `InProcessAGUIClient` (runs an agent object in the event loop,
|
|
38
|
+
cancellation reaches the agent); an incremental SSE parser; invalid events are skipped
|
|
39
|
+
with a log record.
|
|
40
|
+
- `AgentState`, the Reflex state mixin: `ClassVar` configuration validated when the class
|
|
41
|
+
is defined (`ConfigurationError` names the attribute); public vars projected from a
|
|
42
|
+
backend-only conversation (system messages, interrupt answers and encrypted reasoning
|
|
43
|
+
never reach the browser); computed vars `is_running`, `awaiting_input`,
|
|
44
|
+
`pending_approvals` and `can_send`; handlers `send_message`, `approve_tool`,
|
|
45
|
+
`reject_tool`, `respond_to_interrupt`, `cancel_run`, `new_thread`, `set_shared_state`,
|
|
46
|
+
`patch_shared_state` and `retry_run`; hooks `create_client`, `prepare_run_input`,
|
|
47
|
+
`on_custom_event` and `on_run_end`; `typed_shared_state()` with `shared_state_model`
|
|
48
|
+
validation of app writes and agent updates.
|
|
49
|
+
- The run driver behind `AgentState`: streaming in a background task with batched pushes
|
|
50
|
+
(default 50 ms), cancellation within 1 s in the same worker or from another worker over
|
|
51
|
+
a shared state manager, client-tool rounds with follow-up runs, local approvals and a
|
|
52
|
+
loop limit, and silent stop when the conversation was replaced.
|
|
53
|
+
- `reflex_agentkit.adapters.pydantic_ai.PydanticAIAgent`: runs a PydanticAI agent in
|
|
54
|
+
process through its AG-UI adapter; approval-required tools pause as AG-UI interrupts
|
|
55
|
+
without declaring `DeferredToolRequests`; `deps` or a per-run `deps_factory`; extra
|
|
56
|
+
`run_stream` arguments are forwarded. Importing an adapter without its extra raises
|
|
57
|
+
`AdapterNotInstalledError` with the install command.
|
|
58
|
+
- `scripts/record_fixture.py` records event fixtures from real adapter runs.
|
|
59
|
+
- `reflex_agentkit.components`: `agent_chat` and its parts, built from Reflex built-ins
|
|
60
|
+
only. `message_list` renders Markdown with raw HTML off, reasoning and a streaming
|
|
61
|
+
indicator; `tool_call_card` shows a status badge and collapsible arguments and result;
|
|
62
|
+
`composer` sends on Enter; `run_status_bar` has a cancel button; `approval_dialog`
|
|
63
|
+
offers approve, edit-arguments and reject, or a form for generic interrupts with their
|
|
64
|
+
queue position; `shared_state_panel` shows the JSON and a stale marker. `ToolRenderer`
|
|
65
|
+
and `InterruptRenderer` replace the default card body or form. Every control has an
|
|
66
|
+
accessible label.
|
|
67
|
+
- `agent_chat` is re-exported lazily from `reflex_agentkit`, and `reduce` from
|
|
68
|
+
`reflex_agentkit.core`, as in API §3.
|
|
69
|
+
- `examples/quickstart/`: the 23-line quickstart, a uv workspace member, with an offline
|
|
70
|
+
CI smoke job (`reflex compile --dry` with PydanticAI's `TestModel`).
|
|
71
|
+
- `examples/_shared/` (`examples-shared`): one model selection for every example —
|
|
72
|
+
Claude by default, `AGENTKIT_MODEL=ollama:<model>` for a local Ollama model, and
|
|
73
|
+
`AGENTKIT_MODEL=test` for an offline model — for PydanticAI and for LangChain chat
|
|
74
|
+
models.
|
|
75
|
+
- `examples/pydantic_ai_dojo/` and `examples/langgraph_dojo/`: the five AG-UI Dojo demos
|
|
76
|
+
(agentic chat, backend tool rendering, human in the loop, shared state, tool-based
|
|
77
|
+
generative UI) as multi-page Reflex apps, with offline smoke tests and CI compile steps.
|
|
78
|
+
- Automatic releases: merging a new publishable `__version__` into `main` runs the tests,
|
|
79
|
+
publishes to PyPI through trusted publishing and creates the `v<version>` tag and GitHub
|
|
80
|
+
Release (`scripts/release_version.py` decides). Pre-releases go to PyPI too.
|
|
81
|
+
- `reflex_agentkit.adapters.langgraph`: `LangGraphAGUIAgent` runs a compiled LangGraph
|
|
82
|
+
graph through the official ag-ui-langgraph integration with standard interrupts. It
|
|
83
|
+
requires a checkpointer, serves every session from one instance, keeps the graph's
|
|
84
|
+
messages out of `shared_state`, and resumes several interrupts with LangGraph's native
|
|
85
|
+
map. `request_tool_approval` and `ApprovalDecision` put tool approvals in the same
|
|
86
|
+
dialog as PydanticAI's. `legacy_interrupts=True` maps the older `on_interrupt` event.
|
|
87
|
+
- A draft upstream issue for ag-ui-langgraph's unconditional `fastapi` import
|
|
88
|
+
(`docs/integrations/upstream-issues.md`).
|
|
89
|
+
- JSON Lines event fixtures and a replay runner that checks the state invariants after
|
|
90
|
+
every step.
|
|
91
|
+
- A documentation site (MkDocs Material, `mkdocs.yml` and `docs/`): getting started,
|
|
92
|
+
concepts, guides (your own UI, human in the loop, sidecar deployment, Ollama), the API
|
|
93
|
+
reference, the security model and troubleshooting. CI builds it with `--strict`.
|
|
94
|
+
- Benchmarks under the `bench` marker: the reducer (NFR-01) and the flush lag with 20
|
|
95
|
+
concurrent clients (NFR-04).
|
|
96
|
+
- A weekly workflow that tests against the newest allowed dependency versions and opens
|
|
97
|
+
an issue when they fail.
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
|
|
101
|
+
- A tool call that a model sends in one chunk (Ollama through LangGraph) now shows its
|
|
102
|
+
arguments in the approval dialog: a messages snapshot fills in the arguments of a call
|
|
103
|
+
that streamed none. Found in the `0.1.0rc1` walkthrough.
|
|
104
|
+
- A `TOOL_CALL_RESULT` no longer moves a rejected or failed tool call back to `done`.
|
|
105
|
+
- A `MESSAGES_SNAPSHOT` now fills in the result of a tool call it keeps, so LangGraph tool
|
|
106
|
+
calls end as `done` after their tool node runs.
|
|
107
|
+
|
|
108
|
+
### Security
|
|
109
|
+
|
|
110
|
+
- Reducer diagnostics are logged above DEBUG by code and event type only, since a failed
|
|
111
|
+
patch can quote shared-state values.
|
|
112
|
+
- App-side shared-state patches are applied op by op under the 64 KiB cap and limited to
|
|
113
|
+
256 operations, so `copy` ops cannot grow the document exponentially.
|
|
114
|
+
- `AgentState`'s hooks (`create_client`, `prepare_run_input`, `on_custom_event`,
|
|
115
|
+
`on_run_end`) and `typed_shared_state`, and every override of them, are no longer
|
|
116
|
+
registered as Reflex event handlers, so the browser cannot call them.
|
|
117
|
+
- The latest-dependencies workflow runs the newest, unvetted versions without a token or
|
|
118
|
+
stored git credentials; a separate job reports failures.
|
|
119
|
+
|
|
120
|
+
[Unreleased]: https://github.com/ecrespo/reflex-agentkit/compare/v0.1.0...HEAD
|
|
121
|
+
[0.1.0]: https://github.com/ecrespo/reflex-agentkit/releases/tag/v0.1.0
|
|
@@ -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.
|