docs.rs failed to build k2f_sdk-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
k2f_sdk
Agent-facing Rust SDK for building and editing .K2F documents.
Document— create semantic trees, compile locks, save packages, export PDFEditor— open packages, edit by stable node id, diff/outline, suggestions- Markdown bridge —
markdown_to_k2f/k2f_to_markdown - Signing — Ed25519 key generation and
sign
License: Apache-2.0
Quick example
use ;
let mut doc = new;
doc.add_heading?;
doc.add_body?;
let bytes = doc.save_bytes?;
let mut editor = open?;
editor.replace_text?;
let updated = editor.save_bytes?;
Agent authoring profile
Agents should follow the dialect in instructions/agent_v0.md (also exposed as k2f_sdk::SYSTEM_PROMPT).
Public format contract: k2f-v0.1.md.
Install
# CLI: cargo install k2f