Package ai.acolite.agentsdk.core.runner
Class RunItemUtils
java.lang.Object
ai.acolite.agentsdk.core.runner.RunItemUtils
RunItemUtils
Static utility methods for analyzing lists of RunItems. Extracted from RunState for better testability and reusability.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasPendingToolCalls(List<RunItem> items) Checks if there are any tool calls without corresponding outputs.static booleanhasToolCallOutput(List<RunItem> items, String toolCallId) Checks if a specific tool call has a corresponding output.
-
Method Details
-
hasPendingToolCalls
Checks if there are any tool calls without corresponding outputs.- Parameters:
items- List of conversation items to check- Returns:
- true if there are pending tool calls, false otherwise
-
hasToolCallOutput
Checks if a specific tool call has a corresponding output.- Parameters:
items- List of conversation items to searchtoolCallId- ID of the tool call to find output for- Returns:
- true if output exists, false otherwise
-