⚙️ Protocols
Order-independent protocols
DirectiveProvider
DirectiveProviderclass DirectiveProvider(AgentComponent):
def get_constraints(self) -> Iterator[str]:
return iter([])
def get_resources(self) -> Iterator[str]:
return iter([])
def get_best_practices(self) -> Iterator[str]:
return iter([])class WebSearchComponent(DirectiveProvider):
def get_resources(self) -> Iterator[str]:
yield "Internet access for searches and information gathering."
# We can skip "get_constraints" and "get_best_practices" if they aren't neededCommandProvider
CommandProviderOrder-dependent protocols
MessageProvider
MessageProviderAfterParse
AfterParseExecutionFailure
ExecutionFailureAfterExecute
AfterExecuteLast updated
Was this helpful?