@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Prompt
The annotated method handles the session/prompt JSON-RPC method,
which is the main entry point for processing user messages.
The method can have the following parameters (all optional, in any order):
PromptRequest - the prompt request containing user messageSyncPromptContext - context for sync handlers with convenience methodsPromptContext - context for async handlers returning MonoNegotiatedCapabilities - the negotiated client capabilities@SessionState - session-scoped stateThe method should return one of:
PromptResponse - the prompt responseString - converted to PromptResponse.text()void - converted to PromptResponse.endTurn()Mono<PromptResponse> - for async handlingExample usage:
{@codeAcpAgent,
SessionState