Number of items completed.
Tracks how many items have been successfully processed so far in the current operation. This value increments as each item is completed, providing real-time progress indication.
The ratio of completed to total gives the completion percentage:
progress = (completed / total) * 100
Timestamp when the event was created.
ISO 8601 formatted date-time string indicating when this event was emitted by the system. This timestamp is crucial for event ordering, performance analysis, and debugging the agent workflow execution timeline.
Format: "YYYY-MM-DDTHH:mm:ss.sssZ" (e.g., "2024-01-15T14:30:45.123Z")
A unique identifier for the event.
Function calling trial statistics (total, success, failure counts).
List of DTO type name refactoring operations to fix naming violations.
Each refactor specifies a base type name that needs to be renamed from an incorrect form (omitting words) to the correct form (preserving all table name components).
An empty array indicates no violations were detected - all type names correctly preserve their table name components.
Token consumption breakdown (input, output, cache hits).
Total number of items to process.
Represents the complete count of operations, files, endpoints, or other entities that need to be processed in the current workflow step. This value is typically determined at the beginning of an operation and remains constant throughout the process.
Used together with the completed field to calculate progress percentage
and estimate time to completion.
Unique identifier for the event type.
A literal string that discriminates between different event types in the AutoBE system. This field enables TypeScript's discriminated union feature, allowing type-safe event handling through switch statements or conditional checks.
Examples: "analyzeWrite", "databaseSchema", "interfaceOperation", "testScenario"
Event emitted when DTO type names are validated and refactored for naming compliance.
This event is dispatched during the Interface phase when the Schema Rename agent analyzes existing DTO type names against Prisma table names to detect violations of the critical naming convention: ALL words from the Prisma table name MUST be preserved in the DTO type name.
The agent identifies type names that incorrectly omit service prefixes or intermediate components and provides refactoring operations to fix them.
Common violations detected:
ISaleshould beIShoppingSaleIBbsCommentshould beIBbsArticleCommentIShoppingRefundshould beIShoppingOrderGoodRefundThe orchestrator automatically applies these refactorings to:
ISale)ISale.ICreate,ISale.IUpdate,ISale.ISummary)IPageISale)$refreferences throughout the OpenAPI documentExample
See
AutoBeInterfaceSchemaRefactor for individual refactoring operations