Class TypeRequest

  • All Implemented Interfaces:
    com.embabel.agent.core.hitl.Awaitable , com.embabel.common.core.Identified , com.embabel.common.core.StableIdentified , com.embabel.common.core.types.HasInfoString , com.embabel.common.core.types.Timestamped

    
    public final class TypeRequest<T extends Object>
    extends AbstractAwaitable<Class<T>, TypeResponse<T>>
                        

    Request a value of type T from the user.

    The UX layer will typically generate a form from the type's schema and present it to the user. When the user provides the value, it is added to the blackboard and execution can continue.

    • Constructor Detail

      • TypeRequest

        TypeRequest(Class<T> type, String message, T hint, Boolean persistent)
        Parameters:
        type - The class of the requested type (for reflection/schema generation)
        message - Optional message to display to the user explaining what's needed
        hint - Optional pre-populated value to show as a starting point
        persistent - Whether this request should be persisted
      • TypeRequest

        TypeRequest(Class<T> type, String message, T hint)
        Parameters:
        type - The class of the requested type (for reflection/schema generation)
        message - Optional message to display to the user explaining what's needed
        hint - Optional pre-populated value to show as a starting point
      • TypeRequest

        TypeRequest(Class<T> type, String message)
        Parameters:
        type - The class of the requested type (for reflection/schema generation)
        message - Optional message to display to the user explaining what's needed
      • TypeRequest

        TypeRequest(Class<T> type)
        Parameters:
        type - The class of the requested type (for reflection/schema generation)