Skip to content

fix: add lib accessors so examples compile#49

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/example-api-accessors
Jun 24, 2026
Merged

fix: add lib accessors so examples compile#49
hyperpolymath merged 1 commit into
mainfrom
fix/example-api-accessors

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

The library compiles clean; the two examples basic_usage.rs and mlp_router.rs called methods that don't exist on the public API (8x E0599 for stale API names).

Adds thin 1:1 accessor / convenience wrappers to the lib (preferred approach):

  • Orchestrator::current_project() — delegates to the context manager
  • MLP::input_size() / MLP::output_size() — getters for private fields
  • MLP::train_step(input, target, lr) — runs backward + update, returns the step loss

cargo check --examples is now clean (0 errors). reservoir_demo.rs untouched.

🤖 Generated with Claude Code

basic_usage.rs and mlp_router.rs called methods that didn't exist on the
public API (8x E0599). Add thin 1:1 accessor/convenience wrappers:

- Orchestrator::current_project() -> delegates to context manager
- MLP::input_size() / MLP::output_size() -> getters for private fields
- MLP::train_step() -> backward + update, returns the step loss

cargo check --examples is now clean (lib was already fine).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hyperpolymath
hyperpolymath merged commit 5fb40a5 into main Jun 24, 2026
9 of 14 checks passed
@hyperpolymath
hyperpolymath deleted the fix/example-api-accessors branch June 24, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant