
dev.langchain4j.agent.tool.P Maven / Gradle / Ivy
package dev.langchain4j.agent.tool;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Parameter of a Tool
*/
@Retention(RUNTIME)
@Target({PARAMETER})
public @interface P {
/**
* Description of a parameter
* @return the description of a parameter
*/
String value();
/**
* Whether the parameter is required
* @return true if the parameter is required, false otherwise
* Default is true.
*/
boolean required() default true;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy