1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! The Responses API (`/responses`): request builder, response, streaming events.
//!
//! [`ResponsesBuilder`] builds the generated `openai-client-base` [`CreateResponse`];
//! [`Client::send_responses`](crate::Client::send_responses) sends it to `POST /responses` and
//! returns a [`ResponsesResponse`], and
//! [`Client::send_responses_stream`](crate::Client::send_responses_stream) streams its
//! [`ResponsesEvent`]s. [`Client::responses_api`](crate::Client::responses_api) retrieves,
//! cancels and deletes stored responses.
//!
//! ```rust,no_run
//! use openai_ergonomic::Client;
//!
//! # async fn example() -> openai_ergonomic::Result<()> {
//! let client = Client::from_env()?.build();
//! let response = client
//! .send_responses(client.responses().user("Say hello"))
//! .await?;
//! println!("{}", response.output_text());
//! # Ok(())
//! # }
//! ```
//!
//! Chat completions (`/chat/completions`) have their own builder,
//! [`ChatCompletionBuilder`](crate::ChatCompletionBuilder).
pub use ;
pub use ResponsesResponse;
pub use ;
/// The generated models of the Responses API that its builder and accessors use.
pub use ;