Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.4 KB

File metadata and controls

46 lines (30 loc) · 1.4 KB

Python Typed Models and Facade

Purpose

This guide summarizes generated model architecture, typed facade behavior, and validation-mode strategy.

What is implemented

  • generated OpenAPI-based Pydantic models
  • additive typed facade on sync/async clients (cm.typed, acm.typed)
  • typed validation error diagnostics
  • explicit typed vs raw operation coverage declaration

Behavior summary

  • existing dict-domain APIs stay unchanged
  • typed facade is opt-in per call path
  • validation behavior can be tuned by mode and per-call override

Validation mode summary

  • typed-only (default)
  • off
  • strict

Strict mode extends validation to selected dict-domain operations while preserving dict return shapes.

Practical usage summary

Use typed facade when you need stronger request/response guarantees for:

  • session lifecycle operations
  • settings writes/reads
  • suggest-request flows
  • approval/tool-input decisions

Next References

Related docs