fix: update to reflect usage of generics

Philipp Burckhardt 2023-06-13 20:15:15 -04:00 zatwierdzone przez Travis Fischer
rodzic bbf3f25d9d
commit 5bddd1f04a
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@ import defaultKy from 'ky'
import * as types from './types'
import { DEFAULT_OPENAI_MODEL } from './constants'
import { HumanFeedbackOptions } from './human-feedback'
import { HumanFeedbackOptions, HumanFeedbackType } from './human-feedback'
import { HumanFeedbackMechanismCLI } from './human-feedback/cli'
import { OpenAIChatCompletion } from './llms/openai'
import { defaultLogger } from './logger'
@ -20,7 +20,7 @@ export class Agentic {
types.BaseLLMOptions,
'provider' | 'model' | 'modelParams' | 'timeoutMs' | 'retryConfig'
>
protected _humanFeedbackDefaults: HumanFeedbackOptions
protected _humanFeedbackDefaults: HumanFeedbackOptions<HumanFeedbackType>
protected _idGeneratorFn: types.IDGeneratorFunction
protected _id: string
@ -31,7 +31,7 @@ export class Agentic {
types.BaseLLMOptions,
'provider' | 'model' | 'modelParams' | 'timeoutMs' | 'retryConfig'
>
humanFeedbackDefaults?: HumanFeedbackOptions
humanFeedbackDefaults?: HumanFeedbackOptions<HumanFeedbackType>
idGeneratorFn?: types.IDGeneratorFunction
logger?: types.Logger
ky?: types.KyInstance