diff --git a/templates/components/engines/typescript/agent/tools/artifact.ts b/templates/components/engines/typescript/agent/tools/artifact.ts index 31d12bf6..b538c2c9 100644 --- a/templates/components/engines/typescript/agent/tools/artifact.ts +++ b/templates/components/engines/typescript/agent/tools/artifact.ts @@ -131,11 +131,10 @@ export class ArtifactTool implements BaseTool { async call(input: ArtifactParameter) { try { - const versionId = crypto.randomUUID(); const artifact = await this.generateArtifact(input.requirement); const result = await this.executeArtifact(artifact); - console.log({ versionId, artifact, result }); - return { versionId, artifact, result } as unknown as JSONValue; + console.log({ artifact, result }); + return { artifact, result } as unknown as JSONValue; } catch (error) { return {}; } diff --git a/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx b/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx index 6b88f44c..c2992f81 100644 --- a/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx +++ b/templates/types/streaming/nextjs/app/components/ui/chat/widgets/Artifact.tsx @@ -37,7 +37,6 @@ type ArtifactResult = { }; export type ArtifactData = { - // versionId?: string; artifact?: Artifact; result?: ArtifactResult; };