Annotation Interface CommunicationStyle


@Retention(RUNTIME) @Target(TYPE) public @interface CommunicationStyle
Annotation to define agent's communication style. Can be applied at class level (Agent subclass). Example:
 @CommunicationStyle(
     tone = Tone.FRIENDLY,
     formality = Formality.CASUAL,
     verbosity = Verbosity.CONCISE
 )
 public class AssistantAgent extends Agent {
     // ...
 }
 
If this annotation is present, it will be used instead of createCommunication() method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The formality level of communication.
    The tone of communication.
    The verbosity level of communication.
  • Element Details

    • tone

      Tone tone
      The tone of communication. Default: PROFESSIONAL
      Default:
      PROFESSIONAL
    • formality

      Formality formality
      The formality level of communication. Default: NEUTRAL
      Default:
      NEUTRAL
    • verbosity

      Verbosity verbosity
      The verbosity level of communication. Default: MODERATE
      Default:
      MODERATE