Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add otel events to smol dev

Tomas Valentafd81335667c2
diff --git a/api-service/agent/smol_agent.py b/api-service/agent/smol_agent.py
index 805f1635c..035b93d76 100644
--- a/api-service/agent/smol_agent.py
+++ b/api-service/agent/smol_agent.py
@@ -469,6 +469,13 @@ Begin generating the code now.
"type": "tool",
}
)
+ span.add_event(
+ "file-saved",
+ {
+ "filename": filepath,
+ "model": "gpt-4",
+ },
+ )
await fixClockDrift
await playground.push_repo(
@@ -492,6 +499,12 @@ Begin generating the code now.
"type": "tool",
}
)
+ span.add_event(
+ "pushed-repository",
+ {
+ "repository": f"{owner}/{repo}",
+ },
+ )
await self.on_interaction_request(
AgentInteractionRequest(
@@ -531,6 +544,10 @@ Begin generating the code now.
"type": "playground",
}
)
+ span.add_event(
+ "closed-playground",
+ {},
+ )
await self.on_logs(
{
"message": f"Agent run finished",