feat(harness): add information gain stop and audit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user