Skip to main content
TOML은 구성 파일용 파일 형식입니다. 읽고 쓰기 쉽도록 설계되었으며 딕셔너리에 명확하게 매핑되도록 설계되었습니다. 사양은 오픈 소스입니다. TOML은 많은 프로그래밍 언어로 구현되어 있습니다. TOML이라는 이름은 창시자인 Tom Preston-Werner를 언급하여 “Tom’s Obvious, Minimal Language”의 약어입니다.
Toml 파일을 로드해야 하는 경우 TomlLoader를 사용하세요.
from langchain_community.document_loaders import TomlLoader
loader = TomlLoader("example_data/fake_rule.toml")
rule = loader.load()
rule
[Document(page_content='{"internal": {"creation_date": "2023-05-01", "updated_date": "2022-05-01", "release": ["release_type"], "min_endpoint_version": "some_semantic_version", "os_list": ["operating_system_list"]}, "rule": {"uuid": "some_uuid", "name": "Fake Rule Name", "description": "Fake description of rule", "query": "process where process.name : \\"somequery\\"\\n", "threat": [{"framework": "MITRE ATT&CK", "tactic": {"name": "Execution", "id": "TA0002", "reference": "https://attack.mitre.org/tactics/TA0002/"}}]}}', metadata={'source': 'example_data/fake_rule.toml'})]

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I