Skip to content

Commit b3e3029

Browse files
committed
Release v2.2.9
1 parent f98d3a9 commit b3e3029

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

docs/advanced-security-agent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ os.environ["PANDASAI_API_KEY"] = "$2a****************************"
2424
security = AdvancedSecurityAgent()
2525
agent = Agent("github-stars.csv", security=security)
2626

27-
print(agent.chat("return total stars count"))
27+
print(agent.chat("return all the folders in the root directory"))
2828
```

examples/security_agent.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import os
22

33
from pandasai.agent.agent import Agent
4-
from pandasai.ee.agents.security_agent import SecurityAgent
4+
from pandasai.ee.agents.advanced_security_agent import AdvancedSecurityAgent
55
from pandasai.llm.openai import OpenAI
66

77
os.environ["PANDASAI_API_KEY"] = "$2a****************************"
88

9-
security = SecurityAgent()
9+
security = AdvancedSecurityAgent()
1010
agent = Agent("github-stars.csv", security=security)
1111

12-
print(agent.chat("return total stars count"))
13-
12+
print(agent.chat("return all the folders in the root directory"))
1413

1514
# Using Security standalone
1615
llm = OpenAI("openai_key")
17-
security = SecurityAgent(config={"llm": llm})
18-
security.evaluate("return total github star count for year 2023")
16+
security = AdvancedSecurityAgent(config={"llm": llm})
17+
security.evaluate("return all the folders in the root directory")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pandasai"
3-
version = "2.2.8"
3+
version = "2.2.9"
44
description = "Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG."
55
authors = ["Gabriele Venturi"]
66
license = "MIT"

0 commit comments

Comments
 (0)