PRAXO-CORE Dart Core¶
Dart 3 implementation of the PRAXO-CORE agent contract. The normative contract
is spec/; Go remains the reference implementation.
SPEC_VERSION:0.2.0- Core version:
0.1.0 - Tier: core
- License: MIT
- Dependencies: Dart standard library only
Scope¶
The Core implements all eleven vector groups: toolcall, JSON Schema, plugin, memory, event, stream, checkpoint, policy, context, middleware, and the agent loop. It includes a public API snapshot and a dependency-free test runner.
Build and test¶
dart run conformance/run.dart
python api-snapshot.py --check
dart run tests/run.dart
Run from the dart/ directory, or use dart language/dart/conformance/run.dart from the
repository root.
Quickstart¶
import 'lib/praxo.dart';
void main() {
final agent = Agent(AgentOptions(StaticModel('hello')));
final result = agent.run(const Session(id: 'demo'), 'hello');
print(result.output);
}
Tools register on the options object:
final registry = Registry();
registry.register(FuncTool('echo', 'Echo arguments', (arguments) => arguments));
final options = AgentOptions(StaticModel('hello'))
..tools = registry
..maxSteps = 8;
Layout¶
lib/package source.conformance/run.dartvector runner.api-snapshot.pyandapi/public API snapshot.tests/run.darttest suite.
Release¶
Tag shape: dart/v0.1.0. The tag targets SPEC_VERSION 0.2.0.