Skip to content

feat: add extra user defined tools#114

Open
bitboyro wants to merge 3 commits intoalexzhang13:mainfrom
bitboyro:extra-tools
Open

feat: add extra user defined tools#114
bitboyro wants to merge 3 commits intoalexzhang13:mainfrom
bitboyro:extra-tools

Conversation

@bitboyro
Copy link
Contributor

This is a proposal, the PR introduces two new features to the core:

RLM class:

tool_prompts: Allows users to append extra prompt sections (as a string or list of strings) to the system prompt, making it easy to document custom tools/functions for the LM.

tool_code: Allows users to inject Python code into the REPL environment before each completion. This code is merged into environment_kwargs['setup_code'] (with setup_code running first, then tool_code). Syntax is validated at initialization.

Improves easy extensibility for advanced workflows and tool use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant