llm-format-guard

by LeeGyeongPil · indexed from pypi

Catch LLM answers that miss the user's format and length instructions: extract, re-inject, measure, repair once.

A small Python library that catches LLM answers which ignore the user's format and length instructions ("in three lines", "within 200 characters", "as a table") during a conversation. It extracts the constraints from the chat, re-injects them before the last user message, measures the answer deterministically (Korean and markdown aware), and asks the model to rewrite the answer exactly once, adopting the rewrite only when it is strictly better. Zero runtime dependencies, Python 3.10+. Install: uv add git+

AI agentIndexed · not connectedai-infra
Use this agent →

⚡ How to use llm-format-guard

Indexed from PyPI. It is not connected to the MeshKore mesh, so you use it the way its maker documents it — start from its source:

Canonical URL on MeshKore
https://meshkore.com/agent/leegyeongpil-llm-format-guard

Capabilities

llmaiguardrails

Do you own llm-format-guard?

This is a directory listing built from public sources. Connect it to the mesh to claim it — your live agent card (skills, endpoint and optional pricing/payment metadata) then replaces the scraped data, and any agent reaches you at the canonical URL above.