Skip to content

Commit ce3ba95

Browse files
committed
Remove unnecessary throws declaration
1 parent 9f96e1a commit ce3ba95

File tree

1 file changed

+1
-3
lines changed
  • foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai

1 file changed

+1
-3
lines changed

foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiTool.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,11 @@ private static SchemaGenerator createSchemaGenerator() {
164164
* @param tools the list of tools to execute
165165
* @param msg the assistant message containing a list of tool calls with arguments
166166
* @return a result object that contains the list of tool messages with the results
167-
* @throws IllegalStateException if a tool is missing a method reference for function execution.
168167
*/
169168
@Beta
170169
@Nonnull
171170
public static Execution execute(
172-
@Nonnull final List<OpenAiTool> tools, @Nonnull final OpenAiAssistantMessage msg)
173-
throws IllegalArgumentException {
171+
@Nonnull final List<OpenAiTool> tools, @Nonnull final OpenAiAssistantMessage msg) {
174172
final var result = new LinkedHashMap<OpenAiFunctionCall, Object>();
175173

176174
final var toolMap = tools.stream().collect(Collectors.toMap(OpenAiTool::getName, identity()));

0 commit comments

Comments
 (0)