gitextract_c7vutqob/ ├── .git-blame-ignore-revs ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ └── bug_report.md │ └── workflows/ │ ├── call_cpu_tests.yml │ ├── call_gpu_tests.yml │ ├── ci_credentials.yml │ ├── ci_docs.yml │ ├── ci_linux.yml │ ├── ci_macos.yml │ ├── ci_windows.yml │ ├── code_quality.yml │ ├── notebook_tests.yml │ ├── pull_request.yml │ ├── pypi_upload.yml │ └── widget_build.yml ├── .gitignore ├── CONTRIBUTING.md ├── GOVERNANCE.md ├── LICENSE.md ├── MAINTAINERS.md ├── README.md ├── client/ │ └── graphpaper-inline/ │ ├── .gitignore │ ├── build-to-guidance.sh │ ├── dist/ │ │ └── .gitignore │ ├── package.json │ ├── postcss.config.js │ ├── rollup.config.mjs │ ├── src/ │ │ ├── App.svelte │ │ ├── CustomAudio.svelte │ │ ├── CustomVideo.svelte │ │ ├── MetricRecord.svelte │ │ ├── ResizeListener.svelte │ │ ├── Select.svelte │ │ ├── Sparkline.svelte │ │ ├── StitchHandler.svelte │ │ ├── TokenGrid.svelte │ │ ├── TokenGridItem.svelte │ │ ├── clickoutside.ts │ │ ├── interfaces.ts │ │ ├── longhover.ts │ │ ├── main.css │ │ ├── main.js │ │ ├── metrics.ts │ │ ├── mocks.ts │ │ ├── stitch.ts │ │ └── template.html │ └── tsconfig.json ├── docs/ │ ├── .readthedocs.yaml │ ├── Makefile │ ├── _static/ │ │ └── css/ │ │ └── styles.css │ ├── api.rst │ ├── api_examples.rst │ ├── art_of_prompt_design.rst │ ├── conf.py │ ├── index.rst │ ├── make.bat │ └── tutorials.rst ├── guidance/ │ ├── __init__.py │ ├── _ast.py │ ├── _bg/ │ │ └── __init__.py │ ├── _grammar.py │ ├── _guidance.py │ ├── _guidance.pyi │ ├── _parser.py │ ├── _schema.py │ ├── _tools.py │ ├── _topics.py │ ├── _utils.py │ ├── chat.py │ ├── debug.py │ ├── library/ │ │ ├── __init__.py │ │ ├── _audio.py │ │ ├── _block.py │ │ ├── _capture.py │ │ ├── _ebnf.py │ │ ├── _gen.py │ │ ├── _image.py │ │ ├── _json.py │ │ ├── _optional.py │ │ ├── _pydantic.py │ │ ├── _role.py │ │ ├── _sequences.py │ │ ├── _subgrammar.py │ │ ├── _substring.py │ │ └── _video.py │ ├── metrics/ │ │ ├── __init__.py │ │ └── _metrics.py │ ├── models/ │ │ ├── __init__.py │ │ ├── _azureai.py │ │ ├── _base/ │ │ │ ├── __init__.py │ │ │ ├── _interpreter.py │ │ │ ├── _model.py │ │ │ └── _state.py │ │ ├── _byte_tokenizer.py │ │ ├── _engine/ │ │ │ ├── __init__.py │ │ │ ├── _engine.py │ │ │ ├── _interpreter.py │ │ │ ├── _state.py │ │ │ └── _tokenizer.py │ │ ├── _llama_cpp.py │ │ ├── _mock.py │ │ ├── _onnxruntime.py │ │ ├── _openai.py │ │ ├── _openai_base.py │ │ ├── _transformers.py │ │ ├── broken_models/ │ │ │ ├── README.MD │ │ │ ├── _Gemini.py │ │ │ ├── _anthropic.py │ │ │ ├── _azure_openai.py │ │ │ ├── _azureai_studio.py │ │ │ ├── _cohere.py │ │ │ ├── _googleai.py │ │ │ ├── _lite_llm.py │ │ │ ├── _togetherai.py │ │ │ └── _vertexai.py │ │ └── experimental/ │ │ ├── __init__.py │ │ ├── _litellm.py │ │ ├── _sglang.py │ │ └── _vllm.py │ ├── py.typed │ ├── registry/ │ │ ├── __init__.py │ │ └── _registry.py │ ├── resources/ │ │ └── graphpaper-inline.html │ ├── trace/ │ │ ├── __init__.py │ │ └── _trace.py │ └── visual/ │ ├── __init__.py │ ├── _environment.py │ ├── _exchange.py │ ├── _jupyter.py │ ├── _message.py │ ├── _renderer.py │ └── _trace.py ├── notebooks/ │ ├── anachronism.ipynb │ ├── api_examples/ │ │ ├── library/ │ │ │ └── gen.ipynb │ │ └── models/ │ │ ├── AzureOpenAI.ipynb │ │ ├── OpenAI.ipynb │ │ └── TogetherAI.ipynb │ ├── art_of_prompt_design/ │ │ ├── prompt_boundaries_and_token_healing.ipynb │ │ ├── rag.ipynb │ │ ├── react.ipynb │ │ ├── tool_use.ipynb │ │ └── use_clear_syntax.ipynb │ ├── chatgpt_vs_open_source_on_harder_tasks.ipynb │ ├── engine_chat_completion.ipynb │ ├── guaranteeing_valid_syntax.ipynb │ ├── proverb.ipynb │ ├── testing_lms.ipynb │ ├── tutorials/ │ │ ├── adding_new_models.ipynb │ │ ├── chat.ipynb │ │ ├── code_generation.ipynb │ │ ├── guidance_acceleration.ipynb │ │ ├── intro_to_guidance.ipynb │ │ ├── litellm_models.ipynb │ │ ├── onnxruntime_models.ipynb │ │ ├── regex_constraints.ipynb │ │ ├── token_healing.ipynb │ │ └── tool_calling.ipynb │ └── unstable/ │ └── .gitignore ├── packages/ │ └── python/ │ └── stitch/ │ ├── .coveragerc │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .github/ │ │ └── workflows/ │ │ └── build.yml │ ├── .gitignore │ ├── .npmignore │ ├── .prettierignore │ ├── .prettierrc │ ├── .yarnrc.yml │ ├── LICENSE.txt │ ├── MANIFEST.in │ ├── README.md │ ├── babel.config.js │ ├── codecov.yml │ ├── css/ │ │ └── widget.css │ ├── docs/ │ │ ├── Makefile │ │ ├── environment.yml │ │ ├── make.bat │ │ └── source/ │ │ ├── _static/ │ │ │ └── helper.js │ │ ├── conf.py │ │ ├── develop-install.rst │ │ ├── examples/ │ │ │ ├── index.rst │ │ │ └── introduction.nblink │ │ ├── index.rst │ │ ├── installing.rst │ │ └── introduction.rst │ ├── examples/ │ │ └── introduction.ipynb │ ├── install.json │ ├── jest.config.js │ ├── package.json │ ├── pyproject.toml │ ├── pytest.ini │ ├── readthedocs.yml │ ├── setup.py │ ├── src/ │ │ ├── __tests__/ │ │ │ ├── index.spec.ts │ │ │ └── utils.ts │ │ ├── extension.ts │ │ ├── index.ts │ │ ├── plugin.ts │ │ ├── version.ts │ │ └── widget.ts │ ├── stitch/ │ │ ├── __init__.py │ │ ├── _frontend.py │ │ ├── _version.py │ │ ├── nbextension/ │ │ │ └── extension.js │ │ ├── stitch.py │ │ └── tests/ │ │ ├── __init__.py │ │ ├── conftest.py │ │ ├── test_example.py │ │ └── test_nbextension_path.py │ ├── stitch.json │ ├── tsconfig.eslint.json │ ├── tsconfig.json │ └── webpack.config.js ├── pyproject.toml ├── ruff.toml ├── scripts/ │ └── extract_python_from_readme.py └── tests/ ├── ReadMe.md ├── __init__.py ├── conftest.py ├── model_integration/ │ ├── __init__.py │ ├── library/ │ │ ├── test_gen.py │ │ ├── test_json.py │ │ ├── test_subgrammar.py │ │ └── test_substring.py │ ├── test_engine.py │ ├── test_grammar.py │ ├── test_model.py │ └── test_tokenizers.py ├── model_specific/ │ ├── __init__.py │ ├── common_chat_testing.py │ ├── llama_cpp_tests/ │ │ ├── __init__.py │ │ ├── test_chat_templates.py │ │ ├── test_llama_cpp.py │ │ └── test_think.py │ ├── test_onnxruntime_genai.py │ ├── test_transformers.py │ └── test_visual.py ├── need_credentials/ │ ├── __init__.py │ ├── test_anthropic.py │ ├── test_azureai_openai.py │ ├── test_azureai_studio.py │ ├── test_chat_templates.py │ ├── test_cohere.py │ ├── test_googleai.py │ ├── test_lite_llm.py │ ├── test_openai.py │ ├── test_togetherai.py │ ├── test_tokenizers.py │ └── test_vertexai.py ├── notebooks/ │ ├── __init__.py │ ├── nb_test_utils.py │ ├── test_notebooks.py │ └── test_notebooks_azure.py ├── tokenizer_common.py ├── unit/ │ ├── __init__.py │ ├── library/ │ │ ├── __init__.py │ │ ├── json/ │ │ │ ├── __init__.py │ │ │ ├── test_allOf.py │ │ │ ├── test_json.py │ │ │ ├── test_refs.py │ │ │ ├── test_string_format.py │ │ │ └── utils.py │ │ ├── test_block.py │ │ ├── test_capture.py │ │ ├── test_gen.py │ │ ├── test_image.py │ │ ├── test_one_or_more.py │ │ ├── test_pydantic.py │ │ ├── test_regex.py │ │ ├── test_sequences.py │ │ ├── test_special.py │ │ ├── test_subgrammar.py │ │ └── test_substring.py │ ├── test_ast.py │ ├── test_decorator.py │ ├── test_grammar.py │ ├── test_ll.py │ ├── test_model.py │ ├── test_parser.py │ ├── test_trace.py │ └── test_visual.py └── utils.py