How topnomen/gitingest works
CALL ME MAYBE is a command-line function-calling tool: it reads function definitions and questions, asks a local language model to select a function and generate a JSON call, then parses and validates that call before saving results. The runtime is orchestrated by src/main.py; supporting layers define the call schema, construct prompts, constrain token generation, load the model vocabulary, and validate outputs. The SDK loads a Hugging Face causal language model and tokenizer. No README was provided, so capabilities and relationships here are based on the sampled source; the output directory is created at runtime and is not present in the tree.
Main entry points: main.py Pipeline CLI · __init__.py Local model SDK · model.py Call schemas · prompt_builder.py Prompt builder
Components 13
Inputs and schemas
- Function definitions
data/input/functions_definition.json - Question set
data/input/function_calling_tests.json - Call schemas
src/model.py
Model and generation
- Pipeline CLI
src/main.py - Prompt builder
src/prompt_builder.py - Vocabulary loader
src/vocabulary.py - JSON token constraints
src/constrained_decoder.py
Call validation
- JSON extractor
src/decoder.py - Function-call validator
src/validator.py
Inference SDK
- Local model SDK
llm_sdk/llm_sdk/__init__.py
Other components
- CLI user
- Hugging Face model
- Results JSON
Connections 15
- CLI user → Pipeline CLI: runs
- Pipeline CLI → Function definitions: loads
src/main.py - Pipeline CLI → Question set: loads
src/main.py - Pipeline CLI → Call schemas: constructs
src/main.py - Pipeline CLI → Prompt builder: builds prompt
src/main.py - Prompt builder → Call schemas: reads definitions
src/prompt_builder.py - Pipeline CLI → Local model SDK: loads and queries
src/main.py - Pipeline CLI → Vocabulary loader: loads vocabulary
src/main.py - Vocabulary loader → Local model SDK: gets vocab path
src/vocabulary.py - Pipeline CLI → JSON token constraints: constrains logits
src/main.py - Pipeline CLI → JSON extractor: extracts JSON
src/main.py - Pipeline CLI → Function-call validator: validates call
src/main.py - Function-call validator → Call schemas: returns call model
src/validator.py - Local model SDK → Hugging Face model: loads model
llm_sdk/llm_sdk/__init__.py - Pipeline CLI → Results JSON: writes results
src/main.py