We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b195649 commit c12f828Copy full SHA for c12f828
run.go
@@ -80,7 +80,7 @@ func (r *Run) Close() error {
80
}
81
82
// If the command has already exited, then nothing to do.
83
- if r.cmd.ProcessState == nil {
+ if r.cmd.ProcessState != nil {
84
return nil
85
86
@@ -99,6 +99,11 @@ func (r *Run) RawOutput() (map[string]any, error) {
99
return r.rawOutput, nil
100
101
102
+// ChatState returns the current chat state of the Run.
103
+func (r *Run) ChatState() string {
104
+ return r.chatState
105
+}
106
+
107
// NextChat will pass input and create the next run in a chat.
108
// The new Run will be returned.
109
func (r *Run) NextChat(ctx context.Context, input string) (*Run, error) {
0 commit comments