forked from Mirror/ollama4j
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user