You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not 100% sure on your question, so I might be answering something you're not asking.
If you're talking about getting information about the current user, you can use the value in the X-GITHUB-TOKEN header to make calls against GitHub's API on behalf of the user.
If you're talking about "what is the user currently doing" (for example what repositories do they have open), you can find that information in the request body, messages[*].copilot_references. Note that what references get sent are client-dependent!
Question
How can I get in my agent the user code or at least the file reference (file path and line numbers) ?
Context
I want to get the user context in my agent
Additional context
I'm building a new agent and need the user context
The text was updated successfully, but these errors were encountered: