-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #824 from ibuildthecloud/update
chore: dynamically update tools and other tool params on subsequent chats
- Loading branch information
Showing
8 changed files
with
410 additions
and
20 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
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,9 @@ | ||
`{ | ||
"role": "assistant", | ||
"content": [ | ||
{ | ||
"text": "TEST RESULT CALL: 1" | ||
} | ||
], | ||
"usage": {} | ||
}` |
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,70 @@ | ||
`{ | ||
"model": "gpt-4o", | ||
"internalSystemPrompt": false, | ||
"tools": [ | ||
{ | ||
"function": { | ||
"toolID": "sys.ls", | ||
"name": "ls", | ||
"description": "Lists the contents of a directory", | ||
"parameters": { | ||
"properties": { | ||
"dir": { | ||
"description": "The directory to list", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
{ | ||
"function": { | ||
"toolID": "sys.read", | ||
"name": "read", | ||
"description": "Reads the contents of a file", | ||
"parameters": { | ||
"properties": { | ||
"filename": { | ||
"description": "The name of the file to read", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
{ | ||
"function": { | ||
"toolID": "sys.write", | ||
"name": "write", | ||
"description": "Write the contents to a file", | ||
"parameters": { | ||
"properties": { | ||
"content": { | ||
"description": "The content to write", | ||
"type": "string" | ||
}, | ||
"filename": { | ||
"description": "The name of the file to write to", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"role": "user", | ||
"content": [ | ||
{ | ||
"text": "input 1" | ||
} | ||
], | ||
"usage": {} | ||
} | ||
], | ||
"chat": true | ||
}` |
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,9 @@ | ||
`{ | ||
"role": "assistant", | ||
"content": [ | ||
{ | ||
"text": "TEST RESULT CALL: 2" | ||
} | ||
], | ||
"usage": {} | ||
}` |
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,73 @@ | ||
`{ | ||
"model": "gpt-4o", | ||
"internalSystemPrompt": false, | ||
"tools": [ | ||
{ | ||
"function": { | ||
"toolID": "sys.ls", | ||
"name": "ls", | ||
"description": "Lists the contents of a directory", | ||
"parameters": { | ||
"properties": { | ||
"dir": { | ||
"description": "The directory to list", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
{ | ||
"function": { | ||
"toolID": "sys.write", | ||
"name": "write", | ||
"description": "Write the contents to a file", | ||
"parameters": { | ||
"properties": { | ||
"content": { | ||
"description": "The content to write", | ||
"type": "string" | ||
}, | ||
"filename": { | ||
"description": "The name of the file to write to", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"role": "user", | ||
"content": [ | ||
{ | ||
"text": "input 1" | ||
} | ||
], | ||
"usage": {} | ||
}, | ||
{ | ||
"role": "assistant", | ||
"content": [ | ||
{ | ||
"text": "TEST RESULT CALL: 1" | ||
} | ||
], | ||
"usage": {} | ||
}, | ||
{ | ||
"role": "user", | ||
"content": [ | ||
{ | ||
"text": "input 2" | ||
} | ||
], | ||
"usage": {} | ||
} | ||
], | ||
"chat": true, | ||
"temperature": 0.6 | ||
}` |
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,93 @@ | ||
`{ | ||
"done": false, | ||
"content": "TEST RESULT CALL: 1", | ||
"toolID": "inline:", | ||
"state": { | ||
"continuation": { | ||
"state": { | ||
"input": "input 1", | ||
"completion": { | ||
"model": "gpt-4o", | ||
"internalSystemPrompt": false, | ||
"tools": [ | ||
{ | ||
"function": { | ||
"toolID": "sys.ls", | ||
"name": "ls", | ||
"description": "Lists the contents of a directory", | ||
"parameters": { | ||
"properties": { | ||
"dir": { | ||
"description": "The directory to list", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
{ | ||
"function": { | ||
"toolID": "sys.read", | ||
"name": "read", | ||
"description": "Reads the contents of a file", | ||
"parameters": { | ||
"properties": { | ||
"filename": { | ||
"description": "The name of the file to read", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
}, | ||
{ | ||
"function": { | ||
"toolID": "sys.write", | ||
"name": "write", | ||
"description": "Write the contents to a file", | ||
"parameters": { | ||
"properties": { | ||
"content": { | ||
"description": "The content to write", | ||
"type": "string" | ||
}, | ||
"filename": { | ||
"description": "The name of the file to write to", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"role": "user", | ||
"content": [ | ||
{ | ||
"text": "input 1" | ||
} | ||
], | ||
"usage": {} | ||
}, | ||
{ | ||
"role": "assistant", | ||
"content": [ | ||
{ | ||
"text": "TEST RESULT CALL: 1" | ||
} | ||
], | ||
"usage": {} | ||
} | ||
], | ||
"chat": true | ||
} | ||
}, | ||
"result": "TEST RESULT CALL: 1" | ||
}, | ||
"continuationToolID": "inline:" | ||
} | ||
}` |
Oops, something went wrong.