File size: 856 Bytes
c164879
 
 
 
 
f645f69
c164879
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
LLMGuardian - A comprehensive security tool for LLM applications.
"""

__title__ = "llmguardian"
__version__ = "1.4.0"
__author__ = "dewitt4"
__license__ = "MIT"

from typing import List, Dict, Optional

# Package level imports
from .scanners.prompt_injection_scanner import PromptInjectionScanner
from .core.config import Config
from .core.logger import setup_logging

# Initialize logging
setup_logging()

# Version information tuple
VERSION = tuple(map(int, __version__.split(".")))

def get_version() -> str:
    """Return the version string."""
    return __version__

def get_scanner() -> PromptInjectionScanner:
    """Get a configured instance of the prompt injection scanner."""
    return PromptInjectionScanner()

# Export commonly used classes
__all__ = [
    "PromptInjectionScanner",
    "Config",
    "get_version",
    "get_scanner",
]