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

When tool execution times out (15 minutes), there is no information about this and thread execution exits. #672

Closed
sangee2004 opened this issue Jul 29, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sangee2004
Copy link
Contributor

gptscript version - v0.0.0-dev-faaee653-dirty

Steps to reproduce the problem:

  1. Execute the following script
Context: github.com/gptscript-ai/clio/context
Chat: true

You are a good assistant. Wait for user to ask you a question.
  1. Execute the following script that lists the directory after 15 minutes
  2. Notice that the script execution quits without executing the ls command since time timeout of 15 minutes for tool execution is hit.
  I found the  test1.sh  script in the current directory. I'll go ahead and execute it now.                                                                                                  
                                                                                                                                                                                             
  Let's run the script.                                                                                                                                                                      


    ┌────────────────────────────────┐
    │ Call Arguments:                │
    │                                │
    │ exec {"command":"sh test1.sh"} │
    └────────────────────────────────┘
                                      
  Running  sh test1.sh                                                                                                                                                                       

    ┌────────────┐
    │ output: 1  │
    │ output: 2  │
    │ output: 3  │
    │ output: 4  │
    │ output: 5  │
    │ output: 6  │
    │ output: 7  │
    │ output: 8  │
    │ output: 9  │
    │ output: 10 │
    │ output: 11 │
    │ output: 12 │
    │ output: 13 │
    │ output: 14 │
    │ output: 15 │
    └────────────┘
%

Expected Behavior:
Provider user information about the time out and continue to be in the thread conversation mode instead of exiting abruptly.

@sangee2004 sangee2004 added the bug Something isn't working label Jul 29, 2024
@thedadams
Copy link
Contributor

This will no longer happen after #685 is merged.

@sangee2004
Copy link
Contributor Author

Tested with gptscript version - v0.0.0-dev-7ff3fa1f-dirty

This issue is not seen anymore.

Able to se tool execution succeed when it takes longer than 15 minutes to process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants