aws-toolkit-vscode icon indicating copy to clipboard operation
aws-toolkit-vscode copied to clipboard

How can I get Amazon Q response list or data from the output panel

Open chenxuanzzy opened this issue 2 years ago • 7 comments

System details (run the AWS: About Toolkit command)

OS: Darwin arm64 22.6.0 Visual Studio Code extension host: 1.84.2 AWS Toolkit: 2.1.0 node: 18.15.0 electron: 25.9.2

Question

I have been using codewhisperer while, but every time I get the response, I need to copy it on the chat, I also use AWS Toolkit Logs but can't find the response data/list, just got the question data. How can I get the response data on the output panel or something like that?

chenxuanzzy avatar Dec 04 '23 06:12 chenxuanzzy

Are you trying to copy the response in Amazon Q chat? Can you clarify the steps you are trying?

justinmk3 avatar Dec 05 '23 10:12 justinmk3

Are you trying to copy the response in Amazon Q chat? Can you clarify the steps you are trying?

I'm sorry for my explanation. I was trying to ask Amazon Q on the chat, and I also can see the AWS Toolkit Logs on the panel. In the panel, I just can only find the asking object

2023-12-06 14:39:39 [INFO]: request from tab: tab-1 coversationID: undefined request: {"conversationState":{"currentMessage":{"userInputMessage":{"content":"give me some eample code","userInputMessageContext":{"editorState":{"document":{"relativeFilePath":"/Users/cindy_chao/Develop/test/test2.ts","text":"import * as http from \"http\";\n","programmingLanguage":{"languageName":"typescript"},"documentSymbols":[]},"cursorState":{"range":{"start":{"line":0,"character":0},"end":{"line":1,"character":0}}}}}}},"chatTriggerType":"MANUAL"}}

can't find the response object or other data. how can get the response log data? or where can I get the response logfile? I can't find it out.

image

@justinmk3 thank you

chenxuanzzy avatar Dec 06 '23 06:12 chenxuanzzy

I also found a misspelling, but it doesn't affect anything.

image

on the controller.ts

it might be conversionID image

chenxuanzzy avatar Dec 06 '23 06:12 chenxuanzzy

@justinmk3 I'm sorry. Can anyone respond to me :( ?

chenxuanzzy avatar Dec 08 '23 02:12 chenxuanzzy

@chenxuanzzy I'm having trouble understanding your request. In the screenshot, there is a "Copy" button which allows you to copy the answer. But I guess that isn't what you're asking for.

  • Are you trying to inspect the raw service response? Do you want AWS Toolkit to print more data in its logs?
  • Or do you want to be able to Edit the full answer (not only the program code which has a "Copy" button)?

justinmk3 avatar Dec 10 '23 15:12 justinmk3

  • Are you trying to inspect the raw service response? Do you want AWS Toolkit to print more data in its logs?

Yes, This is what I want. I want AWS Toolkit logs have answers other json I can watch.

chenxuanzzy avatar Dec 11 '23 02:12 chenxuanzzy

Did you try setting the AWS Toolkit log level to "debug"? In VSCode settings look for "aws log". image

Related: https://github.com/aws/aws-toolkit-jetbrains/issues/4064

justinmk3 avatar Dec 12 '23 14:12 justinmk3