To import the agents in our platform, follow this structure:
Copy
from mkinf import hub as mhtools = mh.pull(["owner/repository"])
Some tools require environment variables, including API keys, which must be created and set before use.
Copy
from mkinf import hub as mhtools = mh.pull( ["ScrapeGraphAI/scrapegraphai"], env={ "SCRAPEGRAPH_LLM_MODEL": "openai/gpt-4o-mini", "SCRAPEGRAPH_LLM_API_KEY": os.getenv("OPENAI_API_KEY") }, timeout=120)
You can even set an execution timeout, the default execution timeout is 60 seconds.
Remember to configure any required environment variables specified in the agent’s documentation.
Currently, mkinf tools are compatible with LangChain chains and graphs. Support for other frameworks like CrewAI, AutoGen, and SmolAgents is coming soon.