20 lines
559 B
Java
20 lines
559 B
Java
package com.superbiz.agent.harness.progress;
|
|
|
|
public record CompletedToolCall(
|
|
String toolCallId,
|
|
String toolName,
|
|
String normalizedScope) {
|
|
|
|
public CompletedToolCall {
|
|
requireText(toolCallId, "toolCallId");
|
|
requireText(toolName, "toolName");
|
|
requireText(normalizedScope, "normalizedScope");
|
|
}
|
|
|
|
private static void requireText(String value, String name) {
|
|
if (value == null || value.isBlank()) {
|
|
throw new IllegalArgumentException(name + " must not be blank");
|
|
}
|
|
}
|
|
}
|