caelum0x 894359e5ff feat(railyard): per-app completion pass — money-correct settlement + crate cores
- rago: exactly-once prepaid settlement (deterministic idempotency, unique partial index + in-tx ON CONFLICT guard) — closes the double-charge risk
- mint: double-entry + reserve conservation verified (14 tests)
- ledgerline: atomic settlement outbox + partial recovery index (37 tests)
- abacus: hard per-agent budget enforcement + kill-switch (54 tests)
- vend: crash reaper / in-flight session reconciliation
- turnstile/agent-runtime/ranguard/rit/game-economy/context-passport/rithub: core advanced + tests
2026-09-07 17:17:54 +03:00

29 lines
997 B
Ruby

# frozen_string_literal: true
require_relative "relay/version"
require_relative "relay/errors"
require_relative "relay/aitp"
require_relative "relay/transport"
require_relative "relay/multipart"
require_relative "relay/client"
# Relay — native Ruby client for the Relay gateway (a TensorZero fork).
#
# require "relay"
# client = Relay::Client.new(base_url: "http://localhost:3000", api_key: ENV["RELAY_API_KEY"])
# client.chat_completions(model: Relay.model_target("gpt-4o-mini"),
# messages: [{ role: "user", content: "hi" }])
module Relay
# Build the `model` field targeting a configured Relay model.
# @return [String] e.g. "tensorzero::model_name::gpt-4o-mini"
def self.model_target(name)
"tensorzero::model_name::#{name}"
end
# Build the `model` field targeting a configured Relay function.
# @return [String] e.g. "tensorzero::function_name::summarize"
def self.function_target(name)
"tensorzero::function_name::#{name}"
end
end