Package com.embabel.agent.api.annotation
Annotation AchievesGoal
-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@Target(value = ElementType.METHOD)@Retention(value = RetentionPolicy.RUNTIME)@Documented() public @interface AchievesGoal
Annotation that can be added to an @Action method to indicate that its execution achieves a goal See com.embabel.agent.core.Goal for more details. A Goal object will be created for each method annotated with this annotation.
-
-
Method Summary
Modifier and Type Method Description abstract Stringdescription()Description of the goal. abstract doublevalue()Value of achieving the goal abstract Array<String>tags()Set of tags describing classes or capabilities for this goal. abstract Array<String>examples()Set of example scenarios that the goal can achieve. abstract Exportexport()How the goal should be exported as a tool Tools will not be exposed remotely by default -
-
Method Detail
-
description
abstract String description()
Description of the goal. Take care in writing this description as it will be used to choose a goal based on user input.
-
value
abstract double value()
Value of achieving the goal
-
tags
abstract Array<String> tags()
Set of tags describing classes or capabilities for this goal. Example: ["cooking", "customer support", "billing"]
-
examples
abstract Array<String> examples()
Set of example scenarios that the goal can achieve. Example: ["I need a recipe for bread", "I want to support a customer with a billing issue"]
-
-
-
-