openai_struct/models/
chat_completion_request_tool_message.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize, PartialEq)]
15pub struct ChatCompletionRequestToolMessage {
16    /// The contents of the tool message.
17    #[serde(rename = "content")]
18    pub content: Value,
19    /// The role of the messages author, in this case `tool`.
20    #[serde(rename = "role")]
21    pub role: String,
22    /// Tool call that this message is responding to.
23    #[serde(rename = "tool_call_id")]
24    pub tool_call_id: String,
25}