Skip to content

Commit a224866

Browse files
committed
fix build
1 parent 83c256b commit a224866

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/ai/ai-projects/samples-dev/agents/tools/agentMemorySearch.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,12 @@ export async function main(): Promise<void> {
7777
description: "Memory store for agent conversations",
7878
},
7979
);
80+
const chatModelUsed =
81+
"chat_model" in memoryStore.definition
82+
? memoryStore.definition.chat_model
83+
: chatModelDeployment;
8084
console.log(
81-
`Created memory store: ${memoryStore.name} (${memoryStore.id}) using chat model '${memoryStore.definition.kind === "default" ? memoryStore.definition.chat_model : chatModelDeployment}'`,
85+
`Created memory store: ${memoryStore.name} (${memoryStore.id}) using chat model '${chatModelUsed}'`,
8286
);
8387

8488
// Configure Memory Search tool to attach to the agent

0 commit comments

Comments
 (0)