(
request: Request,
{ params }: { params: Promise<{ agentId: string }> }
)
| 5 | export const dynamic = "force-dynamic" |
| 6 | |
| 7 | export async function GET( |
| 8 | request: Request, |
| 9 | { params }: { params: Promise<{ agentId: string }> } |
| 10 | ) { |
| 11 | try { |
| 12 | const session = await requireSession(request) |
| 13 | const { agentId } = await params |
| 14 | return Response.json({ |
| 15 | artifacts: await listArtifactsForAgent(session.apiKey, agentId), |
| 16 | }) |
| 17 | } catch (error) { |
| 18 | return jsonError(error, "Failed to list agent artifacts.") |
| 19 | } |
| 20 | } |
nothing calls this directly
no test coverage detected