@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface LoadSession
The annotated method handles the session/load JSON-RPC method,
which is called when a client wants to resume an existing session.
The method can have the following parameters (all optional):
LoadSessionRequest - the load session request containing sessionId, cwd, and mcpServers@SessionId String - the session ID being loadedThe method should return one of:
LoadSessionResponse - the load session response with modes and modelsMono<LoadSessionResponse> - for async handlingExample usage:
{@codeAcpAgent,
NewSession