Skip to content

Commit 407fc86

Browse files
committed
toolcall: reduce default iteration
1 parent da0aa9a commit 407fc86

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ols/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class GenericLLMParameters:
6060

6161

6262
# Max Iteration for tool calling
63-
MAX_ITERATIONS = 5
63+
MAX_ITERATIONS = 3
6464

6565

6666
# Token related constants

ols/customize/ols/prompts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
- User is asking about general information about Openshift/Kubernetes.
4242
- User is asking "how-to" kind of queries for which you can refer retrieved documents.
4343
Refer tool response / output before providing your response.
44+
Do not call a function twice with the same arguments. Never repeat your function calls.
45+
Call a function if it is relevant. Never make up functions.
4446
"""
4547

4648
# Currently only additional instructions are concatenated to original

0 commit comments

Comments
 (0)