Skip to content

laxmanvijay/smolagents4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smolagents4j

A simple ReAct style agents library for Java.

WIP

Example flow:

@Autowired
    private AgentMemoryJpaRepository repository;

@Autowired
private HuggingFaceModel huggingFaceModel;

AgentLogger logger = new AgentLogger();
AgentMemory memory = new PostgresAgentMemory(repository, "session-123");

Agent agent = new Agent("Write a haiku about the sea", memory, logger, huggingFaceModel);
agent.run();

for (String log : logger.getAllMessages()) {
    System.out.println(log);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages