Interface AdditionalContextPart

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 AdditionalContextPart
A single contribution to an Agent's additional context. ComposedAgent accumulates parts in builder-declaration order, drops the empty ones, and renders each remaining ContextSection under its heading; parts can therefore short-circuit by returning Optional.empty() without disturbing the surrounding ordering.
  • Method Details

    • section

      Returns:
      the section contributed by this part, or empty if there is nothing to surface for the current state.