/
githubmirror
/
sgr-agent-core
Обзор
Документация
Войти
/
githubmirror
/
sgr-agent-core
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/progressive_discovery/models.py
19 строк
672 B
Pavel Zloi
Tools filtering logic (#166)
18 фев 2026, 17:43
Не верифицирован
18 фев 2026, 17:43
ed63e2b
Код
Авторство
О чём код?
from pydantic import Field from sgr_agent_core.base_tool import BaseTool from sgr_agent_core.models import AgentContext class ProgressiveDiscoveryContext(AgentContext): """Extended agent context for progressive discovery. Inherits all standard AgentContext fields (iteration, state, searches, etc.) and adds tool lists used by the discovery mechanism. """ all_tools: list[type[BaseTool]] = Field( default_factory=list, description="Full list of non-system tools available for discovery" ) discovered_tools: list[type[BaseTool]] = Field( default_factory=list, description="Tools discovered so far via SearchToolsTool" )