Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
FridonAI Core is the foundational package for building AI-driven chatbot platforms, specifically designed for the crypto world. It provides a modular and extensible architecture for creating powerful, domain-specific AI assistants.
Install the package using pip:
pip install fridonai-core
Here's a basic example of how to use FridonAI Core components:
class GreeterUtility(BaseUtility):
async def arun(self, *args, **kwargs) -> str:
return "Hi superman!"
class GoodbyeUtility(BaseUtility):
async def arun(self, *args, **kwargs) -> str:
return "Bye superman!"
class GreeterToolInput(BaseToolInput):
pass
class GoodbyeToolInput(BaseToolInput):
pass
GreeterTool = BaseTool(
name="greeter-tool",
description="Use this tool for greeting people.",
args_schema=GreeterToolInput,
utility=GreeterUtility(),
examples=[{'request': 'Hi', 'response': 'Hi there, you are the Superman!'}],
)
GoodbyeTool = BaseTool(
name="goodbye-tool",
description="Use this tool for saying goodbye to people.",
args_schema=GoodbyeToolInput,
utility=GoodbyeUtility(),
examples=[{'request': 'Bye', 'response': 'Bye superman!'}],
)
class TestPlugin(BasePlugin):
name: str = "Test"
description: str = "Use this plugin for several purposes."
tools: list[BaseTool] = [GreeterTool, GoodbyeTool]
test_plugin = TestPlugin()
rs = await generate_response(
"Hello there!",
[test_plugin],
{
"thread_id": "1",
"wallet_id": "2snYEzbMckwnv85MW3s2sCaEQ1wtKZv2cj9WhbmDuuRD",
"chat_id": "bla"
},
memory='sqlite',
return_used_agents=False
)
FridonAI Core uses a hierarchical structure for plugins:
BasePlugin
BaseTool
BaseUtility
Specialized utilities are available for specific use cases:
BlockchainUtility
: For blockchain operationsRemoteUtility
: For making remote API callsLLMUtility
: For language model interactionsThe core includes a Graph component that manages conversation flow and agent interactions. It's responsible for:
For more detailed usage instructions and API documentation, please visit our main README.
We welcome contributions!
Follow us on Twitter for the latest updates and announcements:
FAQs
Core functionality for FridonAI
We found that fridonai-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.