서우 AgentOffice
← 라이브러리
ai-research

Guidance

원문: guidance

Control LLM output with regex and grammars, guarantee valid JSON/XML/code generation, enforce structured formats, and build multi-step workflows with Guidance - Microsoft Research's constrained generation framework

무엇을 하나요

Guidance: Constrained LLM Generation When to Use This Skill Use Guidance when you need to: Control LLM output syntax with regex or grammars Guarantee valid JSON/XML/code generation Reduce latency vs traditional prompting approaches Enforce structured formats (dates, emails, IDs, etc.) Build multi step workflows with Pythonic control flow Prevent invalid outputs through grammatical constraints GitHub Stars : 18,000+ | From : Microsoft Research Installation Quick Start Basic Example: Structured Generation With Anthropic Claude Core Concepts 1. Context Managers Guidance uses Pythonic context managers for chat style interactions. Benefits: Natural chat flow Clear role separation Easy to read and

실행 시 본인 API 키(BYOK)로 동작하며, 모델 비용은 사용자 계정에서 직접 결제됩니다.