@dudousxd/nestjs-agent-store-drizzle 0.12.0 → 0.13.0
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.
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -707,6 +707,12 @@ var DrizzleAgentStore = class {
|
|
|
707
707
|
}).from(agentToolCall).innerJoin(agentMessage, (0, import_drizzle_orm2.eq)(agentToolCall.messageId, agentMessage.id)).where((0, import_drizzle_orm2.and)((0, import_drizzle_orm2.eq)(agentMessage.threadId, threadId), (0, import_drizzle_orm2.eq)(agentToolCall.remember, true)));
|
|
708
708
|
return rows.map((row) => row.toolName);
|
|
709
709
|
}
|
|
710
|
+
async toolCallInput(toolCallId) {
|
|
711
|
+
const [row] = await this.db.select({
|
|
712
|
+
input: agentToolCall.input
|
|
713
|
+
}).from(agentToolCall).where((0, import_drizzle_orm2.eq)(agentToolCall.id, toolCallId));
|
|
714
|
+
return row?.input ?? null;
|
|
715
|
+
}
|
|
710
716
|
async toolCallApproval(toolCallId) {
|
|
711
717
|
const [row] = await this.db.select({
|
|
712
718
|
status: agentToolCall.status,
|