Skip to content

[Polyglot Notebooks] Support #kernelVariable copilot chat tool #4082

@rynoV

Description

@rynoV

Is your feature request related to a problem? Please describe.

Noted here, when using inline chat in a notebook vscode supports referencing kernel variables so the llm can access the types and values of variables in the current session.

Image

Describe the solution you'd like

Polyglot doesn't seem to support this yet. It seems like if the kernel provided by polyglot to vscode provides certain methods, vscode will automatically support the #kernelVariable tool:

https://github.com/microsoft/vscode/blob/a4fa4eaa3e6232609e3f13c21b9f033d7a75d228/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.ts#L129

I couldn't quite find where in the dotnet-interactive code a change would need to be made, but hopefully this isn't too difficult to support since the kernel variables can already be displayed

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions