feat(public-api): expose all router-facing APIs at cleveractors package level; update README #17

Open
opened 2026-06-03 06:00:27 +00:00 by hurui200320 · 0 comments
Member

Background

After waves C1–C7 land, cleveractors/__init__.py still exports only the legacy CLI-facing surface (Agent, ContextManager, ReactiveCleverAgentsApp, CleverAgentsException). The new router-facing APIs are implemented but not part of the package's official public contract.

This wave finalises the public API surface, updates __all__, and updates the README so that integrators have a single canonical import reference.

Depends on: #10, #11, #12, #13, #14, #15, #16 — all new APIs must be fully implemented before being published here.

What Is Currently Missing

  • __init__.py does not import or export any of the new router-facing APIs.
  • __all__ does not list the new names.
  • README does not document the router-facing API.

Acceptance Criteria

  1. from cleveractors import validate_dict works.
  2. from cleveractors import merge_configs works.
  3. from cleveractors import create_executor works.
  4. from cleveractors import ActorResult, NodeUsage works.
  5. from cleveractors import ExecutionError, ConfigurationError works; ExecutionError.kind and .reason are documented.
  6. All new names listed in __all__.
  7. README.md gains a "Router-facing API" section listing each new export with a one-line description and a usage example.
  8. Package version bumped to reflect the new public API surface.

Subtasks

  • Add all new names (validate_dict, merge_configs, create_executor, ActorResult, NodeUsage, ExecutionError, ConfigurationError) to cleveractors/__init__.py imports
  • Update __all__ to include all new names
  • Add "Router-facing API" section to README.md with usage examples
  • Bump package version
  • Write a smoke test: python -c "from cleveractors import validate_dict, merge_configs, create_executor, ActorResult, NodeUsage, ExecutionError" succeeds
  • Verify all existing tests still pass

Definition of Done

  • All subtasks checked off.
  • Single-line import smoke test passes.
  • README updated with router-facing API section.
  • All tests pass. Coverage at or above project threshold.
## Background After waves C1–C7 land, `cleveractors/__init__.py` still exports only the legacy CLI-facing surface (`Agent`, `ContextManager`, `ReactiveCleverAgentsApp`, `CleverAgentsException`). The new router-facing APIs are implemented but not part of the package's official public contract. This wave finalises the public API surface, updates `__all__`, and updates the README so that integrators have a single canonical import reference. **Depends on:** #10, #11, #12, #13, #14, #15, #16 — all new APIs must be fully implemented before being published here. ## What Is Currently Missing - `__init__.py` does not import or export any of the new router-facing APIs. - `__all__` does not list the new names. - README does not document the router-facing API. ## Acceptance Criteria 1. `from cleveractors import validate_dict` works. 2. `from cleveractors import merge_configs` works. 3. `from cleveractors import create_executor` works. 4. `from cleveractors import ActorResult, NodeUsage` works. 5. `from cleveractors import ExecutionError, ConfigurationError` works; `ExecutionError.kind` and `.reason` are documented. 6. All new names listed in `__all__`. 7. `README.md` gains a "Router-facing API" section listing each new export with a one-line description and a usage example. 8. Package version bumped to reflect the new public API surface. ## Subtasks - [ ] Add all new names (`validate_dict`, `merge_configs`, `create_executor`, `ActorResult`, `NodeUsage`, `ExecutionError`, `ConfigurationError`) to `cleveractors/__init__.py` imports - [ ] Update `__all__` to include all new names - [ ] Add "Router-facing API" section to `README.md` with usage examples - [ ] Bump package version - [ ] Write a smoke test: `python -c "from cleveractors import validate_dict, merge_configs, create_executor, ActorResult, NodeUsage, ExecutionError"` succeeds - [ ] Verify all existing tests still pass ## Definition of Done - All subtasks checked off. - Single-line import smoke test passes. - README updated with router-facing API section. - All tests pass. Coverage at or above project threshold.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
cleveragents/cleveractors-core#17
No description provided.