Package com.embabel.agent.api.annotation
Annotation LlmTool
-
- All Implemented Interfaces:
@Target(allowedTargets = {AnnotationTarget.FUNCTION}) public @interface LlmTool
Marks a method as a tool that can be invoked by an LLM. Use with com.embabel.agent.api.tool.Tool.Companion.fromInstance or com.embabel.agent.api.tool.Tool.Companion.fromMethod to create Tool instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceLlmTool.ParamDescribes a tool parameter. Apply to method parameters. Parameters don't need to be annotated: If they are, the purpose is to provide description and required information.
-
Field Summary
Fields Modifier and Type Field Description private final Stringdescriptionprivate final Stringnameprivate final BooleanreturnDirectprivate final Stringcategory
-