Something went wrong. Try again.
my harness for niri forked from okami.mom/niri
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import type OpenAI from "openai"
export type AssistantMessageWithReasoning = OpenAI.Chat.ChatCompletionAssistantMessageParam & { reasoning_content?: string}
export type Message = OpenAI.Chat.ChatCompletionMessageParam | AssistantMessageWithReasoning
export type TriggerSource = "discord" | "bsky" | "webhook" | "cron" | "chat"
export interface UserMessage { source: TriggerSource triggeredAt: string content: string clientId?: string raw: unknown}
export interface RunnerState { running: boolean conversation: Message[] pendingInputs: UserMessage[] tokenCount: number contextSize: number memoryRecallCooldowns: Record<number, number> memoryRecallTurn: number memoryRecallPending: boolean}