Package com.github.copilot.sdk.json
Class SessionStartHookOutput
java.lang.Object
com.github.copilot.sdk.json.SessionStartHookOutput
Output for a session-start hook.
Allows adding additional context or modifying session configuration.
- Since:
- 1.0.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the additional context to add.Gets the modified configuration.setAdditionalContext(String additionalContext) Sets additional context to be added to the session.setModifiedConfig(Map<String, Object> modifiedConfig) Sets modified configuration options for the session.
-
Constructor Details
-
SessionStartHookOutput
public SessionStartHookOutput()
-
-
Method Details
-
getAdditionalContext
Gets the additional context to add.- Returns:
- the additional context, or
null
-
setAdditionalContext
Sets additional context to be added to the session.- Parameters:
additionalContext- the additional context- Returns:
- this instance for method chaining
-
getModifiedConfig
Gets the modified configuration.- Returns:
- the modified configuration map, or
null
-
setModifiedConfig
Sets modified configuration options for the session.- Parameters:
modifiedConfig- the modified configuration- Returns:
- this instance for method chaining
-