AGENTIC BEHAVIOR
#9593
-
Hello, I have just started experimenting with Haystack. Is there anyway to influence the Agent behavior?
Thanks for your support. |
Beta Was this translation helpful? Give feedback.
Answered by
Amnah199
Jul 16, 2025
Replies: 1 comment
-
Hi @IMPERA88, welcome to the Haystack community! 👋
Let us know how it works out! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
IMPERA88
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @IMPERA88, welcome to the Haystack community! 👋
Regarding your questions,
For now, you can best guide the Agent's behavior through prompt engineering—specifically by instructing it when to avoid using tools based on your use case.
Besides prompt, you can fine-tune the Agent’s behavior using the initialization parameters:
max_agent_steps
– Limits the number of reasoning iterations the Agent performs.exit_conditions
– Specifies the conditions under which the Agent should stop.raise_on_tool_invocation_failure
– Controls whether the pipeline should raise an error or continue when a tool call fails.