Skip to content

Commit cd69ebf

Browse files
authored
Make it more reliable for StructuredAgent (langchain-ai#1453)
StructuredAgent needs to format this to {action, action_input} format where `action_input: string`. However, gpt-3.5-turbo very frequently fails to do so. Instead it generates formats like this: `{action, action_input: {url}}`. This tiny prompt change makes it more reliable.
1 parent 435b9c7 commit cd69ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/src/tools/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class RequestsGetTool extends Tool implements RequestTool {
3333
}
3434

3535
description = `A portal to the internet. Use this when you need to get specific content from a website.
36-
Input should be a url (i.e. https://www.google.com). The output will be the text response of the GET request.`;
36+
Input should be a url string (i.e. "https://www.google.com"). The output will be the text response of the GET request.`;
3737
}
3838

3939
export class RequestsPostTool extends Tool implements RequestTool {

0 commit comments

Comments
 (0)