DDE Agents is a lightweight and flexible software development kit designed to help developers build, and manage AI agents with ease. It provides tools and utilities for creating intelligent, autonomous systems.
- Modular Design: Build AI agents with reusable components.
- Extensibility: Easily integrate custom logic and third-party APIs.
- Scalability: Designed to handle small to large-scale multi-agent projects.
- Easy Tool Intergration: You can easily create (dynamic) functions or agents as tools.
And above all you can use local ollama and openAI models.
If you want to use a hugginface GGUF model you can do so by setting the model to hf.co/{author}/{model}.
To install AgentSDK, use the following command:
pip install dde-agentsNote: Not all functionalities are woring as expected.
Here’s a simple example to create and run an AI agent:
from agent.Agent import Agent
from agent.Config import ModelConfig
ModelConfig.setDefaultModel("gpt-4o", True)
englishAgent = Agent(
name="englishAgent",
instruction="You can only answer in english",
inputGuardrails="The input can only be english",
)
if __name__ == "__main__":
print(englishAgent.run(prompt=input("prompt: ")))If you are using an openAI model you should set the api key using environment variables.
export OPENAI_API_KEY='super-secret-key'You need to have ollama installed, you can download it here. This is important if you want to use local GGUF models.
For detailed documentation on all the functionalities, visit the full DDE Agents Docs.
For other agents made with this SDK please have a look at this repository.