Class ProviderTokenArgs

java.lang.Object
com.github.copilot.rpc.ProviderTokenArgs

@CopilotExperimental public class ProviderTokenArgs extends Object
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 Details

    • ProviderTokenArgs

      public ProviderTokenArgs(String providerName, String sessionId)
      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's name
      sessionId - the id of the session that triggered this token request
  • Method Details

    • getProviderName

      public String 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's name.

      Returns:
      the provider name
    • getSessionId

      public String 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