Overview of UModel SDK examples
mainThe UModel SDK surface provides runnable examples for several core workflows:
- Model Inspection: Using generated SDKs (Go or Python) to check UModel model packages, parse YAML/JSON, validate envelopes, list metadata, and show link endpoints.
- Service Integration: Combining generated model SDKs with REST service clients.
- Contract-based Development: Writing application code that depends on public contracts rather than internal server packages.
Available Examples
| Path | Entrypoint | Purpose |
|---|---|---|
full-flow.zh-CN.md | End-to-end flow | SDK generation, service startup, and running SDK examples. |
go/model-inspector | Generated Go model SDK | Parsing UModel files, validating envelopes, listing metadata, and showing link endpoints. |
go/service-quickstart | Go REST client | Creating workspaces, importing model packages, querying UModel elements, and viewing Agent discovery. |
python/inspect_model_pack.py | Generated Python model SDK | Scanning model packages and outputting kind/domain/name/link summaries. |