simian 0.2.1

A command-line tool for exploring and implementing Machine Learning algorithms in Rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { z } from 'zod'

// This is used in note system.
export const BlockPointSchema = z.object({
  blockId: z.string().length(21).describe('The NanoID of the block'),
  offset: z
    .number()
    .int()
    .min(0)
    .describe('The character index within that block'),
})

export const BlockSelectionSchema = z.object({
  anchor: BlockPointSchema,
  focus: BlockPointSchema,
})