openai_struct/models/chat_completion_request_assistant_message_function_call.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/// pub ChatCompletionRequestAssistantMessageFunctionCall : Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize, PartialEq)]
17pub struct ChatCompletionRequestAssistantMessageFunctionCall {
18 /// The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
19 #[serde(rename = "arguments")]
20 pub arguments: String,
21 /// The name of the function to call.
22 #[serde(rename = "name")]
23 pub name: String,
24}