Class AgentForge4j

java.lang.Object
com.agentforge4j.bootstrap.AgentForge4j

public final class AgentForge4j extends Object
Immutable facade exposing the assembled AgentForge4j runtime and loaded configuration. Construct via AgentForge4jBootstrap.defaults().

For full runtime control (state queries, input submission, approval, cancellation), use runtime().

  • Method Details

    • start

      public String start(String workflowId)
      Starts a workflow run for the given workflow id and returns the run id.
      Parameters:
      workflowId - the id of the workflow to start; must not be blank
      Returns:
      the new run id; never null
    • workflows

      public List<WorkflowDefinition> workflows()
      Returns an immutable view of all loaded workflow definitions.
      Returns:
      unmodifiable list; never null
    • agents

      public List<AgentDefinition> agents()
      Returns an immutable view of all loaded agent definitions.
      Returns:
      unmodifiable list; never null
    • runtime

      public WorkflowRuntime runtime()
      Returns the full runtime interface for operational use (state queries, input submission, approval, cancellation, retry).
      Returns:
      runtime; never null
    • components

      public BootstrapComponents components()
      Returns the individual assembled components for framework integrators.

      Internal — for framework integrators only. Not part of the public API.

      Returns:
      assembled components; never null