Skip to main content

cerebras_rs/models/
function_call.rs

1/*
2 * Cerebras Inference API
3 *
4 * The Cerebras Inference API offers developers a low-latency solution for AI model inference  powered by Cerebras Wafer-Scale Engines and CS-3 systems. The API provides access to  high-performance language models with unprecedented speed for AI inference workloads. 
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: support@cerebras.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FunctionCall {
16    /// The name of the function
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// The arguments of the function
20    #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")]
21    pub arguments: Option<String>,
22}
23
24impl FunctionCall {
25    pub fn new() -> FunctionCall {
26        FunctionCall {
27            name: None,
28            arguments: None,
29        }
30    }
31}
32