tinyagent-py 0.0.16__tar.gz → 0.0.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/PKG-INFO +1 -1
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/pyproject.toml +1 -1
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/tiny_code_agent.py +18 -3
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent_py.egg-info/PKG-INFO +1 -1
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/LICENSE +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/README.md +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/setup.cfg +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/__init__.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/__init__.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/example.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/helper.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/modal_sandbox.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/providers/__init__.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/providers/base.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/providers/modal_provider.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/providers/seatbelt_provider.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/safety.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/tools/__init__.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/tools/example_tools.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/utils.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/__init__.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/gradio_callback.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/jupyter_notebook_callback.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/logging_manager.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/rich_code_ui_callback.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/rich_ui_callback.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/hooks/token_tracker.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/mcp_client.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/memory_manager.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/prompts/code_agent.yaml +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/prompts/summarize.yaml +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/prompts/truncation.yaml +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/storage/__init__.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/storage/base.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/storage/json_file_storage.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/storage/postgres_storage.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/storage/redis_storage.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/storage/sqlite_storage.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/tiny_agent.py +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent_py.egg-info/SOURCES.txt +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent_py.egg-info/dependency_links.txt +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent_py.egg-info/requires.txt +0 -0
- {tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent_py.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tinyagent-py
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.17
|
4
4
|
Summary: TinyAgent with MCP Client, Code Agent (Thinking, Planning, and Executing in Python), and Extendable Hooks, Tiny but powerful
|
5
5
|
Author-email: Mahdi Golchin <golchin@askdev.ai>
|
6
6
|
Project-URL: Homepage, https://github.com/askbudi/tinyagent
|
@@ -12,7 +12,7 @@ tinyagent = ["prompts/*.yaml"]
|
|
12
12
|
|
13
13
|
[project]
|
14
14
|
name = "tinyagent-py"
|
15
|
-
version = "0.0.
|
15
|
+
version = "0.0.17"
|
16
16
|
description = "TinyAgent with MCP Client, Code Agent (Thinking, Planning, and Executing in Python), and Extendable Hooks, Tiny but powerful"
|
17
17
|
readme = "README.md"
|
18
18
|
authors = [
|
@@ -7,7 +7,14 @@ from pathlib import Path
|
|
7
7
|
from tinyagent import TinyAgent, tool
|
8
8
|
from tinyagent.hooks.logging_manager import LoggingManager
|
9
9
|
from tinyagent.hooks.rich_code_ui_callback import RichCodeUICallback
|
10
|
-
|
10
|
+
# Conditional import for Jupyter callback - only import when needed
|
11
|
+
try:
|
12
|
+
from tinyagent.hooks.jupyter_notebook_callback import JupyterNotebookCallback, OptimizedJupyterNotebookCallback
|
13
|
+
JUPYTER_CALLBACKS_AVAILABLE = True
|
14
|
+
except ImportError:
|
15
|
+
JUPYTER_CALLBACKS_AVAILABLE = False
|
16
|
+
JupyterNotebookCallback = None
|
17
|
+
OptimizedJupyterNotebookCallback = None
|
11
18
|
from .providers.base import CodeExecutionProvider
|
12
19
|
from .providers.modal_provider import ModalProvider
|
13
20
|
from .providers.seatbelt_provider import SeatbeltProvider
|
@@ -1042,8 +1049,13 @@ class TinyCodeAgent:
|
|
1042
1049
|
)
|
1043
1050
|
self.add_callback(ui_callback)
|
1044
1051
|
elif ui_type == 'jupyter':
|
1052
|
+
if not JUPYTER_CALLBACKS_AVAILABLE:
|
1053
|
+
raise ImportError(
|
1054
|
+
"Jupyter notebook callbacks are not available. "
|
1055
|
+
"Install the required dependencies with: pip install ipython ipywidgets"
|
1056
|
+
)
|
1057
|
+
|
1045
1058
|
if optimized:
|
1046
|
-
from tinyagent.hooks.jupyter_notebook_callback import OptimizedJupyterNotebookCallback
|
1047
1059
|
ui_callback = OptimizedJupyterNotebookCallback(
|
1048
1060
|
logger=self.log_manager.get_logger('tinyagent.hooks.jupyter_notebook_callback') if self.log_manager else None,
|
1049
1061
|
max_visible_turns=20, # Limit visible turns for performance
|
@@ -1057,7 +1069,10 @@ class TinyCodeAgent:
|
|
1057
1069
|
)
|
1058
1070
|
self.add_callback(ui_callback)
|
1059
1071
|
else:
|
1060
|
-
self.log_manager
|
1072
|
+
if self.log_manager:
|
1073
|
+
self.log_manager.get_logger(__name__).warning(f"Unknown UI type: {ui_type}. No UI callback will be added.")
|
1074
|
+
else:
|
1075
|
+
print(f"Warning: Unknown UI type: {ui_type}. No UI callback will be added.")
|
1061
1076
|
|
1062
1077
|
def set_truncation_config(self, config: Dict[str, Any]):
|
1063
1078
|
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: tinyagent-py
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.17
|
4
4
|
Summary: TinyAgent with MCP Client, Code Agent (Thinking, Planning, and Executing in Python), and Extendable Hooks, Tiny but powerful
|
5
5
|
Author-email: Mahdi Golchin <golchin@askdev.ai>
|
6
6
|
Project-URL: Homepage, https://github.com/askbudi/tinyagent
|
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
|
{tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/providers/modal_provider.py
RENAMED
File without changes
|
{tinyagent_py-0.0.16 → tinyagent_py-0.0.17}/tinyagent/code_agent/providers/seatbelt_provider.py
RENAMED
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
|