-
Notifications
You must be signed in to change notification settings - Fork 0
Three Dimensions
gitpavleenbali edited this page Feb 17, 2026
·
4 revisions
PYAI operates across three dimensions of intelligence, each building upon the last.
βββββββββββββββββββββββββββββββββββ
β DIMENSION 3: CREATION β
β Software Factory Intelligence β
β βββββββββββββββββββββββββββββββ β
β β β’ Self-generating systems β β
β β β’ Code synthesis engines β β
β β β’ Autonomous development β β
β βββββββββββββββββββββββββββββββ β
βββββββββββββββββ¬ββββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββββ
β DIMENSION 2: ORCHESTRATION β
β Multi-Agent Intelligence β
β βββββββββββββββββββββββββββββββ β
β β β’ Agent coordination β β
β β β’ Workflow automation β β
β β β’ Knowledge synthesis β β
β βββββββββββββββββββββββββββββββ β
βββββββββββββββββ¬ββββββββββββββββββ
β
βββββββββββββββββΌββββββββββββββββββ
β DIMENSION 1: COGNITION β
β Core AI Operations β
β βββββββββββββββββββββββββββββββ β
β β β’ ask() β’ research() β β
β β β’ summarize() β’ analyze() β β
β β β’ extract() β’ generate() β β
β βββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββ
The foundation. Single-purpose AI operations that just work.
| Function | Purpose | Example |
|---|---|---|
ask() |
Question answering | ask("What is Python?") |
research() |
Deep research | research("AI trends 2024") |
summarize() |
Summarization | summarize("./report.pdf") |
extract() |
Data extraction | extract(text, ["name", "email"]) |
generate() |
Content creation | generate("blog post", type="article") |
translate() |
Translation | translate("Hello", to="spanish") |
code |
Code operations | code.write("REST API") |
analyze |
Analysis | analyze.sentiment("I love it!") |
from pyai import ask, summarize, extract
# Instant intelligence
answer = ask("Explain quantum entanglement")
summary = summarize(long_document)
entities = extract(text, fields=["names", "dates", "amounts"])Coordinated intelligence. Multiple agents working in harmony.
| Pattern | Purpose | Use Case |
|---|---|---|
| Chain | Sequential processing | Draft β Edit β Publish |
| Router | Route to specialists | Code questions β Coder agent |
| MapReduce | Parallel with aggregation | Multi-angle research |
| Supervisor | Hierarchical management | Manager + workers |
| Consensus | Voting-based decisions | Multi-expert approval |
| Debate | Adversarial reasoning | Pro/con analysis |
from pyai import Agent
from pyai.blueprint import Workflow, Step
researcher = Agent(name="Researcher", instructions="Find information.")
analyst = Agent(name="Analyst", instructions="Analyze data.")
writer = Agent(name="Writer", instructions="Write content.")
workflow = (Workflow("ResearchPipeline")
.add_step(Step("research", researcher))
.add_step(Step("analyze", analyst))
.add_step(Step("write", writer))
.build())
result = await workflow.run("Create report on AI trends")Self-generating systems. The Software Factory.
Software Factories don't just use AI β they are AI. They generate code, tests, documentation, and entire systems from high-level descriptions.
| Feature | Description |
|---|---|
| Code Generation | Generate complete modules from descriptions |
| Code Review | Automated quality analysis |
| Refactoring | Transform architecture intelligently |
| Debugging | Fix errors with explanations |
| Test Generation | Create comprehensive test suites |
| Documentation | Auto-generate docs from code |
from pyai import code
# Generate code
api_code = code.write("REST API for user management with JWT auth")
# Review existing code
review = code.review(existing_code)
print(review.issues, review.suggestions, review.score)
# Debug errors
fix = code.debug("TypeError: cannot unpack non-iterable NoneType")
# Refactor architecture
improved = code.refactor(old_code, goal="async architecture")ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β YOUR APPLICATION β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β
β β PyAI β β PyFlow β βPyVision β β PyVoice β β
β β Agents β βWorkflow β β Vision β β Audio β β
β ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ β
β β β β β β
β ββββββΌβββββββββββββΌβββββββββββββΌβββββββββββββΌβββββ β
β β PYAI INTELLIGENCE ENGINE β β
β β β’ Unified Memory β’ Context Management β β
β β β’ Model Routing β’ Intelligent Caching β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Azure OpenAI | OpenAI | Anthropic | Ollama β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Start simple, scale infinitely:
# Level 1: One line
answer = ask("Translate to French: Hello")
# Level 2: Agent with tools
translator = Agent(name="Translator", instructions="...", tools=[...])
result = Runner.run_sync(translator, "Translate to all languages")
# Level 3: Multi-agent orchestration
workflow = Workflow("TranslationService").add_step(...).build()- Software Factories - The vision in detail
- Design Philosophy - Our guiding principles
- Agent Framework - Build agents
Intelligence, Embedded.