@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.d.cts CHANGED
@@ -3895,6 +3895,7 @@ declare class DrizzleAgentStore implements AgentStore, ThreadTurnReader {
3895
3895
  private approvalsFor;
3896
3896
  /** Tools whose approval someone asked to remember in this thread. */
3897
3897
  rememberedApprovals(threadId: string): Promise<string[]>;
3898
+ toolCallInput(toolCallId: string): Promise<unknown>;
3898
3899
  toolCallApproval(toolCallId: string): Promise<ToolCallApprovalState | null>;
3899
3900
  ownerOfActiveStream(runId: string): Promise<string | null>;
3900
3901
  setTitle(threadId: string, title: string): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -3895,6 +3895,7 @@ declare class DrizzleAgentStore implements AgentStore, ThreadTurnReader {
3895
3895
  private approvalsFor;
3896
3896
  /** Tools whose approval someone asked to remember in this thread. */
3897
3897
  rememberedApprovals(threadId: string): Promise<string[]>;
3898
+ toolCallInput(toolCallId: string): Promise<unknown>;
3898
3899
  toolCallApproval(toolCallId: string): Promise<ToolCallApprovalState | null>;
3899
3900
  ownerOfActiveStream(runId: string): Promise<string | null>;
3900
3901
  setTitle(threadId: string, title: string): Promise<void>;
package/dist/index.js CHANGED
@@ -667,6 +667,12 @@ var DrizzleAgentStore = class {
667
667
  }).from(agentToolCall).innerJoin(agentMessage, eq(agentToolCall.messageId, agentMessage.id)).where(and(eq(agentMessage.threadId, threadId), eq(agentToolCall.remember, true)));
668
668
  return rows.map((row) => row.toolName);
669
669
  }
670
+ async toolCallInput(toolCallId) {
671
+ const [row] = await this.db.select({
672
+ input: agentToolCall.input
673
+ }).from(agentToolCall).where(eq(agentToolCall.id, toolCallId));
674
+ return row?.input ?? null;
675
+ }
670
676
  async toolCallApproval(toolCallId) {
671
677
  const [row] = await this.db.select({
672
678
  status: agentToolCall.status,