mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 07:14:20 +00:00
enable import of subcommands from llama-agentic-system
This commit is contained in:
parent
67f0510edd
commit
6bcd826b32
1 changed files with 11 additions and 0 deletions
|
@ -23,6 +23,17 @@ class LlamaCLIParser:
|
|||
Download.create(subparsers)
|
||||
InferenceParser.create(subparsers)
|
||||
|
||||
# Import sub-commands from agentic_system if they exist
|
||||
try:
|
||||
from agentic_system.cli.subcommand_modules import (
|
||||
SUBCOMMAND_MODULES,
|
||||
)
|
||||
for module in SUBCOMMAND_MODULES:
|
||||
module.create(subparsers)
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
def parse_args(self) -> argparse.Namespace:
|
||||
return self.parser.parse_args()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue