feat: integrate learning module
This commit is contained in:
@@ -951,22 +951,14 @@ export class WorksSquareDesignWorkspace implements DesignWorkspaceModule {
|
||||
|
||||
async confirmGeneration(input: DesignConfirmGenerationInput): Promise<DesignConversation> {
|
||||
const agentSessionId = await this.getAgentSessionId(input.workspaceId, input.conversationId);
|
||||
const action = input.finalPrompt === undefined || input.generationParameters === undefined
|
||||
? {
|
||||
type: 'confirm_generation' as const,
|
||||
quote_id: input.quoteId,
|
||||
}
|
||||
: {
|
||||
type: 'confirm_generation' as const,
|
||||
quote_id: input.quoteId,
|
||||
final_prompt: input.finalPrompt,
|
||||
aspect_ratio: input.generationParameters.aspectRatio,
|
||||
generation_parameters: {
|
||||
model: input.generationParameters.model,
|
||||
resolution: input.generationParameters.resolution,
|
||||
duration_seconds: input.generationParameters.durationSeconds,
|
||||
},
|
||||
};
|
||||
// Prompt and generation parameters are persisted through the quote PATCH
|
||||
// before confirmation. The Agent Runtime confirmation command only owns
|
||||
// the immutable quote id and its aspect-ratio consistency check.
|
||||
const action = {
|
||||
type: 'confirm_generation' as const,
|
||||
quote_id: input.quoteId,
|
||||
aspect_ratio: input.generationParameters?.aspectRatio,
|
||||
};
|
||||
return this.executeAgentTurn({
|
||||
workspaceId: input.workspaceId,
|
||||
conversationId: input.conversationId,
|
||||
|
||||
Reference in New Issue
Block a user