resume method

Future<AgentResponse<State>> resume({
  1. List<ToolResponsePart>? respond,
  2. List<ToolRequestPart>? restart,
  3. CancellationToken? cancel,
  4. Map<String, dynamic>? context,
})

Resumes after an interrupt. Sugar for send with only the resume params.

Pass respond entries (built via AgentInterrupt.respond) and/or restart entries (built via AgentInterrupt.restart); they are bundled into an AgentResume internally.

Implementation

Future<AgentResponse<State>> resume({
  List<ToolResponsePart>? respond,
  List<ToolRequestPart>? restart,
  CancellationToken? cancel,
  Map<String, dynamic>? context,
}) => send(
  respond: respond,
  restart: restart,
  cancel: cancel,
  context: context,
);