pub async fn query(
prompt: &str,
options: Option<LlmOptions>,
) -> Result<LlmResponse>Expand description
Send a prompt and get the full text response.
This is the simplest way to use Claude through your CC subscription. All agent features (tools, system prompt, hooks) are disabled by default.
ยงExample
let response = cc_sdk::llm::query("What is 2 + 2?", None).await?;
assert!(response.text.contains("4"));