feat: add logs to response for tool run (#2205)

Co-authored-by: Caren Thomas <caren@caren-mac.local>
This commit is contained in:
cthomas
2024-12-10 13:24:05 -08:00
committed by GitHub
parent cf77cf79f9
commit 68792caec2
5 changed files with 38 additions and 8 deletions

View File

@@ -1829,6 +1829,8 @@ class SyncServer(Server):
date=get_utc_time(),
status="success",
function_return=function_response,
stdout=sandbox_run_result.stdout,
stderr=sandbox_run_result.stderr,
)
except Exception as e:
# same as agent.py
@@ -1844,6 +1846,8 @@ class SyncServer(Server):
date=get_utc_time(),
status="error",
function_return=error_msg,
stdout=[''],
stderr=[traceback.format_exc()],
)
# Composio wrappers