Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions AI_Agent_Task_Automator/task_processor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
def simple_ai_agent(text):
print("\n--- AI Agent is processing your task ---")


summary = text[:50] + "..." if len(text) > 50 else text


words = text.split()
keywords = [word for word in words if len(word) > 5]

print(f"Summary: {summary}")
print(f"Keywords found: {keywords[:3]}")
print("--- Task Completed ---\n")

if __name__ == "__main__":
user_input = input("Enter some text for the AI Agent to analyze: ")
simple_ai_agent(user_input)