litellm/litellm-rust/crates/inference-ocr/AGENTS.md
Mateo Wang 3069a467d0
docs(agents): ban semicolons and colons in human-facing text (#45684)
* docs(agents): ban semicolons and colons in human-facing text

Tighten the writing rule so ";" and ":" are only allowed where the sentence would be nonsensical without them, rewrite the existing semicolons in AGENTS.md to follow it, and note that docs (litellm-docs) keep their trailing "."

* docs(agents): rewrite semicolons in nested AGENTS.md files

* docs(agents): hand-maintain the dashboard Next.js warning and sync e2e CONTRIBUTING lines

* docs(agents): point at the PR template path that exists

* docs(agents): restore the generated Next.js block in the dashboard AGENTS.md
2026-10-09 16:36:32 -07:00

801 B

  • Shared base and layering rules: ../inference/AGENTS.md
  • This crate owns OCR call orchestration. Payloads belong in litellm-llms-types, transformations and the request handler in llms/src/base_llm/ocr and llms/src/<provider>/ocr
  • The route returns its completed response directly
  • Route closures supply OCR-specific host capabilities, such as the caller's Azure AD token provider (src/route.rs)
  • Provider code reaches the caller's hooks mid-call only through litellm_llms::base_llm::ocr::handler::CallHooks, which this crate implements over its host until it folds into litellm_host::interceptors::Interceptors
  • OCR failures use base_llm/ocr/error.rs, the recorded exception to litellm_inference::RouteError until OCR folds into litellm_llms::Error