PRAXO-CORE Ruby Core¶
Ruby 3.1+ 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: Ruby 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¶
ruby language/ruby/conformance/run.rb
ruby language/ruby/api-snapshot.rb --check
ruby language/ruby/tests/run.rb
Quickstart¶
$LOAD_PATH.unshift('language/ruby/lib')
require 'praxo'
model = Praxo::Agent::StaticModel.new('hello')
options = Praxo::Agent::AgentOptions.new(model)
result = Praxo::Agent.run_agent(
options,
Praxo::Models.session(id: 'demo'),
'hello'
)
puts result.output
Tools register on the options object:
registry = Praxo::Agent::ToolRegistry.new
registry.register(Praxo::Agent::FuncTool.new('echo', 'Echo arguments',
->(arguments) { arguments }))
options.tools = registry
options.max_steps = 8
Layout¶
lib/praxo/package source.conformance/run.rbvector runner.api-snapshot.rbandapi/public API snapshot.tests/run.rbtest suite.
Release¶
Tag shape: ruby/v0.1.0. The tag targets SPEC_VERSION 0.2.0.