Skip to content

Commit 90cd5ba

Browse files
committed
fix typescript error
1 parent a330764 commit 90cd5ba

File tree

1 file changed

+2
-0
lines changed
  • typescript-sdk/integrations/mastra/src

1 file changed

+2
-0
lines changed

typescript-sdk/integrations/mastra/src/mastra.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class MastraAgent extends AbstractAgent {
7474

7575
// Handle local agent memory management (from Mastra implementation)
7676
if ("metrics" in this.agent) {
77+
// @ts-ignore
7778
const memory = this.agent.getMemory();
7879

7980
if (memory && input.state && Object.keys(input.state || {}).length > 0) {
@@ -164,6 +165,7 @@ export class MastraAgent extends AbstractAgent {
164165
onRunFinished: async () => {
165166
if ("metrics" in this.agent) {
166167
try {
168+
// @ts-ignore
167169
const memory = this.agent.getMemory();
168170
if (memory) {
169171
const workingMemory = await memory.getWorkingMemory({

0 commit comments

Comments
 (0)