mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-07-02 15:31:17 -03:00
Introduce an agent skill framework for LLM-driven metadata enrichment: - AgentCLI (py/agent_cli/): in-process wrappers around internal services using standard relative imports, eliminating the need for sys.path hacks - LLMService: centralized BYOK (bring-your-own-key) LLM client supporting OpenAI, Ollama, and custom OpenAI-compatible endpoints - PostProcessor: deterministic engine that applies LLM output via AgentCLI (replaces old handler.py + _BASE_MODEL_ALIASES approach) - SkillRegistry: filesystem-based skill discovery (skill.yaml + prompt.md) - AgentService: orchestrates skill execution with WebSocket progress - Frontend AgentManager: WebSocket listeners, skill execution, config UI - Context menu entries (single + bulk) for "Enrich Metadata (Agent)" - Settings UI for AI Provider configuration (BYOK) - Full i18n support across 9 locales Bug fixes found during review: - aiohttp.web.json_response: status_code= -> status= - settings_modal cancelEditApiKey: wrong argument position - AgentManager.isLlmConfigured: allow Ollama without API key - PostProcessor._merge_tags: lowercase all tags to match TagUpdateService
24 lines
705 B
Python
24 lines
705 B
Python
"""Agent-powered skill system for LoRA Manager.
|
|
|
|
This package provides the orchestration layer for LLM/agent-powered features.
|
|
Skills define *what* to do (prompt template). The :class:`AgentService`
|
|
handles *how* (LLM calls, context gathering, validation, progress).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .skill_definition import SkillDefinition, SkillPermissions
|
|
from .skill_registry import SkillRegistry
|
|
from .agent_service import AgentService, AgentProgressReporter, SkillResult
|
|
from .post_processor import PostProcessor
|
|
|
|
__all__ = [
|
|
"AgentProgressReporter",
|
|
"AgentService",
|
|
"PostProcessor",
|
|
"SkillDefinition",
|
|
"SkillPermissions",
|
|
"SkillRegistry",
|
|
"SkillResult",
|
|
]
|