hebbrix 2.4.1__tar.gz → 2.6.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.
- hebbrix-2.6.0/CHANGELOG.md +113 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/MANIFEST.in +3 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/PKG-INFO +72 -5
- hebbrix-2.4.1/hebbrix.egg-info/PKG-INFO → hebbrix-2.6.0/README.md +47 -43
- hebbrix-2.6.0/contracts/openapi-routes.json +1121 -0
- hebbrix-2.6.0/docs/native-experience-operations.md +143 -0
- hebbrix-2.6.0/examples/native_reflection_worker.py +6 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/__init__.py +1 -1
- hebbrix-2.6.0/hebbrix/_advice.py +145 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/client.py +4 -1
- hebbrix-2.6.0/hebbrix/execution.py +78 -0
- hebbrix-2.6.0/hebbrix/experience.py +235 -0
- hebbrix-2.6.0/hebbrix/openai_reflection.py +218 -0
- hebbrix-2.6.0/hebbrix/reflection_worker.py +95 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/resources.py +301 -3
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/sync_client.py +276 -1
- hebbrix-2.6.0/hebbrix/workflow.py +456 -0
- hebbrix-2.6.0/hebbrix.egg-info/PKG-INFO +236 -0
- hebbrix-2.6.0/hebbrix.egg-info/SOURCES.txt +44 -0
- hebbrix-2.6.0/hebbrix.egg-info/entry_points.txt +2 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix.egg-info/requires.txt +1 -1
- {hebbrix-2.4.1 → hebbrix-2.6.0}/pyproject.toml +8 -5
- hebbrix-2.6.0/tests/test_advisor_integrity.py +254 -0
- hebbrix-2.6.0/tests/test_evidence_loop_resource.py +181 -0
- hebbrix-2.6.0/tests/test_evidence_safety_boundary.py +42 -0
- hebbrix-2.6.0/tests/test_execution_permission.py +137 -0
- hebbrix-2.6.0/tests/test_experience_request.py +184 -0
- hebbrix-2.6.0/tests/test_experience_workflow.py +244 -0
- hebbrix-2.6.0/tests/test_followup_helpers.py +46 -0
- hebbrix-2.6.0/tests/test_openai_reflection.py +145 -0
- hebbrix-2.6.0/tests/test_outcome_advice_resource.py +50 -0
- hebbrix-2.6.0/tests/test_reflection_worker_cli.py +64 -0
- hebbrix-2.6.0/tests/test_release_version.py +22 -0
- hebbrix-2.6.0/tests/test_workflow_route_contract.py +47 -0
- hebbrix-2.4.1/CHANGELOG.md +0 -55
- hebbrix-2.4.1/README.md +0 -127
- hebbrix-2.4.1/hebbrix.egg-info/SOURCES.txt +0 -22
- {hebbrix-2.4.1 → hebbrix-2.6.0}/LICENSE +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/chat.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/exceptions.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix/models.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix.egg-info/dependency_links.txt +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/hebbrix.egg-info/top_level.txt +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/setup.cfg +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/tests/test_advanced_resources.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/tests/test_memories_resource.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/tests/test_openapi_parity.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/tests/test_procedural_resource.py +0 -0
- {hebbrix-2.4.1 → hebbrix-2.6.0}/tests/test_sync_client.py +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.6.0 — 2026-10-04 (stable SDK)
|
|
4
|
+
|
|
5
|
+
- Bound runtime HTTPX to `>=0.25.0,<1`, excluding incompatible 1.x prereleases.
|
|
6
|
+
- Add sync/async atomic setup options for explicit policy configuration and built-in success-minus-cost metrics.
|
|
7
|
+
- Keep advisor input/probability validation, scope and protected evidence transports unchanged.
|
|
8
|
+
- Backend v3 learning methods remain explicit experimental opt-ins. Stable packaging does not establish performance, calibrated confidence or execution permission.
|
|
9
|
+
|
|
10
|
+
## 2.6.0rc5 — 2026-10-03 (prerelease)
|
|
11
|
+
|
|
12
|
+
- Snapshot advisor context/candidates and reject scope overrides or mutable identities.
|
|
13
|
+
- Validate the complete finite logging distribution against original candidates before writing.
|
|
14
|
+
- Invoke the callback once; preserve caller probabilities without normalization or retries.
|
|
15
|
+
- Caller probabilities are not authenticated randomization; no execution authority or measured learning-performance gain is claimed.
|
|
16
|
+
|
|
17
|
+
## 2.6.0rc4 — 2026-10-02 (prerelease)
|
|
18
|
+
|
|
19
|
+
- Correct both HTTP User-Agent version strings and add a source-version parity
|
|
20
|
+
check. The previously published rc3 remains unchanged; helper behavior is
|
|
21
|
+
otherwise identical.
|
|
22
|
+
|
|
23
|
+
## 2.6.0rc3 — 2026-10-02 (prerelease)
|
|
24
|
+
|
|
25
|
+
- Add scoped one-call policy setup and descriptive learning-report helpers.
|
|
26
|
+
- Add bounded advisor callbacks that log the caller's actual chosen action and
|
|
27
|
+
supplied behavior distribution; advice never executes or authorizes an action.
|
|
28
|
+
- These helpers require the October 2 outcome-followup backend release or a
|
|
29
|
+
compatible successor. Check `/v1/release` before using the new endpoints.
|
|
30
|
+
- Learning performance and reliable model compliance with feedback are not
|
|
31
|
+
established. This release makes no superiority or benchmark claim.
|
|
32
|
+
|
|
33
|
+
## 2.6.0rc2 — 2026-10-01 (prerelease)
|
|
34
|
+
|
|
35
|
+
- Add sync/async context enrollment, revision-checked policy configuration,
|
|
36
|
+
scoped evidence cards and exact action-advice helpers.
|
|
37
|
+
- Preserve collection/end-user scope and JSON context. ACT remains advisory;
|
|
38
|
+
callers must independently authorize external actions.
|
|
39
|
+
- Policy configuration/advice requires backend `e5f6g7h8i868` or a compatible
|
|
40
|
+
successor. Existing protected workflow transports are unchanged.
|
|
41
|
+
|
|
42
|
+
## 2.6.0rc1 — 2026-09-09 (prerelease)
|
|
43
|
+
|
|
44
|
+
- Add sync/async native experience programs, reflection jobs, reviewed lesson
|
|
45
|
+
revisions and one-use execution-permission transports.
|
|
46
|
+
- Bind complete model requests and tool invocations, retain uncertain delivery,
|
|
47
|
+
and prevent automatic retries of potentially completed side effects.
|
|
48
|
+
- Add the optional bounded OpenAI reflection adapter and `hebbrix-reflect` CLI.
|
|
49
|
+
- Require separately scoped worker/reviewer/executor credentials and the matching
|
|
50
|
+
`b5c6d7e8f959` backend. That backend is not yet deployed to public production;
|
|
51
|
+
stable 2.5.0 remains the production recommendation. No autonomous actions are
|
|
52
|
+
enabled by installing this package.
|
|
53
|
+
|
|
54
|
+
## 2.5.0 — 2026-09-07
|
|
55
|
+
|
|
56
|
+
- Add matching synchronous and asynchronous Evidence Loop methods: owner-managed verifiers, durable episodes, actual-execution claims, protected outcome delivery and evidence assessments.
|
|
57
|
+
- Preserve scope, replay, incomplete-outcome and permission receipts without converting recommendations into execution authority or falling back to caller-reported outcomes.
|
|
58
|
+
- Reject malformed, ambiguous or unknown evidence contracts before exposing unsupported synthesis; retain valid degraded evidence with its abstention signal.
|
|
59
|
+
- Protected ledger methods require the connected Evidence Loop backend. Separate verifier credentials and an independent execution/outcome check remain required; these methods do not execute actions.
|
|
60
|
+
|
|
61
|
+
## 2.4.1 — 2026-08-27
|
|
62
|
+
|
|
63
|
+
- Make every async and sync readiness deadline preserve the original durable
|
|
64
|
+
receipt and raise top-level `IndexingTimeoutError`, including single writes,
|
|
65
|
+
batches, inference jobs, and direct updates.
|
|
66
|
+
- Normalize memory/job/status/request/outbox/idempotency recovery metadata and
|
|
67
|
+
preserve transport-only `Location`, request, retry, event, and replay headers.
|
|
68
|
+
|
|
69
|
+
## 2.4.0 — 2026-08-27
|
|
70
|
+
|
|
71
|
+
- Reconcile every exported advanced method with the canonical public OpenAPI,
|
|
72
|
+
including temporal, working-memory, consolidation, memory-tool, and RL routes.
|
|
73
|
+
- Add a route-manifest release gate and clean-wheel installation verification.
|
|
74
|
+
- Treat durable-but-indexing batch results as `202`, poll them through the SDK,
|
|
75
|
+
and raise `IndexingTimeoutError` with the durable receipt on client deadline.
|
|
76
|
+
- Preserve structured entitlement metadata in `EntitlementError`.
|
|
77
|
+
- Keep advanced resources async-only and document the sync-client boundary.
|
|
78
|
+
- Withdraw the experimental World Model from the public SDK until a trained,
|
|
79
|
+
versioned production model artifact and serving contract exist.
|
|
80
|
+
- Publish compatibility through `GET /v1/release`; replace the broken public
|
|
81
|
+
repository link with valid artifact and support links.
|
|
82
|
+
|
|
83
|
+
## 2.3.2 — 2026-08-27
|
|
84
|
+
|
|
85
|
+
- Align procedure create/list/get/update/execute/delete with the canonical
|
|
86
|
+
`/v1/procedures` REST and OpenAPI contract, including idempotent `204`
|
|
87
|
+
deletion.
|
|
88
|
+
- Add explicit synchronous/asynchronous batch readiness receipts to the async
|
|
89
|
+
and synchronous clients.
|
|
90
|
+
- Add batch wait helpers that poll every accepted memory, propagate terminal
|
|
91
|
+
failures, respect deadlines, and support asynchronous cancellation.
|
|
92
|
+
|
|
93
|
+
## 2.3.1 — 2026-08-26
|
|
94
|
+
|
|
95
|
+
- Make `wait_for_index=True` poll the authoritative memory or job readiness
|
|
96
|
+
endpoint instead of returning a non-searchable receipt.
|
|
97
|
+
- Add `memories.wait_until_searchable(...)` to the async and synchronous
|
|
98
|
+
clients, with explicit timeout and terminal-failure handling.
|
|
99
|
+
- Preserve valid evidence-bound search rows during a degraded or abstaining
|
|
100
|
+
server response while retaining the safety metadata; malformed and explicit
|
|
101
|
+
no-match envelopes still fail closed.
|
|
102
|
+
- Keep the synchronous and asynchronous memory create, scope, idempotency, and
|
|
103
|
+
search-safety behavior aligned.
|
|
104
|
+
- Add `temporal.delete_fact(fact_id)` for tenant-scoped, idempotent cleanup of
|
|
105
|
+
facts created through the temporal API.
|
|
106
|
+
|
|
107
|
+
The supported server/SDK release pair is published by the server OpenAPI
|
|
108
|
+
document in `info.x-hebbrix-sdk-compatibility`. Patch releases preserve the
|
|
109
|
+
public API within the same major version.
|
|
110
|
+
|
|
111
|
+
## 2.3.0
|
|
112
|
+
|
|
113
|
+
- Added the GA scoped memory, corrections, search proof, and ProofLoop surface.
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hebbrix
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
4
4
|
Summary: Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs
|
|
5
5
|
Author-email: Hebbrix Team <support@hebbrix.com>
|
|
6
6
|
Maintainer-email: Hebbrix Team <support@hebbrix.com>
|
|
7
|
-
License
|
|
7
|
+
License: MIT License
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2025 Hebbrix
|
|
10
|
+
|
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions:
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
8
29
|
Project-URL: Homepage, https://hebbrix.com
|
|
9
30
|
Project-URL: Documentation, https://docs.hebbrix.com
|
|
10
31
|
Project-URL: Source, https://github.com/Hebbrix/hebbrix-python
|
|
@@ -12,7 +33,7 @@ Project-URL: Issues, https://github.com/Hebbrix/hebbrix-python/issues
|
|
|
12
33
|
Project-URL: Support, https://www.hebbrix.com/contact
|
|
13
34
|
Project-URL: API Reference, https://api.hebbrix.com/docs
|
|
14
35
|
Keywords: ai,memory,agents,llm,chatbot,assistant,ml,reinforcement-learning,knowledge-graph,vector-search,rag,temporal,procedural-memory,working-memory
|
|
15
|
-
Classifier: Development Status ::
|
|
36
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
37
|
Classifier: Intended Audience :: Developers
|
|
17
38
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
39
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
@@ -28,7 +49,7 @@ Classifier: Framework :: AsyncIO
|
|
|
28
49
|
Requires-Python: >=3.8
|
|
29
50
|
Description-Content-Type: text/markdown
|
|
30
51
|
License-File: LICENSE
|
|
31
|
-
Requires-Dist: httpx
|
|
52
|
+
Requires-Dist: httpx<1,>=0.25.0
|
|
32
53
|
Requires-Dist: requests>=2.31.0
|
|
33
54
|
Provides-Extra: dev
|
|
34
55
|
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
@@ -44,10 +65,15 @@ Dynamic: license-file
|
|
|
44
65
|
|
|
45
66
|
Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
|
|
46
67
|
|
|
68
|
+
This branch is the **2.6.0 stable SDK**. The new policy configuration and
|
|
69
|
+
advice helpers require backend schema `e5f6g7h8i868` or a compatible successor.
|
|
70
|
+
A stable SDK does not qualify experimental learning or enable autonomous execution. ASK/REVIEW/ACT is advice;
|
|
71
|
+
an action still requires independent permission.
|
|
72
|
+
|
|
47
73
|
## Install
|
|
48
74
|
|
|
49
75
|
```bash
|
|
50
|
-
pip install hebbrix==2.
|
|
76
|
+
pip install hebbrix==2.6.0
|
|
51
77
|
```
|
|
52
78
|
|
|
53
79
|
Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
|
|
@@ -55,8 +81,38 @@ supports the core collection, memory, search, correction, procedure, and
|
|
|
55
81
|
ProofLoop workflows; advanced temporal, working-memory, consolidation,
|
|
56
82
|
memory-tool, and RL resources are currently async-only.
|
|
57
83
|
|
|
84
|
+
The runtime requires `httpx>=0.25.0,<1`; incompatible 1.x prereleases are excluded.
|
|
85
|
+
For the matching Round 5 backend, `setup_policy` accepts explicit `configuration`
|
|
86
|
+
options for versioned change response and declared optional-field sharing, plus
|
|
87
|
+
`value_objective={"success_value":10,"max_cost":20,"cost_unit":"USD"}`.
|
|
88
|
+
Report both actual success and cost with `record_outcome`. Chat follow-up capture
|
|
89
|
+
requires `features.learning: true` and an exact `outcome_followup.decision_id`;
|
|
90
|
+
captured signals are provisional, not verified execution or autonomy evidence.
|
|
91
|
+
These options require the matching runtime, not only the unchanged database schema.
|
|
92
|
+
|
|
58
93
|
## Quick start
|
|
59
94
|
|
|
95
|
+
October 2 follow-up: `proofloop.setup_policy` atomically creates a new
|
|
96
|
+
context/schema policy with explicitly declared low-risk exploration; existing
|
|
97
|
+
policies are not migrated automatically. `learning_report` reads a bounded,
|
|
98
|
+
scoped descriptive report, not proven uplift. `decide_with_advice` reads an
|
|
99
|
+
evidence card, invokes the supplied advisor once and logs its actual choice and
|
|
100
|
+
probabilities. `decide` accepts bounded `prior_action` / `prior_strength` for one
|
|
101
|
+
server-selected decision; this is not outcome evidence. These new helpers and
|
|
102
|
+
structured paraphrase matching require the matching October 2 outcome-followup
|
|
103
|
+
backend, not merely its database schema; inspect `/v1/release` before use.
|
|
104
|
+
Nothing here grants permission to execute. Learning performance and reliable
|
|
105
|
+
model compliance with feedback are not established.
|
|
106
|
+
|
|
107
|
+
Both clients expose `proofloop.register_context_schema`, `context_schema`,
|
|
108
|
+
`configure_policy`, `policy_configuration`, `policy_advice` and `action_advice`.
|
|
109
|
+
Enroll context before recording decisions. Configuration uses `expected_revision`
|
|
110
|
+
for compare-and-swap; do not retry a conflict blindly. Exploration remains an
|
|
111
|
+
explicit low-risk opt-in. `action_advice` takes the exact configured description,
|
|
112
|
+
policy/action IDs and context, and maps `user_id` to the confidence endpoint's
|
|
113
|
+
`end_user_id`. For the complete request shapes, see the
|
|
114
|
+
[learning guide](https://www.hebbrix.com/docs/learning).
|
|
115
|
+
|
|
60
116
|
```python
|
|
61
117
|
import asyncio
|
|
62
118
|
from hebbrix import MemoryClient
|
|
@@ -167,3 +223,14 @@ The production API publishes exact build and artifact compatibility at
|
|
|
167
223
|
## License
|
|
168
224
|
|
|
169
225
|
MIT. See `LICENSE` in the distribution.
|
|
226
|
+
## Native experience workflow (prerelease)
|
|
227
|
+
|
|
228
|
+
The current source includes `client.experiences`, bounded reflection workers,
|
|
229
|
+
separate lesson review/revision and explicit one-use execution admission. These
|
|
230
|
+
methods require the matching new backend; the published 2.5.0 release does not
|
|
231
|
+
include this extension. The candidate package supplies `hebbrix-reflect --help`.
|
|
232
|
+
Importing it does not call a model, approve a lesson or execute a tool.
|
|
233
|
+
|
|
234
|
+
See `docs/native-experience-operations.md` for role scopes,
|
|
235
|
+
uncertain-call recovery, exact-request binding and policy rollback. Do not treat a
|
|
236
|
+
lesson, score, review or issued permit as execution permission.
|
|
@@ -1,53 +1,16 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: hebbrix
|
|
3
|
-
Version: 2.4.1
|
|
4
|
-
Summary: Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs
|
|
5
|
-
Author-email: Hebbrix Team <support@hebbrix.com>
|
|
6
|
-
Maintainer-email: Hebbrix Team <support@hebbrix.com>
|
|
7
|
-
License-Expression: MIT
|
|
8
|
-
Project-URL: Homepage, https://hebbrix.com
|
|
9
|
-
Project-URL: Documentation, https://docs.hebbrix.com
|
|
10
|
-
Project-URL: Source, https://github.com/Hebbrix/hebbrix-python
|
|
11
|
-
Project-URL: Issues, https://github.com/Hebbrix/hebbrix-python/issues
|
|
12
|
-
Project-URL: Support, https://www.hebbrix.com/contact
|
|
13
|
-
Project-URL: API Reference, https://api.hebbrix.com/docs
|
|
14
|
-
Keywords: ai,memory,agents,llm,chatbot,assistant,ml,reinforcement-learning,knowledge-graph,vector-search,rag,temporal,procedural-memory,working-memory
|
|
15
|
-
Classifier: Development Status :: 4 - Beta
|
|
16
|
-
Classifier: Intended Audience :: Developers
|
|
17
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
-
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
-
Classifier: Topic :: Database
|
|
20
|
-
Classifier: Programming Language :: Python :: 3
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
23
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
-
Classifier: Operating System :: OS Independent
|
|
27
|
-
Classifier: Framework :: AsyncIO
|
|
28
|
-
Requires-Python: >=3.8
|
|
29
|
-
Description-Content-Type: text/markdown
|
|
30
|
-
License-File: LICENSE
|
|
31
|
-
Requires-Dist: httpx>=0.25.0
|
|
32
|
-
Requires-Dist: requests>=2.31.0
|
|
33
|
-
Provides-Extra: dev
|
|
34
|
-
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
35
|
-
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
36
|
-
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
37
|
-
Requires-Dist: flake8<6.0.0,>=5.0.4; python_full_version < "3.8.1" and extra == "dev"
|
|
38
|
-
Requires-Dist: flake8>=6.0.0; python_full_version >= "3.8.1" and extra == "dev"
|
|
39
|
-
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
40
|
-
Requires-Dist: cryptography>=42.0.0; extra == "dev"
|
|
41
|
-
Dynamic: license-file
|
|
42
|
-
|
|
43
1
|
# Hebbrix Python SDK
|
|
44
2
|
|
|
45
3
|
Typed Python client for Hebbrix memory, retrieval, and outcome-learning APIs.
|
|
46
4
|
|
|
5
|
+
This branch is the **2.6.0 stable SDK**. The new policy configuration and
|
|
6
|
+
advice helpers require backend schema `e5f6g7h8i868` or a compatible successor.
|
|
7
|
+
A stable SDK does not qualify experimental learning or enable autonomous execution. ASK/REVIEW/ACT is advice;
|
|
8
|
+
an action still requires independent permission.
|
|
9
|
+
|
|
47
10
|
## Install
|
|
48
11
|
|
|
49
12
|
```bash
|
|
50
|
-
pip install hebbrix==2.
|
|
13
|
+
pip install hebbrix==2.6.0
|
|
51
14
|
```
|
|
52
15
|
|
|
53
16
|
Python 3.8+ is supported. `MemoryClient` is asynchronous. `SyncMemoryClient`
|
|
@@ -55,8 +18,38 @@ supports the core collection, memory, search, correction, procedure, and
|
|
|
55
18
|
ProofLoop workflows; advanced temporal, working-memory, consolidation,
|
|
56
19
|
memory-tool, and RL resources are currently async-only.
|
|
57
20
|
|
|
21
|
+
The runtime requires `httpx>=0.25.0,<1`; incompatible 1.x prereleases are excluded.
|
|
22
|
+
For the matching Round 5 backend, `setup_policy` accepts explicit `configuration`
|
|
23
|
+
options for versioned change response and declared optional-field sharing, plus
|
|
24
|
+
`value_objective={"success_value":10,"max_cost":20,"cost_unit":"USD"}`.
|
|
25
|
+
Report both actual success and cost with `record_outcome`. Chat follow-up capture
|
|
26
|
+
requires `features.learning: true` and an exact `outcome_followup.decision_id`;
|
|
27
|
+
captured signals are provisional, not verified execution or autonomy evidence.
|
|
28
|
+
These options require the matching runtime, not only the unchanged database schema.
|
|
29
|
+
|
|
58
30
|
## Quick start
|
|
59
31
|
|
|
32
|
+
October 2 follow-up: `proofloop.setup_policy` atomically creates a new
|
|
33
|
+
context/schema policy with explicitly declared low-risk exploration; existing
|
|
34
|
+
policies are not migrated automatically. `learning_report` reads a bounded,
|
|
35
|
+
scoped descriptive report, not proven uplift. `decide_with_advice` reads an
|
|
36
|
+
evidence card, invokes the supplied advisor once and logs its actual choice and
|
|
37
|
+
probabilities. `decide` accepts bounded `prior_action` / `prior_strength` for one
|
|
38
|
+
server-selected decision; this is not outcome evidence. These new helpers and
|
|
39
|
+
structured paraphrase matching require the matching October 2 outcome-followup
|
|
40
|
+
backend, not merely its database schema; inspect `/v1/release` before use.
|
|
41
|
+
Nothing here grants permission to execute. Learning performance and reliable
|
|
42
|
+
model compliance with feedback are not established.
|
|
43
|
+
|
|
44
|
+
Both clients expose `proofloop.register_context_schema`, `context_schema`,
|
|
45
|
+
`configure_policy`, `policy_configuration`, `policy_advice` and `action_advice`.
|
|
46
|
+
Enroll context before recording decisions. Configuration uses `expected_revision`
|
|
47
|
+
for compare-and-swap; do not retry a conflict blindly. Exploration remains an
|
|
48
|
+
explicit low-risk opt-in. `action_advice` takes the exact configured description,
|
|
49
|
+
policy/action IDs and context, and maps `user_id` to the confidence endpoint's
|
|
50
|
+
`end_user_id`. For the complete request shapes, see the
|
|
51
|
+
[learning guide](https://www.hebbrix.com/docs/learning).
|
|
52
|
+
|
|
60
53
|
```python
|
|
61
54
|
import asyncio
|
|
62
55
|
from hebbrix import MemoryClient
|
|
@@ -167,3 +160,14 @@ The production API publishes exact build and artifact compatibility at
|
|
|
167
160
|
## License
|
|
168
161
|
|
|
169
162
|
MIT. See `LICENSE` in the distribution.
|
|
163
|
+
## Native experience workflow (prerelease)
|
|
164
|
+
|
|
165
|
+
The current source includes `client.experiences`, bounded reflection workers,
|
|
166
|
+
separate lesson review/revision and explicit one-use execution admission. These
|
|
167
|
+
methods require the matching new backend; the published 2.5.0 release does not
|
|
168
|
+
include this extension. The candidate package supplies `hebbrix-reflect --help`.
|
|
169
|
+
Importing it does not call a model, approve a lesson or execute a tool.
|
|
170
|
+
|
|
171
|
+
See `docs/native-experience-operations.md` for role scopes,
|
|
172
|
+
uncertain-call recovery, exact-request binding and policy rollback. Do not treat a
|
|
173
|
+
lesson, score, review or issued permit as execution permission.
|