How jydx-tech/call_me_maybe works
Call Me Maybe turns natural-language requests into structured function-call records; it selects a function and generates typed arguments but never executes the selected function. The CLI loads and validates the function catalog and prompts, initializes the model and vocabulary, processes each prompt, then writes the calls as JSON. Prompt construction and constrained token decoding are the principal internal layers: the model chooses content while the code enforces function-name and value-type constraints. The README documents this workflow and capability; source excerpts show the main calls, but not every runtime detail.
Main entry points: __main__.py CLI orchestrator · engine.py Prompt processor · __init__.py LLM inference SDK · loader.py Input loader
Components 14
Request workflow
- CLI orchestrator
src/__main__.py - Function catalog
data/input/functions_definition.json - Prompt batch
data/input/function_calling_tests.json - Prompt processor
src/engine.py - Call writer
src/writer.py - Function call JSON
data/output/function_calls.json
Prompt and decoding
- Prompt builder
src/prompts.py - Constrained decoder
src/decoder.py - Token vocabulary
src/tokens.py
Model inference
- LLM inference SDK
llm_sdk/__init__.py - Hugging Face Hub
Validated data
- Input loader
src/loader.py - Data schemas
src/models.py
Other components
- Request provider
Connections 17
- Request provider → CLI orchestrator: submits requests
README.md - CLI orchestrator → Input loader: loads inputs
src/__main__.py - Function catalog → Input loader: catalog input
README.md - Prompt batch → Input loader: prompt input
README.md - Input loader → Data schemas: validates as
src/loader.py - CLI orchestrator → Prompt processor: processes prompts
src/__main__.py - Prompt processor → Prompt builder: builds prompts
src/engine.py - Prompt processor → Constrained decoder: generates values
src/engine.py - Prompt processor → LLM inference SDK: encodes text
src/engine.py - Prompt processor → Data schemas: creates call
src/engine.py - Constrained decoder → LLM inference SDK: requests logits
src/decoder.py - Constrained decoder → Token vocabulary: filters tokens
src/decoder.py - CLI orchestrator → LLM inference SDK: initializes model
src/__main__.py - CLI orchestrator → Token vocabulary: loads vocabulary
src/__main__.py - LLM inference SDK → Hugging Face Hub: downloads model files
llm_sdk/__init__.py - CLI orchestrator → Call writer: writes calls
src/__main__.py - Call writer → Function call JSON: serializes JSON
src/writer.py