GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — intelliyang/main.py at claude/openroadm-yang-chatbot-UlfIN · brettleehari/intelliyang

This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Expand file tree

/

main.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
47 lines (37 loc) · 1.1 KB
/

main.py

Copy path

File metadata and controls

47 lines (37 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
39
40
41
42
43
44
45
46
47
"""Entry point for the OpenROADM YANG CLI Chatbot."""
from __future__ import annotations
import sys
from pathlib import Path
import click
from yang_chatbot.utils.logging_config import setup_logging
@click.command()
@click.option(
"--config", "-c",
default="config.yaml",
help="Path to configuration file",
)
@click.option(
"--yang-dir", "-d",
default=None,
help="Path to YANG models directory (overrides config)",
)
@click.option(
"--log-level", "-l",
default="WARNING",
type=click.Choice(["DEBUG", "INFO", "WARNING", "ERROR"], case_sensitive=False),
help="Logging level",
)
@click.option(
"--log-file",
default=None,
help="Log file path",
)
def main(config: str, yang_dir: str, log_level: str, log_file: str):
"""OpenROADM YANG CLI Chatbot - AI-powered YANG model assistant."""
setup_logging(level=log_level, log_file=log_file)
from yang_chatbot.cli.chatbot import YANGChatbot
chatbot = YANGChatbot(config_path=config)
chatbot.initialize(yang_directory=yang_dir)
chatbot.start_interactive_session()
if __name__ == "__main__":
main()
You are visitor 01402911 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.