Expand description
§UCP API
High-level API for the Unified Content Protocol.
This crate provides a convenient interface for working with UCP documents, combining the core types, engine operations, and UCL parsing into a unified API.
§Key Types
UcpClient- Main entry point for document manipulationCodeGraphBuildResult- Code analysis for repositories
§Example
ⓘ
use ucp_api::UcpClient;
let client = UcpClient::new();
let mut doc = client.create_document();
// Execute UCL commands
let results = client.execute_ucl(&mut doc, "APPEND root text :: \"Hello!\"").unwrap();Structs§
- Code
Graph Build Input - Code
Graph Build Result - Code
Graph Coderef - Code
Graph Context Edge Export - Code
Graph Context Export - Code
Graph Context Frontier Action - Code
Graph Context Heuristics - Code
Graph Context Node Export - Code
Graph Context Session - Code
Graph Context Summary - Code
Graph Context Update - Code
Graph Diagnostic - Code
Graph Export Config - Code
Graph Export Omission Detail - Code
Graph Export Omission Explanation - Code
Graph Export Omission Report - Code
Graph Extractor Config - Code
Graph Find Query - Code
Graph Hidden Level Summary - Code
Graph Incremental Build Input - Code
Graph Incremental Stats - Code
Graph Mutation Estimate - Code
Graph Navigator - Code
Graph Navigator Session - Code
Graph Node Summary - Code
Graph Operation Budget - Code
Graph Path Hop - Code
Graph Path Result - Code
Graph Persisted Session - Code
Graph Prompt Projection Config - Code
Graph Provenance Step - Code
Graph Prune Explanation - Code
Graph Prune Policy - Code
Graph Recommendation - Code
Graph Recommended Actions Result - Code
Graph Render Config - Code
Graph Selection Explanation - Code
Graph Selection Origin - Code
Graph Selector Resolution Explanation - Code
Graph Session Diff - Code
Graph Session Mutation - Code
Graph Session Persistence Metadata - Code
Graph Stats - Code
Graph Traversal Config - Code
Graph Validation Result - Graph
Export - Graph
Export Edge - Graph
Export Node - Graph
Find Query - Graph
Navigator - Graph
Node Record - Graph
Node Summary - Graph
Path Hop - Graph
Path Result - Graph
Selection Explanation - Graph
Selection Origin - Graph
Session - Graph
Session Diff - Graph
Session Node - Graph
Session Summary - Graph
Session Update - Graph
Store Observability - Graph
Store Stats - Hydrated
Source Excerpt - InMemory
Graph Store - Portable
Document - Canonical JSON-safe representation of a
Document. - Sqlite
Graph Store - UcpClient
- UCP client for document manipulation
Enums§
- Code
Graph Build Status - Code
Graph Detail Level - Code
Graph Expand Mode - Code
Graph Export Mode - Code
Graph Export Omission Reason - Code
Graph Selection Origin Kind - Code
Graph Session Event - Code
Graph Session Mutation Kind - Code
Graph Severity - Graph
Detail Level - Graph
Neighbor Mode - Graph
Selection Origin Kind
Constants§
Functions§
- approximate_
prompt_ tokens - build_
code_ graph - build_
code_ graph_ incremental - canonical_
codegraph_ json - canonical_
fingerprint - codegraph_
prompt_ projection - codegraph_
prompt_ projection_ with_ config - export_
codegraph_ context - export_
codegraph_ context_ with_ config - is_
codegraph_ document - render_
codegraph_ context_ prompt - resolve_
codegraph_ selector - validate_
code_ graph_ profile