Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
import type { ColorScheme } from '@/sys/io/color'
type JsonPrimitive = string | number | boolean | null
export type Printable = JsonPrimitive | readonly unknown[] | Record<string, unknown>
export type View<T extends Printable = Printable> = Readonly<{
json: T
text: (style: ColorScheme) => string
}>
const TEXT_KEY = 'text'
const JSON_KEY = 'json'
export function view<T extends Printable>(json: T, text: View<T>['text']): View<T> {
return Object.freeze({ json, text })
}
export function isView(value: unknown): value is View {
return (
typeof value === 'object' &&
value !== null &&
JSON_KEY in value &&
TEXT_KEY in value &&
typeof (value as View).text === 'function'
)
}