gaunt-sloth-assistant
Version:
[](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [ • 805 B
TypeScript
import type { RunnableConfig } from '@langchain/core/runnables';
import { IterableReadableStream } from '@langchain/core/utils/stream';
import { GthConfig } from '#src/config.js';
import { BaseCheckpointSaver } from '@langchain/langgraph';
import { Message } from '#src/modules/types.js';
export type StatusLevel = 'info' | 'warning' | 'error' | 'success' | 'debug' | 'display' | 'stream';
export type GthCommand = 'ask' | 'pr' | 'review' | 'chat' | 'code';
export interface GthAgentInterface {
init(command: GthCommand | undefined, configIn: GthConfig, checkpointSaver?: BaseCheckpointSaver | undefined): Promise<void>;
invoke(messages: Message[], runConfig: RunnableConfig): Promise<string>;
stream(messages: Message[], runConfig: RunnableConfig): Promise<IterableReadableStream<string>>;
}