Uses of Class
com.github.copilot.rpc.SessionHooks
Packages that use SessionHooks
Package
Description
Configuration classes and data transfer objects for the Copilot SDK.
-
Uses of SessionHooks in com.github.copilot.rpc
Methods in com.github.copilot.rpc that return SessionHooksModifier and TypeMethodDescriptionResumeSessionConfig.getHooks()Gets the hook handlers configuration.SessionConfig.getHooks()Gets the hook handlers configuration.SessionHooks.setOnPostToolUse(PostToolUseHandler onPostToolUse) Sets the handler called after a tool has been executed.SessionHooks.setOnPostToolUseFailure(PostToolUseFailureHandler onPostToolUseFailure) Sets the handler called after a tool execution whose result was a failure.SessionHooks.setOnPreMcpToolCall(PreMcpToolCallHandler onPreMcpToolCall) Sets the handler called before an MCP tool call is dispatched to an MCP server.SessionHooks.setOnPreToolUse(PreToolUseHandler onPreToolUse) Sets the handler called before a tool is executed.SessionHooks.setOnSessionEnd(SessionEndHandler onSessionEnd) Sets the handler called when a session ends.SessionHooks.setOnSessionStart(SessionStartHandler onSessionStart) Sets the handler called when a session starts.SessionHooks.setOnUserPromptSubmitted(UserPromptSubmittedHandler onUserPromptSubmitted) Sets the handler called when the user submits a prompt.Methods in com.github.copilot.rpc with parameters of type SessionHooksModifier and TypeMethodDescriptionResumeSessionConfig.setHooks(SessionHooks hooks) Sets hook handlers for session lifecycle events.SessionConfig.setHooks(SessionHooks hooks) Sets hook handlers for session lifecycle events.