加载中…
加载中…
This model converts natural language into structured intent JSON:
{ "intent": "string", "params": { "key": "value" } }
Example:
Input:
send bob hello
Output:
{ "intent": "message.send", "params": { "to": "bob", "text": "hello" } }
Note: this is not perfect for a reason, frames runtime will fix it entirely over time
Requirements: llama.cpp built (llama-cli binary available)
Example:
git clone https://huggingface.co/frameprotocol/frame-intent-english
/path/to/llama-cli \
-m model.gguf \
-p "send bob 5 dollars" \
-n 100 \
--temp 0.0
Expected output (approx):
{"intent":"payment.send","params":{"to":"bob","text":"5"}}
Run with validation (this repo):
python infer.py "send bob 5 dollars"
Expected output:
{"intent":"payment.send","params":{"to":"bob"}}
Notes:
flowchart LR
A[Natural language input] --> B[GGUF model\nllama-cli]
B --> C[Raw JSON output]
C --> D[Validation\ninfer.py]
D --> E[Cleaned intent JSON]