Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide LLM With Language Server Types #127

Open
mathewpareles opened this issue Oct 28, 2024 · 0 comments
Open

Provide LLM With Language Server Types #127

mathewpareles opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
backlog We might come back to this later new feature New feature or request

Comments

@mathewpareles
Copy link
Contributor

When we send messages to an LLM, we want to provide context about relevant types the user can access (including variable and function types). For example, if the user imports the React package, we should give the LLM context about the various attributes in the React object, like React.useContext, React.useState, etc.
image

To resolve this issue:

  1. Access vscode's internal language server and find all of the types in the current file.
  2. Modify the sendLLMMessage function so that we always send the relevant variable and function types to the LLM.
  3. Bonus: Create a function typeFromName that can access the type of a variable from its name. In the case of duplicates, return all relevant types.
@andrewpareles andrewpareles added the new feature New feature or request label Nov 2, 2024
@mathewpareles mathewpareles self-assigned this Nov 4, 2024
@andrewpareles andrewpareles added the backlog We might come back to this later label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We might come back to this later new feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants