Skip to content

Instantly share code, notes, and snippets.

View rcssdy's full-sized avatar

Ryan Cassidy rcssdy

  • Medellín, Colombia
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h5>Welcome to the Wank Agent Console, <span id="wank"></span></h5>
@rcssdy
rcssdy / index.ts
Created November 3, 2025 16:22
Mastra memory config
/**
* Memory configuration helper for Mastra agents
*/
import { readFileSync } from "fs"
import { join } from "path"
import { bedrock } from "@ai-sdk/amazon-bedrock"
import { openai } from "@ai-sdk/openai"
import { Memory } from "@mastra/memory"
import { PgVector, PostgresStore } from "@mastra/pg"