mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 22:28:28 +00:00
fix: mcp return
This commit is contained in:
parent
96c5800807
commit
ef73a61035
@ -1,6 +1,5 @@
|
||||
import type { User } from "~/models/user.server";
|
||||
import { createWorkspace } from "~/models/workspace.server";
|
||||
import { singleton } from "~/utils/singleton";
|
||||
|
||||
export async function postAuthentication({
|
||||
user,
|
||||
|
||||
@ -111,7 +111,7 @@ export async function callMemoryTool(
|
||||
// Handler for memory_ingest
|
||||
async function handleMemoryIngest(args: any) {
|
||||
try {
|
||||
const response = addToQueue(
|
||||
const response = await addToQueue(
|
||||
{
|
||||
episodeBody: args.message,
|
||||
referenceTime: new Date().toISOString(),
|
||||
@ -124,7 +124,10 @@ async function handleMemoryIngest(args: any) {
|
||||
content: [
|
||||
{
|
||||
type: "text",
|
||||
text: JSON.stringify(response),
|
||||
text: JSON.stringify({
|
||||
success: true,
|
||||
id: response.id,
|
||||
}),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user