Class EasyAIEvent.Builder

java.lang.Object
dyntabs.ai.event.EasyAIEvent.Builder
Enclosing class:
EasyAIEvent

public static final class EasyAIEvent.Builder extends Object
Fluent builder for EasyAIEvent.

Analogy: filling in a pre-printed incident form — source and phase are the two required boxes; the rest are optional lines you complete when relevant.

  • Method Details

    • status

      public EasyAIEvent.Builder status(EasyAIEvent.Status status)
      Parameters:
      status - the visual status; @return this builder.
    • title

      public EasyAIEvent.Builder title(String title)
      Parameters:
      title - short label; @return this builder.
    • detail

      public EasyAIEvent.Builder detail(String detail)
      Parameters:
      detail - secondary descriptive line; @return this builder.
    • toolName

      public EasyAIEvent.Builder toolName(String toolName)
      Parameters:
      toolName - tool/method name for tool-related events; @return this builder.
    • sequence

      public EasyAIEvent.Builder sequence(long sequence)
      Parameters:
      sequence - 1-based ordinal within the operation; @return this builder.
    • timestamp

      public EasyAIEvent.Builder timestamp(Instant timestamp)
      Parameters:
      timestamp - event time (defaults to Instant.now() if unset); @return this builder.
    • build

      public EasyAIEvent build()
      Returns:
      the immutable EasyAIEvent.