reviews method
Resolves the reviews held for the id argument.
Implementation
AgentToolResult reviews({required Map<String, Object?> args}) {
final decoded = ToolIngress.validate(args, ReviewsLookupIntent.fromWire);
return decoded.fold((intent) {
final document = store.get<T>(intent.id);
if (document == null) return const AgentToolResult.empty();
return AgentToolResult(
ok: true,
facts: <AgentFact>[
_factOf(registry.resolve<T>(), document.key, document.value),
],
);
}, (error) => AgentToolResult.rejected(ToolIngress.feedback(error)));
}