From 407fc86124db609cbc1f809c930639c62af414e1 Mon Sep 17 00:00:00 2001 From: Asutosh Samal Date: Tue, 3 Jun 2025 15:27:58 +0530 Subject: [PATCH] toolcall: reduce default iteration --- ols/constants.py | 2 +- ols/customize/ols/prompts.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ols/constants.py b/ols/constants.py index 6e26fcdd3..ac1e34409 100644 --- a/ols/constants.py +++ b/ols/constants.py @@ -60,7 +60,7 @@ class GenericLLMParameters: # Max Iteration for tool calling -MAX_ITERATIONS = 5 +MAX_ITERATIONS = 3 # Token related constants diff --git a/ols/customize/ols/prompts.py b/ols/customize/ols/prompts.py index f36be34ce..735dfa5b5 100644 --- a/ols/customize/ols/prompts.py +++ b/ols/customize/ols/prompts.py @@ -41,6 +41,8 @@ - User is asking about general information about Openshift/Kubernetes. - User is asking "how-to" kind of queries for which you can refer retrieved documents. Refer tool response / output before providing your response. +Do not call a function twice with the same arguments. Never repeat your function calls. +Call a function if it is relevant. Never make up functions. """ # Currently only additional instructions are concatenated to original