Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Merge branch 'tools'

Tomas Valentaf156729d2633
diff --cc api-service/codegen/callback_handler.py
index 66f447fce,926b8282e..cbbf81e90
--- a/api-service/codegen/callback_handler.py
+++ b/api-service/codegen/callback_handler.py
@@@ -1,6 -1,9 +1,7 @@@
+ import os
from typing import Dict, Any, List, Union, Optional
-
-# import sys
+import datetime
import uuid
-from pprint import pprint
from pydantic import PrivateAttr
from langchain.callbacks.base import BaseCallbackHandler
@@@ -55,11 -29,8 +56,12 @@@ class CustomCallbackHandler(BaseCallbac
_current_action_id: Optional[str] = None
_database: Database = PrivateAttr()
_run_id: str = PrivateAttr()
+ _file = open("out.txt", "w+")
+ _raw_logs: str = ""
+
+ _rt: RepeatedTimer = PrivateAttr()
+
def __init__(self, database: Database, run_id: str, **kwargs: Any):
super().__init__(**kwargs)
self._database = database