Skip to content

Conversation

@roblourens
Copy link
Member

@roblourens roblourens commented Oct 2, 2023

Not 100% complete, but enough to work with. Status in https://github.com/microsoft/vscode-copilot/issues/1682

@roblourens roblourens changed the base branch from roblou/chatAgentAPIChanges to main October 5, 2023 18:51
@roblourens roblourens marked this pull request as ready for review October 12, 2023 02:38
@roblourens roblourens changed the title Add partial implementation for another option for a chat agent API Implement chatAgent2 proposal Oct 12, 2023
@vscodenpa vscodenpa added this to the October 2023 milestone Oct 12, 2023
@roblourens roblourens enabled auto-merge (squash) October 12, 2023 03:10
@roblourens roblourens merged commit 901ac65 into main Oct 12, 2023
@roblourens roblourens deleted the roblou/chatAgentAPI2 branch October 12, 2023 03:23
Alex0007 pushed a commit to Alex0007/vscode that referenced this pull request Oct 26, 2023
* Add notes on chat agent API

* Add request ID to context

* variables

* Add partial implementation for another option for a chat agent API

* update

* Notes from api sync

* More notes

* Can invoke an agent and get the response

* Provide a real request

* Notes

* add `slashCommandProvider` - not yet hooked up

* add metadata properties inline, some comments

* some more notes

* Put the new API side-by-side with the old one

* Fix agent title in response

* Fix agent display

* Send slashCommand to request

* Hook up variables

* Get rid of package.json registration option

* Start to implement followups provider

* Add comment

* make it `slashCommandProvider` all the way, use updateAgent for updates icon, fullName, description

* update docs

* only ask for slash command completions when completing a slash-word

* use complex completion item label for command/agent completions

* add `promptText` to `IParsedChatRequestPart` so that some parts don't make it into the prompt (like agent and slash commands)

* only allow agent and slash command at the beginning of the prompt

* remove unused method

* some jsdoc, many renames so that stuff starts with `ChatAgent...`

* reduce `createChatAgent` to the minimum, let the rest be set via setters

* in the renderer know if an agent has slash command and follow ups, safes IPC calls

* use `iconPath` to align with other APIs

* more jsdoc and more obvious TODOs

* fix chat parser with "late" command

* handle error so that the request stops. where is the rendering tho?

* Show error message in response properly

* Don't blow up global / list

* Change proposal name

* Inline followup types

* fix type

* Remove brace in error msg

---------

Co-authored-by: Johannes <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants