You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While learning to use create_sql_agent (in Python), I noticed a version of this in Javascript (createSqlAgent).
In the Javascript version, in its intermediate steps (for query-sql tool), the observation field contains data like this...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
While learning to use create_sql_agent (in Python), I noticed a version of this in Javascript (createSqlAgent).
In the Javascript version, in its intermediate steps (for query-sql tool), the observation field contains data like this...
"observation": "[{\"EmployeeID\":1,\"LastName\":\"Davolio\",\"FirstName\":\"Nancy\",\"Title\":\"Sales Representative\",\"TitleOfCourtesy\":\"Ms.\",\"BirthDate\":\"1968-12-08\",\"HireDate\":\"2012-05-01\",\"Address\":\"507 - 20th Ave. E.Apt. 2A\",\"City\":\"Seattle\",\"Region\":\"North America\"
...The results contain the column names with their values.
In the Python version, in the intermediate steps (for query_sql_db), the output data looks like this...
[(1, 'Davolio', 'Nancy', 'Sales Representative', 'Ms.', '1968-12-08', '2012-05-01', '507 - 20th Ave. E.Apt. 2A', 'Seattle', 'North America'...
Is there a way to reproduce the Javascript results (JSON output) in Python?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions