pub struct SessionSetCredentialsParams {
pub credentials: Option<Value>,
}Expand description
New auth credentials to install on the session. Omit to leave credentials unchanged.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§credentials: Option<Value>The new auth credentials to install on the session. When omitted or undefined, the call is a no-op and the session’s existing credentials are preserved. The runtime installs the supplied value immediately for outbound model/API requests. When the credential carries a raw token (token, env, or gh-cli) but no copilotUser, the runtime additionally re-resolves copilotUser server-side (best-effort, asynchronously, after the synchronous install) so plan/quota/billing metadata regains fidelity; on resolution failure the verbatim credential remains installed. It does NOT otherwise validate the credential. Several variants carry secret material; treat this method’s params as containing secrets at rest and in transit.
Trait Implementations§
Source§impl Clone for SessionSetCredentialsParams
impl Clone for SessionSetCredentialsParams
Source§fn clone(&self) -> SessionSetCredentialsParams
fn clone(&self) -> SessionSetCredentialsParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more