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

docs: use invoke instead of run #19457

Merged
merged 2 commits into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/docs/integrations/toolkits/pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}
],
"source": [
"agent.run(\"how many rows are there?\")"
"agent.invoke(\"how many rows are there?\")"
]
},
{
Expand Down Expand Up @@ -154,7 +154,7 @@
}
],
"source": [
"agent.run(\"how many people have more than 3 siblings\")"
"agent.invoke(\"how many people have more than 3 siblings\")"
]
},
{
Expand Down Expand Up @@ -204,7 +204,7 @@
}
],
"source": [
"agent.run(\"whats the square root of the average age?\")"
"agent.invoke(\"whats the square root of the average age?\")"
]
},
{
Expand Down Expand Up @@ -264,7 +264,7 @@
],
"source": [
"agent = create_pandas_dataframe_agent(OpenAI(temperature=0), [df, df1], verbose=True)\n",
"agent.run(\"how many rows in the age column are different?\")"
"agent.invoke(\"how many rows in the age column are different?\")"
]
},
{
Expand Down