Repository navigation
Conversation
Signed-off-by: Sakib Khan <sakibalig2003@gmail.com>
Signed-off-by: Sakib Khan <sakibalig2003@gmail.com>
Signed-off-by: Sakib Khan <sakibalig2003@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Establish the provider-neutral model identity and role-manifest foundation for Fathom.
This is the base PR in the stacked provider-neutrality series. It does not add the OpenAI adapter yet.
What changed
ModelProvider,ModelIdentity, and inference-setting contracts.derive()behavior fail explicitly instead of silently sharing planner configuration.IntentResult.Why
Benchmarking must know exactly which model and model roles were actually used. Previously, provider and role behavior could be inferred incorrectly from adapter class names or silently fall back to shared planner configuration.
This PR creates the contract required for fair cross-provider comparisons and makes unresolved adapter behavior visible instead of silently producing unfair runs.
Scope
This PR intentionally does not include:
Those are included in the subsequent stacked PRs.
Validation
Stack
This PR is based directly on
main.Follow-up PRs:
Changed files and roles
Source
src/fathom/adapters/llm/gemini.py— Gemini LLM adapter and model identity.src/fathom/adapters/summarization/llm.py— LLM-based summarization adapter.src/fathom/adapters/tools/__init__.py— Exports available tool dialects.src/fathom/adapters/tools/gemini.py— Converts canonical tools to Gemini format.src/fathom/constants/llm.py— LLM provider and inference constants.src/fathom/constants/manifest.py— Model-role manifest enums and constants.src/fathom/core/embedding/capability.py— Detects embedding support.src/fathom/core/services/qualifier/llm.py— LLM-powered intent qualification.src/fathom/interfaces/embedding.py— Embedding provider contract.src/fathom/interfaces/llm.py— Provider-neutral LLM contract.src/fathom/interfaces/tools.py— Provider-neutral tool encoding contract.src/fathom/runtime/builder.py— Builds and assigns runtime model roles.src/fathom/runtime/manifest.py— Produces the resolved model-role manifest.src/fathom/runtime/runner.py— Runs workflows and attaches the manifest.src/fathom/schemas/llm.py— Model identity and inference-setting schemas.src/fathom/schemas/localization.py— Localization result and identity schemas.src/fathom/schemas/manifest.py— Model-role manifest data models.src/fathom/schemas/results.py— Final run-result schema.Tests
tests/unit/adapters/llm/test_gemini.py— Tests Gemini identity and derivation.tests/unit/adapters/tools/test_gemini.py— Tests Gemini tool encoding.tests/unit/core/embedding/test_capability.py— Tests embedding detection.tests/unit/interfaces/test_llm.py— Tests the LLM interface contract.tests/unit/runtime/qualifier/test_composer.py— Tests qualifier composition.tests/unit/runtime/test_assembly.py— Tests runtime configuration assembly.tests/unit/runtime/test_builder.py— Tests model-role construction.tests/unit/runtime/test_manifest.py— Tests manifest generation and correctness.tests/unit/runtime/test_runner.py— Tests manifest attachment during execution.tests/unit/strategies/intent/test_intent.py— Tests intent and checkpoint compatibility.