Skip to content

Commit

Permalink
Release v2.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed Jul 3, 2024
1 parent f98d3a9 commit b3e3029
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/advanced-security-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ os.environ["PANDASAI_API_KEY"] = "$2a****************************"
security = AdvancedSecurityAgent()
agent = Agent("github-stars.csv", security=security)

print(agent.chat("return total stars count"))
print(agent.chat("return all the folders in the root directory"))
```
11 changes: 5 additions & 6 deletions examples/security_agent.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import os

from pandasai.agent.agent import Agent
from pandasai.ee.agents.security_agent import SecurityAgent
from pandasai.ee.agents.advanced_security_agent import AdvancedSecurityAgent
from pandasai.llm.openai import OpenAI

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

security = SecurityAgent()
security = AdvancedSecurityAgent()
agent = Agent("github-stars.csv", security=security)

print(agent.chat("return total stars count"))

print(agent.chat("return all the folders in the root directory"))

# Using Security standalone
llm = OpenAI("openai_key")
security = SecurityAgent(config={"llm": llm})
security.evaluate("return total github star count for year 2023")
security = AdvancedSecurityAgent(config={"llm": llm})
security.evaluate("return all the folders in the root directory")
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pandasai"
version = "2.2.8"
version = "2.2.9"
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."
authors = ["Gabriele Venturi"]
license = "MIT"
Expand Down

0 comments on commit b3e3029

Please sign in to comment.