Source code for tooluniverse.federal_register_tool

from typing import Dict
from .base_rest_tool import BaseRESTTool
from .tool_registry import register_tool


[docs] @register_tool("FederalRegisterTool") class FederalRegisterTool(BaseRESTTool): """REST tool for Federal Register API with bracket-notation parameter mapping."""
[docs] def _get_param_mapping(self) -> Dict[str, str]: return { "term": "conditions[term]", "document_type": "conditions[type][]", "agency": "conditions[agencies][]", }