跳到主要内容

Easy LLM Tools

Easy LLM Tools is a set of tools to create tools used by LLMs, primarily for Java and Spring AI. It consists of three parts:

  • LLM tool spec
  • LLM tool code generator
  • LLM tool integrations

Tools play an important role in building AI applications, especially for agents. Agents use tools to access external information and perform actions.

Tools are not hard to create. Different AI frameworks and libraries have their own ways to create tools. These frameworks and tools usually take a code-first approach. Tools are directly built using code.

Easy LLM Tools takes a spec-first approach. For each tool, its spec should be create first. By creating tool specs, we can enable advanced usage scenarios of tools:

  • Search of tools using RAG
  • Dynamic invocation of tools
  • Tool UI generation
  • Documentation
  • Share and reuse

Given a tool spec, we can generate its skeleton code from this spec by using the tool provided by Easy LLM Tools.

Source code can be found on GitHub.