Enhance agent documentation by refining the definition and benefits of agents, improving clarity on YAML configuration parameters, and updating the sample interaction. Additionally, modify the Agent class to pull the model during initialization, ensuring proper setup for agent functionality.

This commit is contained in:
amithkoujalgi
2025-10-23 11:10:06 +05:30
parent ca1a73fa76
commit 066df6b369
2 changed files with 32 additions and 25 deletions

View File

@@ -137,6 +137,7 @@ public class Agent {
}
Ollama ollama = new Ollama(agentSpec.getHost());
ollama.setRequestTimeoutSeconds(120);
ollama.pullModel(agentSpec.getModel());
return new Agent(
agentSpec.getName(),
ollama,