Annotation Interface CopilotResponse


@Target(TYPE) @Retention(SOURCE) @CopilotExperimental public @interface CopilotResponse
Generates a response schema using the same annotation processor and type mappings as @CopilotTool. Annotate a concrete record or class, then pass its class to CopilotSession.sendAndWait(String, Class). Custom Jackson naming/converter schemas should instead be supplied explicitly via MessageOptions.setResponseSchema(java.util.Map).