Package ai.acolite.agentsdk.core
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAgent.AgentBuilder<TContext,TOutput extends AgentOutputType> Custom builder with automatic tool validation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the list of enabled handoffs for this agent.Checks if the agent has an explicit tool configurationprocessFinalOutput(Object output) Processes the final output string into a resolved agent outputMethods inherited from class ai.acolite.agentsdk.core.EventEmitterDelegate
emit
-
Constructor Details
-
Agent
public Agent()
-
-
Method Details
-
hasExplicitToolConfig
Checks if the agent has an explicit tool configuration- Returns:
- true if tools are explicitly configured
-
processFinalOutput
Processes the final output string into a resolved agent output- Parameters:
output- The output string to process- Returns:
- ResolvedAgentOutput wrapping the output type
-
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
-