N6agent
The name "N6" denotes the six core cognitive layers that the agent processes sequentially for each task (see architecture below). N6Agent processes every user request through six distinct layers:
| Layer | Name | Function | |-------|------|----------| | 1 | | Parses raw input (text, images, JSON) into structured intent vectors. | | 2 | Reasoning | Applies chain-of-thought (CoT) and tree-of-thought (ToT) to break the goal into sub-tasks. | | 3 | Planning | Generates a dynamic execution graph (not a fixed DAG). Edges can be rewired mid-task. | | 4 | Tool Selection | Queries a vector DB of available tools (APIs, code functions, web search) and selects the optimal set. | | 5 | Execution | Runs selected tools in parallel or serially with error handling and timeout management. | | 6 | Reflection | Evaluates outcomes against the original goal. If criteria aren’t met, loops back to Layer 2 with new context. | n6agent
from n6agent import N6Agent, Tool tools = [ Tool(name="web_search", func=google_search), Tool(name="send_email", func=email_sender) ] The name "N6" denotes the six core cognitive