Skip to content

feat: consolidate discovery, Apple, MCP, agents and SDK upgrades - #16

Merged
1Utkarsh1 merged 7 commits into
mainfrom
feat/consolidated-community-upgrades
Oct 17, 2026
Merged

1Utkarsh1 merged 7 commits into
mainfrom
feat/consolidated-community-upgrades

Conversation

@1Utkarsh1

@1Utkarsh1 1Utkarsh1 commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

What / why

Local users need a coherent path from a running model to discovery, tools, structured output and local application integrations. The competing agent PRs added useful pieces, but combined green tests still missed broken tool-loop ownership, invalid schema acceptance, unverified locality, SSE waiting and lossy conversation export.

This consolidates the reviewed portions of #9, #10, #11, #12, #13, #14 and #15, completes worthwhile incomplete features, and keeps one implementation of each shared concern. Detailed provenance and rejected behavior are in the consolidation record. Source PRs #9–15 are now closed as superseded, with their branches and history retained. Original research ledgers remain in their source PRs; row counts are not treated as quality evidence.

Changes

Compat

  • Existing LLM / chat() / complete() / add_function() behavior is preserved, with additive APIs and documented validation changes.
  • No new mandatory runtime dependency: core remains typing-extensions only. [structured] adds jsonschema; [yaml] adds PyYAML; Apple/model/server packages stay optional.
  • Core is Python 3.9 compatible; Apple SDK and optional official SDK checks have their own version requirements.

require_local is an advisory metadata check that fails closed; it is not a network sandbox. Tool timeouts bound waiting and do not terminate running Python functions. Hardware estimates are approximate. Native schema/vision capabilities remain engine/model/SDK dependent. The bundled server remains a development adapter and implements a documented Responses subset, not full OpenAI API parity.

No version bump, merge, release or PyPI publication is included.

Tests

Current head 8df06f83fe9d09cfd3f65a6a5da97fdd730d281f: all eight platform/version jobs and package validation are green. CI, package validation. The Windows publication failure found by the initial expanded matrix was fixed before this final green run.

  • Python 3.12.13: 468 passed, 16 skipped, with OpenAI/MCP interoperability enabled (230 subtests passed).
  • Python 3.9.6: 459 passed, 25 skipped.
  • Python 3.14.4: 459 passed, 25 skipped (228 subtests passed; one third-party Starlette/httpx deprecation warning).
  • Official SDKs exercised: OpenAI 3.33.0, MCP 2.3.0. All SDK requests use in-process/local fixtures; no credentials or remote inference.
  • Ruff, Black 25.11/26.10, git diff check, Sphinx warnings-as-errors, wheel/sdist build and strict twine metadata checks.
  • Fresh wheel environment: only local-llm-kit and typing-extensions installed; core imports, echo, agent, optional-validator guard, SQLite and CLI logging/export/hardware pass.
  • Offline retrieval/structured/logging/hardware examples run.
  • New regressions cover real-LLM agent ownership, malformed executable arguments, quoted JSON literals, schema types, remote/unknown locality, kept-open SSE, MCP collision cleanup, SQLite thread sharing/atomicity/export, template errors, memory assumptions, reasoning propagation and invalid tool timeouts.

Live native Apple inference, AirLLM/GPU execution and every provider/model combination were not certified. No local Ollama daemon was available during this review; no model download was performed. Skipped hardware/live tests are not reported as passes.

Docs

  • CHANGELOG [Unreleased] updated.
  • README / docs / examples updated for public APIs and limitations.
  • Stable PyPI 0.2.0 is clearly distinguished from these unreleased additions.

Copilot AI balanced review requested due to automatic review settings October 17, 2026 12:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@1Utkarsh1
1Utkarsh1 merged commit 62e338c into main Oct 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants