Skip to main content

client_prompt

Function client_prompt 

Source
pub fn client_prompt(client: &Client) -> &str
Expand description

Extract the prompt string from a Client and return it.

Convenience wrapper for the free-function wrappers that need to inspect the prompt on an already-constructed client.

§Example

use gemini_cli_sdk::{Client, ClientConfig, client_prompt};

let config = ClientConfig::builder().prompt("hello").build();
// NOTE: Client::new requires a real CLI binary — this example shows
// the function signature only.
// let client = Client::new(config).unwrap();
// assert_eq!(client_prompt(&client), "hello");