praisonaiagents 0.0.35__tar.gz → 0.0.36__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/PKG-INFO +1 -1
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/agent/agent.py +5 -1
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/pandas_tools.py +3 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/yfinance_tools.py +9 -1
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents.egg-info/PKG-INFO +1 -1
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/pyproject.toml +1 -1
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/__init__.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/agent/__init__.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/agents/__init__.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/agents/agents.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/agents/autoagents.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/main.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/memory/memory.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/process/__init__.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/process/process.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/task/__init__.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/task/task.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/__init__.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/arxiv_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/calculator_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/csv_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/duckdb_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/duckduckgo_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/excel_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/file_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/json_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/newspaper_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/python_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/shell_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/spider_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/test.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/wikipedia_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/xml_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents/tools/yaml_tools.py +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents.egg-info/SOURCES.txt +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents.egg-info/dependency_links.txt +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents.egg-info/requires.txt +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents.egg-info/top_level.txt +0 -0
- {praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/setup.cfg +0 -0
@@ -762,4 +762,8 @@ Output MUST be JSON with 'reflection' and 'satisfactory'.
|
|
762
762
|
|
763
763
|
def run(self):
|
764
764
|
"""Alias for start() method"""
|
765
|
-
return self.start()
|
765
|
+
return self.start()
|
766
|
+
|
767
|
+
def start(self, prompt: str, **kwargs):
|
768
|
+
"""Start the agent with a prompt. This is a convenience method that wraps chat()."""
|
769
|
+
return self.chat(prompt, **kwargs)
|
@@ -160,6 +160,9 @@ class PandasTools:
|
|
160
160
|
Dict: Summary statistics and information
|
161
161
|
"""
|
162
162
|
try:
|
163
|
+
if not isinstance(df, pd.DataFrame):
|
164
|
+
raise TypeError(f"Expected pandas DataFrame, got {type(df).__name__}")
|
165
|
+
|
163
166
|
numeric_summary = df.describe().to_dict()
|
164
167
|
# Convert numpy types to native Python types
|
165
168
|
for col in numeric_summary:
|
@@ -145,7 +145,15 @@ class YFinanceTools:
|
|
145
145
|
return [{"error": "yfinance package not available"}]
|
146
146
|
|
147
147
|
hist = ticker.history(period=period, interval=interval, start=start, end=end)
|
148
|
-
|
148
|
+
data = hist.reset_index().to_dict('records')
|
149
|
+
|
150
|
+
# Convert timestamps to ISO format strings
|
151
|
+
for record in data:
|
152
|
+
if 'Date' in record and hasattr(record['Date'], 'isoformat'):
|
153
|
+
record['Date'] = record['Date'].isoformat()
|
154
|
+
if 'Datetime' in record and hasattr(record['Datetime'], 'isoformat'):
|
155
|
+
record['Datetime'] = record['Datetime'].isoformat()
|
156
|
+
return data
|
149
157
|
except Exception as e:
|
150
158
|
error_msg = f"Error fetching historical data: {str(e)}"
|
151
159
|
logging.error(error_msg)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{praisonaiagents-0.0.35 → praisonaiagents-0.0.36}/praisonaiagents.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|