Class AguiContext

java.lang.Object
io.agentscope.core.agui.model.AguiContext

public class AguiContext extends Object
Represents a piece of contextual information in the AG-UI protocol.

Context items provide additional information to the agent that may be relevant for generating responses. They contain a description of what the context represents and its actual value.

  • Constructor Details

    • AguiContext

      public AguiContext(String description, String value)
      Creates a new AguiContext.
      Parameters:
      description - Description of what this context represents
      value - The actual context value
  • Method Details

    • getDescription

      public String getDescription()
      Get the context description.
      Returns:
      The description
    • getValue

      public String getValue()
      Get the context value.
      Returns:
      The value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object