Annotation Interface AgiToolkit


@Retention(RUNTIME) @Target(TYPE) public @interface AgiToolkit
Marks a class as an AI-callable toolkit and provides essential metadata. All public methods within a class annotated with @AgiToolkit are automatically registered as individual tools, provided they are also annotated with AgiTool.
Author:
anahata
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A detailed description of what the tools in this toolkit do, including its purpose, usage notes, and any general constraints.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The default maximum depth policy for ALL of this toolkit's tools.
  • Element Details

    • value

      String value
      A detailed description of what the tools in this toolkit do, including its purpose, usage notes, and any general constraints. This is provided to the model to help it understand the toolkit's capabilities.
      Returns:
      The toolkit description.
    • maxDepth

      int maxDepth
      The default maximum depth policy for ALL of this toolkit's tools. This serves as a fallback for any tools in this toolkit that do not specify an explicit max depth policy in their @AgiTool annotation.

      A value of -1 indicates that the value should be inherited from the system default defined in AgiConfig.

      Returns:
      The default maximum depth.
      Default:
      -1