intentcall_testing library

Extensions

AgentCallEntryTest on AgentCallEntry

Functions

expectAgentData(AgentResult result, Map<String, Object?> expected) → void
Compares registry invoke result data to an expected map (subset).
invokeRegistry(AgentRegistry registry, String qualifiedName, AgentArguments arguments) Future<AgentResult>
normalizeAdapterMapResult(Object? result) → AgentResult
normalizeJsonTextAgentResult(Object? result) → AgentResult
verifyNativeAdapterContract({required AgentAdapter adapter, required bool isPublished(String qualifiedName), required AdapterContractInvoker invoke, required AdapterContractResultNormalizer normalize, bool? requireHotSync, bool requireDetachCleanup = true}) Future<AdapterContractProof>

Typedefs

AdapterContractInvoker = FutureOr<Object?> Function(String qualifiedName, AgentArguments arguments)
AdapterContractResultNormalizer = AgentResult Function(Object? result)

Exceptions / Errors

AdapterContractViolation