When building agents in the DSH ecosystem, handling queries in legal or professional domains often requires accurate term definitions. The dsh-law-terms plugin provides local legal term lookup capability, allowing basic legal term entries to be retrieved without an internet connection.

Positioning and Background

This is a tool for querying legal term knowledge entries, maintained by uckkk and licensed under the MIT License. It falls under the Web tools category and is intended to meet the need to quickly look up legal term definitions in a local environment.

Installation and Activation

The plugin installation command is as follows:

dsh plugin add github:uckkk/dsh-law-terms

After installation, the tools registered by the plugin become available in the session and can be used by invoking them directly.

Core Features

The plugin primarily provides the following two tools:

  • list_law: Lists legal term knowledge entries.
  • get_law: Queries details of a legal term entry by ID or name.

Typical Usage

After installation, invoke the above registered tools in the conversation. For example:

  1. Call list_law to view all available legal term entries.
  2. Call get_law with a specific term ID or name to retrieve detailed information.

Technical Details and Notes

  • Implementation: Pure Node implementation.
  • Network dependency: No network dependency; can be used in offline environments.
  • Environment requirements: Requires @deepseek-ai/cordis (^4.0.1) and @deepseek-ai/dsh-tools (>=0.1.0-rc.6).

When using this plugin, please note that it runs with the permissions of the current DSH process. Before installation, be sure to review the source code and license.

Conclusion

This plugin is suitable for scenarios that require quickly retrieving legal terms locally. For more details and the source code, refer to the links below.