Class Agent<TContext,TOutput extends AgentOutputType>

java.lang.Object
ai.acolite.agentsdk.core.EventEmitterDelegate<AgentHookEvents<TContext,TOutput>>
ai.acolite.agentsdk.core.AgentHooks<TContext,TOutput>
ai.acolite.agentsdk.core.Agent<TContext,TOutput>
All Implemented Interfaces:
AgentConfiguration<TContext,TOutput>, EventEmitter<AgentHookEvents<TContext,TOutput>>

public class Agent<TContext,TOutput extends AgentOutputType> extends AgentHooks<TContext,TOutput> implements AgentConfiguration<TContext,TOutput>
Agent

Represents an AI agent with configuration and behavior.

Ported from TypeScript OpenAI Agents SDK Source: agent.ts

  • Constructor Details

    • Agent

      public Agent()
  • Method Details

    • hasExplicitToolConfig

      public Boolean hasExplicitToolConfig()
      Checks if the agent has an explicit tool configuration
      Returns:
      true if tools are explicitly configured
    • processFinalOutput

      public ResolvedAgentOutput<Object> processFinalOutput(Object output)
      Processes the final output string into a resolved agent output
      Parameters:
      output - The output string to process
      Returns:
      ResolvedAgentOutput wrapping the output type
    • getEnabledHandoffs

      public List<Agent<TContext,?>> getEnabledHandoffs()
      Gets the list of enabled handoffs for this agent. In the future, this could filter based on isEnabled predicates.
      Returns:
      List of agents this agent can hand off to