Uses of Class
com.github.copilot.sdk.json.SessionHooks
Packages that use SessionHooks
Package
Description
Configuration classes and data transfer objects for the Copilot SDK.
-
Uses of SessionHooks in com.github.copilot.sdk.json
Methods in com.github.copilot.sdk.json 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.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.sdk.json 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.