@@ -222,6 +222,31 @@ export class ToolExecutionComponent extends Container {
|
||||
if (this.hideComponent) {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (this.hasRendererDefinition() && this.getRenderShell() === "self") {
|
||||
const contentLines = this.selfRenderContainer.render(width);
|
||||
if (contentLines.length === 0 && this.imageComponents.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const lines: string[] = [];
|
||||
if (contentLines.length > 0) {
|
||||
lines.push("");
|
||||
lines.push(...contentLines);
|
||||
}
|
||||
for (let i = 0; i < this.imageComponents.length; i++) {
|
||||
const spacer = this.imageSpacers[i];
|
||||
if (spacer) {
|
||||
lines.push(...spacer.render(width));
|
||||
}
|
||||
const imageComponent = this.imageComponents[i];
|
||||
if (imageComponent) {
|
||||
lines.push(...imageComponent.render(width));
|
||||
}
|
||||
}
|
||||
return lines;
|
||||
}
|
||||
|
||||
return super.render(width);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user