"""Protocol controller for the action menu message family."""
from typing import Sequence
from ....config.injection_context import InjectionContext
from .base_service import BaseMenuService
[docs]class Controller:
"""Action menu protocol controller."""
def __init__(self, protocol: str):
"""Initialize the controller."""
[docs] async def determine_roles(self, context: InjectionContext) -> Sequence[str]:
"""Determine what action menu roles are defined."""
service = context.inject_or(BaseMenuService)
if service:
return ["provider"]
[docs] def determine_goal_codes(self) -> Sequence[str]:
"""Return defined goal_codes."""
return []