Interface AgentSessionOpener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AgentSessionOpener
Narrow strategy used by LocalSessionCache to lazily open a session.

Production wiring adapts AgentSessionFactory.open(ConversationId, String, AgentSessionOptions) into this functional interface. Tests can supply a fake opener to substitute controllable AgentSession instances without standing up a real OrcaAgentExecutor.

  • Method Summary

    Modifier and Type
    Method
    Description
    at.aimon.core.agent.session.AgentSession
    open(at.aimon.core.agent.conversation.ConversationId conversationId, String agentRef, at.aimon.core.agent.session.AgentSessionOptions options)
    Opens a session bound to conversationId and agentRef.
  • Method Details

    • open

      at.aimon.core.agent.session.AgentSession open(at.aimon.core.agent.conversation.ConversationId conversationId, String agentRef, at.aimon.core.agent.session.AgentSessionOptions options)
      Opens a session bound to conversationId and agentRef.
      Parameters:
      conversationId - the conversation (must not be null)
      agentRef - the agent to bind on first open (must not be null)
      options - session options (must not be null)
      Returns:
      the opened session (never null)