File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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 ()));
You can’t perform that action at this time.
0 commit comments