MistralClient.Models.Beta.CompletionArgs (mistralex_ai v0.1.0)

View Source

Represents completion arguments for agents and conversations.

Summary

Functions

Create a CompletionArgs struct from a map.

Convert a CompletionArgs struct to a map for API requests.

Types

t()

@type t() :: %MistralClient.Models.Beta.CompletionArgs{
  frequency_penalty: float() | nil,
  max_tokens: integer() | nil,
  prediction: map() | nil,
  presence_penalty: float() | nil,
  random_seed: integer() | nil,
  response_format: map() | nil,
  stop: String.t() | [String.t()] | nil,
  temperature: float() | nil,
  tool_choice: String.t() | map() | nil,
  top_p: float() | nil
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create a CompletionArgs struct from a map.

to_map(args)

@spec to_map(t()) :: map()

Convert a CompletionArgs struct to a map for API requests.