Project

lex-uais

0.0
No release in over 3 years
UAIS agent registration client with mock adapter and soft-warn enforcement
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

lex-uais

LegionIO extension for United AI Studio (UAIS) agent registration. Provides a client for registering, deregistering, and checking Digital Worker registration status with the UAIS platform.

Features

  • Register/deregister Digital Workers with UAIS
  • Check registration status and AIRB approval
  • Mock adapter (default) for development and testing
  • Soft-warn enforcement: failures log warnings but never block operations
  • Standalone Client class for use outside the Legion framework

Installation

Add to your Gemfile:

gem 'lex-uais'

Usage

Standalone Client

require 'legion/extensions/uais/client'

# Mock mode (default when no base_url)
client = Legion::Extensions::Uais::Client.new
result = client.register_worker(worker_id: 'w-123', name: 'InvoiceBot', owner_msid: 'ms123', extension_name: 'lex-invoice')

# Live mode
client = Legion::Extensions::Uais::Client.new(base_url: 'https://api.uais.uhg.com', api_key: 'key')
result = client.register_worker(worker_id: 'w-123', name: 'InvoiceBot', owner_msid: 'ms123', extension_name: 'lex-invoice')

Within Legion Framework

The extension is auto-discovered via the lex-* naming convention. Configure via settings:

uais:
  options:
    base_url: https://api.uais.uhg.com
    api_key: <vault-sourced>
    mock: false
    timeout: 30

Runner Methods

Method Description
register_worker Register a Digital Worker with UAIS
deregister_worker Deregister a worker
check_registration Check if a worker is registered
airb_status Check AIRB approval status

Development

bundle install
bundle exec rspec
bundle exec rubocop

License

Apache-2.0