Clarify Tool Functions section in agent documentation by removing redundant text in YAML registration instructions for Java classes.

This commit is contained in:
amithkoujalgi
2025-10-20 23:37:53 +05:30
parent 2e245a0e16
commit ad03c784e5

View File

@@ -49,7 +49,7 @@ YAML makes it effortless to configure and tweak your agents powers and behavi
## Implement Tool Functions ## Implement Tool Functions
Your agent calls out to Java classes (Tool Functions). Put these implementations on your classpath, register them in YAML, and your agent. Your agent calls out to Java classes (Tool Functions). Put these implementations on your classpath, register them in YAML.
<CodeEmbed src="https://raw.githubusercontent.com/ollama4j/ollama4j-examples/refs/heads/main/src/main/java/io/github/ollama4j/examples/tools/toolfunctions/CalculatorToolFunction.java"/> <CodeEmbed src="https://raw.githubusercontent.com/ollama4j/ollama4j-examples/refs/heads/main/src/main/java/io/github/ollama4j/examples/tools/toolfunctions/CalculatorToolFunction.java"/>