Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Change post agent return body

Tomas Valenta8ed42c4e2aaa
diff --git a/pages/agent/smol-developer/setup.tsx b/pages/agent/smol-developer/setup.tsx
index 2c47a30d7..0f266d946 100644
--- a/pages/agent/smol-developer/setup.tsx
+++ b/pages/agent/smol-developer/setup.tsx
@@ -64,7 +64,7 @@ async function handlePostAgent(url: string, { arg }: { arg: PostAgentBody }) {
'Content-Type': 'application/json',
},
})
- return await response.json() as { issueID: string }
+ return await response.json() as { issueID: string, owner: string, repo: string }
}
function getSmolDevModelConfig(creds: Creds): ModelConfig & { templateID: TemplateID } {
diff --git a/pages/api/agent.ts b/pages/api/agent.ts
index 907d38a0b..b4cf55cbb 100644
--- a/pages/api/agent.ts
+++ b/pages/api/agent.ts
@@ -139,6 +139,8 @@ async function postAgent(req: NextApiRequest, res: NextApiResponse) {
res.status(200).json({
issueID,
+ owner,
+ repo,
})
} catch (err: any) {
console.error(err)