my harness for niri
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 21 lines 459 B view raw
1import type OpenAI from "openai" 2 3export type Message = OpenAI.Chat.ChatCompletionMessageParam 4 5export type TriggerSource = "discord" | "bsky" | "webhook" | "cron" | "chat" 6 7export interface UserMessage { 8 source: TriggerSource 9 triggeredAt: string 10 content: string 11 clientId?: string 12 raw: unknown 13} 14 15export interface RunnerState { 16 running: boolean 17 conversation: Message[] 18 pendingInputs: UserMessage[] 19 tokenCount: number 20 contextSize: number 21}