Class ProviderTokenArgs
java.lang.Object
com.github.copilot.rpc.ProviderTokenArgs
Arguments passed to a BYOK bearer-token provider callback.
Experimental. This managed-identity surface may change or be removed in future SDK or CLI releases.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionProviderTokenArgs(String providerName, String sessionId) Creates argument object for the named provider. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the BYOK provider needing a token.Gets the id of the session that triggered this token request.
-
Constructor Details
-
ProviderTokenArgs
Creates argument object for the named provider.- Parameters:
providerName- the name of the BYOK provider needing a token;"default"for the singular whole-session provider, otherwise the named provider'snamesessionId- the id of the session that triggered this token request
-
-
Method Details
-
getProviderName
Gets the name of the BYOK provider needing a token.The value is
"default"for the singular whole-session provider, otherwise the named provider'sname.- Returns:
- the provider name
-
getSessionId
Gets the id of the session that triggered this token request.A client-level shared callback registered for many sessions can use this to resolve the owning session and scope token acquisition or caching per session.
- Returns:
- the session id
-