CopilotOptions class final
Options for streamCopilot.
Constructors
- CopilotOptions({required String githubToken, CopilotTokenManager? tokenManager, CancelToken? cancelToken, String? sessionId, String? cacheRetention})
-
Creates options.
githubTokenis required unlesstokenManageris supplied.const
Properties
- cacheRetention → String?
-
Cache retention (
short/long/none).final - cancelToken → CancelToken?
-
Cancels the in-flight request when triggered.
final
- githubToken → String
-
The GitHub token exchanged for the short-lived Copilot API token.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionId → String?
-
Prompt-cache affinity key, threaded through to the completions
adapter (same defaults as the other adapters).
final
- tokenManager → CopilotTokenManager?
-
Overrides the per-token manager registry (tests inject a fake here).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited