Custom Python Agents & Frameworks

If you build autonomous agents using LangChain, CrewAI, AutoGen, or a custom Python loop, you can integrate Dmint directly into your tool definitions.

LangChain Integration

Wrap LangChain’s @tool functions with @dmint.protected:
langchain_tools.py

Safe LangChain Tool Execution

When an agent invokes a tool that requires human approval:

CrewAI Custom Tool Integration

In CrewAI, inherit from BaseTool and protect the _run method:
crewai_tools.py

Polling for Approval in Custom Loops

If your agent runs as a daemon and needs to wait for human approval before resuming:
agent_poller.py