Skip to content

Commit ed4107d

Browse files
committed
On branch edburns/1682-java-tool-ergonomics-review-draft-01
modified: java/src/main/java/com/github/copilot/tool/CopilotToolProcessor.java modified: java/src/main/java/com/github/copilot/tool/Param.java modified: java/src/main/java/com/github/copilot/tool/SchemaGenerator.java - Add `CopilotExperimental` more liberally
1 parent 60eb094 commit ed4107d

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

java/src/main/java/com/github/copilot/tool/CopilotToolProcessor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
import javax.tools.Diagnostic;
3030
import javax.tools.JavaFileObject;
3131

32+
import com.github.copilot.CopilotExperimental;
33+
3234
/**
3335
* JSR 269 annotation processor that finds {@link CopilotTool}-annotated methods
3436
* and generates {@code $$CopilotToolMeta} companion classes containing tool
@@ -43,6 +45,7 @@
4345
*/
4446
@SupportedAnnotationTypes("com.github.copilot.tool.CopilotTool")
4547
@SupportedSourceVersion(SourceVersion.RELEASE_17)
48+
@CopilotExperimental
4649
public class CopilotToolProcessor extends AbstractProcessor {
4750

4851
private final SchemaGenerator schemaGenerator = new SchemaGenerator();

java/src/main/java/com/github/copilot/tool/Param.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import java.lang.annotation.RetentionPolicy;
1111
import java.lang.annotation.Target;
1212

13+
import com.github.copilot.CopilotExperimental;
14+
1315
/**
1416
* Annotates a parameter of a {@link CopilotTool}-annotated method to provide
1517
* metadata about the parameter that is sent to the model.
@@ -30,6 +32,7 @@
3032
@Documented
3133
@Retention(RetentionPolicy.RUNTIME)
3234
@Target(ElementType.PARAMETER)
35+
@CopilotExperimental
3336
public @interface Param {
3437

3538
/** Parameter description (sent to the model). */

java/src/main/java/com/github/copilot/tool/SchemaGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import javax.lang.model.util.Elements;
2121
import javax.lang.model.util.Types;
2222

23+
import com.github.copilot.CopilotExperimental;
24+
2325
/**
2426
* Compile-time utility that maps {@code javax.lang.model} types to JSON Schema
2527
* represented as Java source code literals ({@code Map.of(...)} expressions).
@@ -31,6 +33,7 @@
3133
*
3234
* @since 1.0.2
3335
*/
36+
@CopilotExperimental
3437
public class SchemaGenerator {
3538

3639
/**

0 commit comments

Comments
 (0)