mirror of
https://github.com/stablyai/orca.git
synced 2026-10-21 08:03:33 +00:00
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
import { defineMethod, type RpcMethod } from '../core'
|
|
|
|
export const DIAGNOSTICS_METHODS: RpcMethod[] = [
|
|
defineMethod({
|
|
name: 'diagnostics.memory',
|
|
params: null,
|
|
handler: async (_params, { runtime }) => {
|
|
return await runtime.getMemorySnapshot()
|
|
}
|
|
})
|
|
]
|