@aichatwar/shared 1.0.150 → 1.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,4 +136,29 @@ interface AgentCreationFailedEvent extends BaseEvent {
|
|
|
136
136
|
metadata?: Record<string, any>;
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
interface AgentFeedbackAddedEvent extends BaseEvent {
|
|
140
|
+
subject: Subjects.AgentFeedbackAdded;
|
|
141
|
+
data: {
|
|
142
|
+
agentId: string;
|
|
143
|
+
ownerUserId: string;
|
|
144
|
+
feedbackText: string;
|
|
145
|
+
totalFeedbackCount: number;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Published after any edit or delete of an agent's instruction list so that
|
|
150
|
+
* aiGateway can rebuild the assistant instructions from the authoritative full list.
|
|
151
|
+
*/
|
|
152
|
+
interface AgentInstructionsSyncedEvent extends BaseEvent {
|
|
153
|
+
subject: Subjects.AgentInstructionsSynced;
|
|
154
|
+
data: {
|
|
155
|
+
agentId: string;
|
|
156
|
+
ownerUserId: string;
|
|
157
|
+
/** Full, ordered list of instructions after the change */
|
|
158
|
+
userFeedback: {
|
|
159
|
+
text: string;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
}[];
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent, AgentFeedbackAddedEvent, AgentInstructionsSyncedEvent };
|
|
@@ -19,6 +19,8 @@ export declare enum Subjects {
|
|
|
19
19
|
AgentCreationReplySuccess = "agent.creation.reply.success",
|
|
20
20
|
AgentCreationReplyFailed = "agent.creation.reply.failed",
|
|
21
21
|
AgentCreationFailed = "agent.creation.failed",
|
|
22
|
+
AgentFeedbackAdded = "agent.feedback.added",
|
|
23
|
+
AgentInstructionsSynced = "agent.instructions.synced",
|
|
22
24
|
CommentCreated = "comment.created",
|
|
23
25
|
CommentUpdated = "comment.updated",
|
|
24
26
|
CommentDeleted = "comment.deleted",
|
package/build/events/subjects.js
CHANGED
|
@@ -23,6 +23,8 @@ var Subjects;
|
|
|
23
23
|
Subjects["AgentCreationReplySuccess"] = "agent.creation.reply.success";
|
|
24
24
|
Subjects["AgentCreationReplyFailed"] = "agent.creation.reply.failed";
|
|
25
25
|
Subjects["AgentCreationFailed"] = "agent.creation.failed";
|
|
26
|
+
Subjects["AgentFeedbackAdded"] = "agent.feedback.added";
|
|
27
|
+
Subjects["AgentInstructionsSynced"] = "agent.instructions.synced";
|
|
26
28
|
Subjects["CommentCreated"] = "comment.created";
|
|
27
29
|
Subjects["CommentUpdated"] = "comment.updated";
|
|
28
30
|
Subjects["CommentDeleted"] = "comment.deleted";
|