File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
integrations/mastra/typescript/src Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {
1212 ToolCallStartEvent ,
1313} from "@ag-ui/client" ;
1414import { AbstractAgent , EventType } from "@ag-ui/client" ;
15- import type { StorageThreadType } from "@mastra/core" ;
15+ import type { StorageThreadType } from "@mastra/core/memory " ;
1616import { Agent as LocalMastraAgent } from "@mastra/core/agent" ;
1717import { RequestContext } from "@mastra/core/request-context" ;
1818import { randomUUID } from "@ag-ui/client" ;
Original file line number Diff line number Diff line change 11import type { InputContent , Message } from "@ag-ui/client" ;
22import { AbstractAgent } from "@ag-ui/client" ;
33import { MastraClient } from "@mastra/client-js" ;
4- import type { CoreMessage , Mastra } from "@mastra/core" ;
4+ import type { Mastra } from "@mastra/core" ;
5+ import type { CoreMessage } from "@mastra/core/llm" ;
56import { Agent as LocalMastraAgent } from "@mastra/core/agent" ;
67import { RequestContext } from "@mastra/core/request-context" ;
78import { MastraAgent } from "./mastra" ;
@@ -95,7 +96,7 @@ export async function getRemoteAgents({
9596 mastraClient,
9697 resourceId,
9798} : GetRemoteAgentsOptions ) : Promise < Record < string , AbstractAgent > > {
98- const agents = await mastraClient . getAgents ( ) ;
99+ const agents = await mastraClient . listAgents ( ) ;
99100
100101 return Object . entries ( agents ) . reduce (
101102 ( acc , [ agentId ] ) => {
@@ -124,7 +125,7 @@ export function getLocalAgents({
124125 resourceId,
125126 requestContext,
126127} : GetLocalAgentsOptions ) : Record < string , AbstractAgent > {
127- const agents = mastra . getAgents ( ) || { } ;
128+ const agents = mastra . listAgents ( ) || { } ;
128129
129130 const agentAGUI = Object . entries ( agents ) . reduce (
130131 ( acc , [ agentId , agent ] ) => {
You can’t perform that action at this time.
0 commit comments