Class CopilotToolProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.github.copilot.tool.CopilotToolProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("com.github.copilot.tool.CopilotTool")
@SupportedSourceVersion(RELEASE_17)
@CopilotExperimental
public class CopilotToolProcessor
extends AbstractProcessor
JSR 269 annotation processor that finds
CopilotTool-annotated methods
and generates $$CopilotToolMeta companion classes containing tool
definitions, JSON Schema, and invocation lambdas.
For a class com.example.MyTools containing @CopilotTool
methods, this processor generates
com.example.MyTools$$CopilotToolMeta in the same package.
- Since:
- 1.0.2
-
Field Summary
Fields inherited from class AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
Constructor Details
-
CopilotToolProcessor
public CopilotToolProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-