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

Add chat-agent sample #919

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Add chat-agent sample #919

merged 3 commits into from
Nov 13, 2023

Conversation

isidorn
Copy link
Contributor

@isidorn isidorn commented Nov 13, 2023

No description provided.

@isidorn isidorn self-assigned this Nov 13, 2023
@isidorn isidorn added this to the November 2023 milestone Nov 13, 2023
@isidorn
Copy link
Contributor Author

isidorn commented Nov 13, 2023

fyi @mjbvz for cat ideas :)

chat-agent-sample/extension.js Outdated Show resolved Hide resolved
chat-agent-sample/package.json Outdated Show resolved Hide resolved
chat-agent-sample/package.json Outdated Show resolved Hide resolved
const teachResult = { /* you can return anything in your result object */ };
const playResult = { /* you can return anything in your result object */ };
// Define a Cat chat agent handler.
const handler: vscode.ChatAgentHandler = async (request: vscode.ChatAgentRequest, context: vscode.ChatAgentContext, progress: vscode.Progress<vscode.ChatAgentProgress>, token: vscode.CancellationToken) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should do something even without a slash command (I could hack on this a bit)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do this tomorrow - will have more time then.

chat-agent-sample/src/extension.ts Outdated Show resolved Hide resolved
chat-agent-sample/src/extension.ts Show resolved Hide resolved
@isidorn
Copy link
Contributor Author

isidorn commented Nov 13, 2023

Ok verified that with the latest changes the sample still works fine :)

@roblourens roblourens merged commit 1a867a2 into main Nov 13, 2023
2 checks passed
@roblourens roblourens deleted the isidorn/evolutionary-gamefowl branch November 13, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants