Skip to content

Instantly share code, notes, and snippets.

View garymbansal's full-sized avatar

Gaurav Bansal garymbansal

View GitHub Profile
@garymbansal
garymbansal / agent.py
Created April 23, 2025 00:14
Agent AI
# Example: Simple Agentic Framework in Python
class AgentSystem:
def __init__(self, llm_interface, tools, memory_system):
self.llm = llm_interface # Connection to language model
self.tools = tools # Available action tools
self.memory = memory_system # Short and long-term memory
self.goal = None
def set_goal(self, goal_description):
"""Set the high-level objective for the agent"""