Skip to content

Instantly share code, notes, and snippets.

View ndamulelonemakh's full-sized avatar
🍸
Solution explorer

Ndamulelo Nemakhavhani ndamulelonemakh

🍸
Solution explorer
View GitHub Profile
@ndamulelonemakh
ndamulelonemakh / api_gateway.conf
Created December 24, 2024 11:47 — forked from nginx-gists/api_gateway.conf
Deploying NGINX Plus as an API Gateway, Part 2: Protecting Backend Services
include api_backends.conf;
include api_keys.conf;
limit_req_zone $binary_remote_addr zone=client_ip_10rs:1m rate=1r/s;
limit_req_zone $http_apikey zone=apikey_200rs:1m rate=200r/s;
server {
access_log /var/log/nginx/api_access.log main; # Each API may also log to a
# separate file
@ndamulelonemakh
ndamulelonemakh / planning_orchestrator.py
Last active June 19, 2025 11:13
Multi-agent LLM orchestration patterns
import random
# -------------------------------
# Simulated Agent Tools
# -------------------------------
class ResearchAgent:
def run(self, topic, sources_required=3):
print(f"[ResearchAgent] Researching: {topic} (need {sources_required} sources)")
return f"Research data about {topic} from {sources_required} sources"