intelli-monad-0.1.0.2: Type level prompt with openai.
Safe HaskellSafe-Inferred
LanguageHaskell2010

IntelliMonad.Prompt

Documentation

setContext :: forall p m. (MonadIO m, MonadFail m, PersistentBackend p) => Context -> Prompt m () Source #

push :: forall p m. (MonadIO m, MonadFail m, PersistentBackend p) => Contents -> Prompt m () Source #

callPreHook :: forall p m. (MonadIO m, MonadFail m, PersistentBackend p) => Prompt m () Source #

callPostHook :: forall p m. (MonadIO m, MonadFail m, PersistentBackend p) => Prompt m () Source #

callWithValidation :: forall validation p m. (MonadIO m, MonadFail m, PersistentBackend p, Tool validation, FromJSON validation, FromJSON (Output validation), ToJSON validation, ToJSON (Output validation)) => Contents -> Prompt m (Maybe validation) Source #

runPromptWithValidation :: forall validation p m. (MonadIO m, MonadFail m, PersistentBackend p, Tool validation, FromJSON validation, FromJSON (Output validation), ToJSON validation, ToJSON (Output validation)) => [ToolProxy] -> [CustomInstructionProxy] -> Text -> CreateChatCompletionRequest -> Text -> m (Maybe validation) Source #

generate :: forall input output m p. (MonadIO m, MonadFail m, p ~ StatelessConf, ToJSON input, FromJSON input, JSONSchema input, Tool output, FromJSON output, FromJSON (Output output), ToJSON output, ToJSON (Output output)) => Contents -> input -> m (Maybe output) Source #

clear :: forall p m. (MonadIO m, MonadFail m, PersistentBackend p) => Prompt m () Source #

Orphan instances