UNPKG

gaunt-sloth-assistant

Version:

[![Tests and Lint](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [![Integration Tests](https://github.co

13 lines (12 loc) 805 B
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>>; }