Add DeepSeek tool adapter and usage guide.#70
Merged
rosspeili merged 1 commit intoMay 17, 2026
Conversation
Implement to_deepseek_tool as a separate public adapter from OpenAI, with shared internal name sanitization, unit tests, docs/usage/deepseek.md, and examples/deepseek_tos_evaluator.py. Link from README, introduction, api_keys, and tos_evaluator docs. Fixes ARPAHLS#66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds DeepSeek as a first-class provider alongside OpenAI, not a replacement.
SkillLoader.to_deepseek_tool()— Separate public adapter (does not callto_openai_tool())._sanitize_function_tool_name()— Shared internal helper; OpenAI and DeepSeek each keep their own public sanitizer wrappers.test_to_deepseek_tool,test_sanitize_deepseek_tool_name; existing OpenAI tests unchanged.docs/usage/deepseek.md+examples/deepseek_tos_evaluator.py— Full loop withDEEPSEEK_API_KEYandbase_url=https://api.deepseek.com.Type of Change
loader.py)Checklist (all PRs)
pytest tests/test_loader.pyandflake8on changed Python files pass.New or updated skill
Not applicable (
skills/unchanged).tos_evaluator.mdadds a DeepSeek example link only.Constitution & Safety
Adapter-only; no skill behavior change. Use sanitized tool names from
to_deepseek_tool()in the agent loop.Related Issues
Fixes #66. Builds on #1 / #20 (OpenAI adapter remains separate).