-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add allganize feature: history, break, GPTSCRIPT_PROGRESS_TIME_STEP_MS
- Loading branch information
Showing
7 changed files
with
105 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
/binaries | ||
/checksums.txt | ||
/.env* | ||
ui/ | ||
gptscript.code-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package engine | ||
|
||
import ( | ||
"encoding/json" | ||
"fmt" | ||
|
||
"github.com/gptscript-ai/gptscript/pkg/types" | ||
) | ||
|
||
func (e *Engine) runBreak(tool types.Tool, input string) (cmdOut *Return, cmdErr error) { | ||
info, err := json.Marshal(tool) | ||
if err != nil { | ||
return nil, err | ||
} | ||
var dict map[string]interface{} | ||
json.Unmarshal(info, &dict) | ||
dict["input"] = input | ||
info, err = json.Marshal(dict) | ||
return nil, fmt.Errorf("TOOL_BREAK: %s", info) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters