Artifacts
Register Dart artifact providers for diagnostic exports that Studio and agents can discover and request.
Implement AnsightArtifactProvider, then register it:
final registration = await Ansight.instance.registerArtifactProvider(
AppStateArtifactProvider(),
);
Registered providers are exposed through artifacts.query and artifacts.request. Payloads may be text or binary; queueBinaryTransfer(...) handles larger native transfers tied to a live request.
Use artifacts for named outputs such as state JSON, database exports, network traces, map snapshots, or support ZIPs. Keep sensitive exports behind read tool access and return only the data the workflow requires.