Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

ai / ai-workflow

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • ai-workflow
  • workspace
  • agent-admin
  • backend
  • app
  • config
  • settings.py
  • sunqi02's avatar
    feat(layer3): replace skill_scanner with Toolkit.register_agent_skill · 65cb8408 ...
    Replace the self-built skill_scanner.py (which scanned SKILL.md files and
    wrote config/skills.json) with AgentScope's native Toolkit.register_agent_skill().
    Skills are now registered directly to the Toolkit at AgentHub startup, and
    skill metadata is read from toolkit.skills instead of the JSON cache file.
    
    Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
    sunqi02 committed May 22, 2026
    65cb8408 Browse Files
settings.py 367 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
from pydantic import BaseModel
from typing import List


class ModelConfig(BaseModel):
    type: str
    api_base: str
    model_name: str
    api_key: str


class AgentConfig(BaseModel):
    name: str
    code: str
    role: str
    prompt_template: str
    skills: List[str] = []


class Settings(BaseModel):
    company: str = "公司"
    max_messages: int = 50