Wayang Agent Framework (Phases 4-7)

The Wayang Agent Framework represents Phases 4-7 of the platform, building on top of Gollek’s deep learning capabilities to create a complete agent orchestration and skill management system.

Overview

After establishing the core deep learning foundation with Gollek (Phases 1-3), Wayang introduces:

  • Phase 4: Quarkus Decoupling - Pure Java agent framework with optional Quarkus integration
  • Phase 5: SPI Integration - Pluggable provider selection and intelligent routing
  • Phase 6: AgentSkills.io Compliance - Standards-based skill definition and metadata
  • Phase 7: Full Module Integration - Unified skill registry with adapters for Memory, Tools, HITL, Prompt, RAG, MCP, and Vector modules.

Quick Start

Installation

# Add to your Maven project
<dependency>
  <groupId>tech.kayys.wayang</groupId>
  <artifactId>wayang-agent-core</artifactId>
  <version>0.2.0-SNAPSHOT</version>
</dependency>

Integrated Agent Execution

// Execute with Memory, Tools, and HITL
AgentResponse response = agentExecutor
    .executeTaskWithTools(agentId, userId, sessionId, "Perform market analysis")
    .await().indefinitely();

Key Features

Feature Phase Status Details
Agent Runtime 4 ✅ Complete Pure Java, Quarkus optimized via Unified Runtime
Builder Pattern 4 ✅ Complete Fluent API for agent & integration services
Pluggable Providers 5 ✅ Complete IntelligentRouter + ProviderSelector SPI
Configuration Driven 5 ✅ Complete Externalized configuration for all modules
Skills Compliance 6 ✅ Complete AgentSkills.io v1.0 spec compliance
Module Adapters 7 ✅ Complete 8 Adapters: Memory, Tools, HITL, Prompt, RAG, etc.
Unified Registry 7 ✅ Complete Centralized SkillIntegrationRegistry management

Architecture

┌─────────────────────────────────────────────────────────────┐
│              Agent Orchestrator (ReAct Loop)                │
│  • LLM inference with context                               │
│  • Tool discovery & execution                               │
│  • HITL decision routing                                    │
│  • Dynamic prompt rendering                                 │
└─────────────────────────────────────────────────────────────┘
         ↙         ↓          ↓          ↓          ↘
    ┌────────────────────────────────────────────────────────┐
    │  Integration Services Layer (SkillIntegrationRegistry)  │
    │  ┌────────────────────────────────────────────────┐     │
    │  │ • AgentMemoryService (context + storage)       │     │
    │  │ • AgentToolService (discovery + execution)     │     │
    │  │ • AgentHitlService (approvals + escalation)    │     │
    │  │ • AgentPromptService (templates + rendering)   │     │
    │  └────────────────────────────────────────────────┘     │
    └────────────────────────────────────────────────────────┘
         ↙         ↓          ↓          ↓          ↘
    ┌────────────────────────────────────────────────────────┐
    │  Core Module Layer (Adapters)                          │
    │  • Memory • Tools • HITL • Prompt • RAG • MCP • Vector │
    └────────────────────────────────────────────────────────┘

Documentation Structure

Learning Path

  1. Start Here: Introduction to Wayang Agents
  2. Phase 4: Build your first agent with the builder pattern
  3. Phase 5: Configure provider selection and routing
  4. Phase 6: Define agent skills following AgentSkills.io spec
  5. Phase 7: Create a skill registry and load manifests
  6. Production: See Production Hardening for Phases 8-9

Code Statistics

Agent Framework Implementation:
  • Total Production Code: 3,000+ LOC
  • Total Test Code: 1,200+ LOC
  • Test Methods: 45+ covering all phases
  • Code Coverage: >90% of code paths
  
Phase Breakdown:
  Phase 4: 800 LOC - Builder pattern, CDI integration
  Phase 5: 700 LOC - Router, provider selection
  Phase 6: 600 LOC - Skills compliance, validation
  Phase 7: 900 LOC - Skill registry, manifest loading

Key Concepts

1. Builder Pattern (Phase 4)

Pure Java construction pattern enabling:

  • Standalone Java usage without Quarkus
  • CDI integration when Quarkus is available
  • Zero API changes between environments
  • 100% backward compatibility

2. Pluggable Providers (Phase 5)

Service Provider Interface (SPI) architecture:

  • IntelligentRouter for request distribution
  • ProviderSelector for strategy-based selection
  • Configuration-driven behavior
  • A/B testing support

3. Skills Compliance (Phase 6)

AgentSkills.io specification implementation:

  • 12/12 validation rules enforced
  • Name/description validation
  • Metadata restructuring
  • Progressive disclosure (lazy loading)

4. Skill Management (Phase 7)

Complete skill lifecycle:

  • Dynamic registration
  • Manifest-based configuration
  • Discovery and loading
  • Version management

Integration Points

With Gollek (Phases 1-3)

Agents use Gollek models for:

  • Embeddings generation
  • Intent classification
  • Entity extraction
  • Response generation

With Production (Phases 8-9)

Framework integrates with:

  • OpenTelemetry tracing
  • Circuit breaker patterns
  • Audit logging
  • Health checks

Next Steps

Resources


*Last Updated: April 2025 Phases 4-7 Complete ✅*