Package com.sap.ai.sdk.foundationmodels.openai

# Class OpenAiFunctionCall

java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.OpenAiFunctionCall

All Implemented Interfaces:
  `OpenAiToolCall`

public final class OpenAiFunctionCall extends Object implements OpenAiToolCall
Represents a function type tool called by an OpenAI model.

Since:
  1.6.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  `String`
  `getArguments()`
  The arguments for the function call, encoded as a JSON string.
  `String`
  `getId()`
  The unique identifier for the function call.
  `String`
  `getName()`
  The name of the function to be called.
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Method Details

  - ### getId

    @Nonnull public String getId()
    The unique identifier for the function call.

  - ### getName

    @Nonnull public String getName()
    The name of the function to be called.

  - ### getArguments

    @Nonnull public String getArguments()
    The arguments for the function call, encoded as a JSON string.

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`