Files
ai-contract-platform/yuqei-ai-sdk-python/README.md
T

28 lines
1.2 KiB
Markdown

# Yuqei Python SDK
Python client for V2 service-to-service calls.
Initial scope:
- AI Platform legal QA client.
- Request context headers.
- Typed request and response models.
- Model provider config management.
- Prompt template management.
- Knowledge import batches, document insert/search, chunk listing, and keyword/vector/hybrid chunk search.
- AI run audit listing with retrieved chunk ids and structured source metadata.
- Async frozen-candidate semantic review through
`AiPlatformClient.create_contract_draft_semantic_review_job(...)`, plus the
common model-job get, cancel, and explicit retry methods.
Semantic review uses operation `contract_draft_semantic_review`, a fixed Prompt
snapshot, and at most the initial attempt plus one explicit retry. There is no
automatic repair or fallback-success path. Consumers must reject failed,
cancelled, fallback, and receipt-invalid jobs.
`semantic_review_execution_identity_errors(request, job, evidence)` rechecks
the server-derived receipt against the stored job. The receipt is an integrity
record, not a cryptographic signature or legal approval, and does not certify
semantic correctness, legal correctness, or adoption. SDK availability does
not by itself mean the workflow is enabled in a deployed service.