4‐2 Agentic AI demos - terrytaylorbonn/auxdrone GitHub Wiki

26.0417 Lab notes (Gdrive) Git


For demo details see #603_PAL_.docx and #600-2_core_AI_concepts_.

TOC



1 AI App Basics

Minimal Python demos showing how an AI app controls a model: define output structure, parse responses reliably, and build simple tool loops. Focus:

  • prompt → structured output
  • JSON schema / parsing
  • deterministic handling
  • no real-world complexity

1.1 First basic AI app demo (D4b)

Substack post #71b (26.0326). Describes my first 2026 Agentic AI demo. This is a minimal demo (code on GIT) that shows the core of what Agentic AI really is (AI applications, not AI agents).

image

Code and test results (docx #600-2_core_AI_concepts_). Search for GPT chats "#110" (code) and "#111" (results).

image

Code algorithm. See #112 (in docx #600-2_core_AI_concepts_) for details.

image

The key capabilities of the model that make this possible.

  • The model is a UFA (universal function approximator).
  • Universal means any function.
  • Approximation means it can make good guesses for inputs it was never trained on but are semanticly close to an input that it was trained on.
  • This requires a massive NN and extensive training input.
  • This simulates (to a certain (very useful) degree) reasoning, thinking, and intelligence.



2 Data Intelligence Systems

Systems (like Palantir Maven) that analyze real-world data using a combination of deterministic logic and LLM reasoning to extract patterns, insights, and decisions. Focus:

  • external data (Gmail, DB, APIs)
  • structured queries
  • pattern detection (counts, anomalies)
  • LLM = planner + explainer

TOC

BASICS

CORE TRILOGY

ADVANCED TOPICS


2.1 PAL v1 26.0327

Following shows the code for the core call to the LLM API. See #603_PAL_.docx for details.

image image

Following shows test results.

image image


2.1b PAL v1 with Gemma-4 (code modified; could haved used MIL) 26.0411

Ran same test with local Gemma-4. Required minimal code changes. But demos the need for an MIL (model interface layer) if you want to often switch models. That could get complicated quickly.

image


2.4 PAL v4 26.0328

Enter free form language request to run complex analysis of DB (JSON file) event history. See #603_PAL_.docx for details.

GPT: "Clean one-line description for PAL v4: Use this: PAL v4 converts a natural-language analysis request into a multi-step plan, executes each step deterministically on stored data, and produces a structured comparison result."

image

This is the first real “agent-like” system.


2.4b PAL v4 deployed on Render 26.0329

Search #600-2_core_AI_concepts_ for "PAL_v4 DEPLOYMENT (to RENDER)". Runs with ingest and inference. Need to add UI, DB, etc. See #603_PAL_.docx for details.

image


2.4c PAL v5 with MongoDB 26.0331

Search #600-3_core_AI_concepts_ for "pal_v5 (with mongo) deploy". See #603_PAL_.docx for details.

image

2.21 pal_core_01_detect_ids.py


2.22 pal_core_02_predict.py


2.23 pal_core_03_allocate.py


2.24 pal_core_04_graph_semantic.py

26.0412 #600-3_core_AI_concepts_. LLM added a rule. Py script then added the derive semantic edges. Kind of a "patch" to add something not programmed in the script. The script code (not the LLM) does almost all of the heaving lifting. The LLM is kind of just an "add on". The LLM prompt has a detailed "cheat sheet" example, which is recommended (greatly increased chance of success).

pal_core_04 shows how human language can add new runtime relationship semantics to a structured graph system without rewriting the core code.

image image

2.25 pal_core_05_operate.py (combines 01-04) 26.0416

image

2.26 pal_core_06: simplest demo of all core LLM roles 26.0417 (WIP)

image



3 Workflow Automation

Connect APIs and automate tasks using tools like n8n or equivalent Python workflows.

(IDEs like n8n) Visual tools that connect APIs and automate tasks using triggers, flows, and integrations. Focus:

  • nodes (Gmail, HTTP, Slack)
  • triggers + actions • fast prototyping
  • low-code automation Variants:
  • hosted (n8n cloud) / local (Docker)

This includes the following (see #603_PAL_.docx for details).

  • N1 cloud n8n / gmail.
  • N2 n8n_local install/test.
  • N3 n8n_local Gmail read many.
  • N4 python replaces n8n. N4 still belongs in (3) because it’s: replacing automation layer, not adding intelligence.

n8n running locally (Docker/Win11)

image



4 Integrated Systems

Combine automation with LLM planning and structured execution (PAL-style systems).

(Automation + Intelligence) Combining workflow automation with data intelligence: automated pipelines that gather data, analyze it, and take controlled actions. Focus:

  • n8n (or similar) → orchestration
  • Python/PAL → intelligence layer
  • approval gates
  • secure/self-hosted systems

This includes the following (see #603_PAL_.docx for details).

  • N5 (replacing automation layer, not adding intelligence)
image



⚠️ **GitHub.com Fallback** ⚠️