You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. When you run the CLI, you will see any flags that were previously set in your environment variables as the output.
49
49
```
50
-
> gh debug-cli
50
+
> gh debug-cli chat
51
51
Setting url to http://localhost:8080/agents/blackbeard
52
52
53
53
Start typing to chat with your assistant...
54
54
sparklyunicorn:
55
55
```
56
56
4. Type something to simulate chatting with your assistant.
57
57
```
58
-
> gh debug-cli
58
+
> gh debug-cli chat
59
59
Setting url to http://localhost:8080/agents/blackbeard
60
60
61
61
Start typing to chat with your assistant...
@@ -114,7 +114,7 @@ assistant: Avast, @monalisa! Me apologies if I didn't quite understand yer reque
114
114
```
115
115
7. And if debug mode was set to false, then I would only see the confirmation prompt itself.
116
116
```
117
-
gh debug-cli --log-level none
117
+
gh debug-cli chat --log-level none
118
118
Setting url to http://localhost:8080/agents/blackbeard
119
119
120
120
Start typing to chat with your assistant...
@@ -128,10 +128,14 @@ Reply: [y/N]
128
128
8. Currently, the supported event types for debug mode are references, errors, and confirmations! Have fun chatting with your assistant!
129
129
130
130
131
-
## Using the debug stream tool
132
-
1. to quickly parse agent response run cmd go run `main.go stream --file [local file name]` for example `gh-debug-cli stream --file test.txt`
131
+
## Using the gh debug stream tool
132
+
1. To quickly parse an agent response by running command `gh debug-cli stream --file test.txt`
133
+
134
+
2. This tool will take llm streaming response and parse it to make it more readable
133
135
134
-
2. tool will take print out data packet for easy readability
136
+
- In this example, if a file test.txt holds the following streamed response. Then will return the response "A closure in JavaScript is a function that retains access... " This will make repsonse more readable.
137
+
138
+
example of .txt file
135
139
```
136
140
data: {"choices":[{"delta":{"content":"A closure in JavaScript "}}],"created":1727120830,"id":"chatcmpl-AAjJW0Nz9E2Gu1P6YQMFqqmn10mdR","model":"gpt-4o-2024-05-13","system_fingerprint":"fp_80a1bad4c7"}
137
141
data: {"choices":[{"delta":{"content":"is a function that retains access "}}],"created":1727120831,"id":"chatcmpl-AAjJW0Nz9E2Gu1P6YQMFqqmn10mdR","model":"gpt-4o-2024-05-13","system_fingerprint":"fp_80a1bad4c7"}
0 commit comments