ExOpenAI.Components.ChatCompletionResponseMessage (ex_openai.ex v0.2.0) View Source

Link to this section Summary

Functions

Helper function to return the full AST representation of the type and all it's nested types This is used so that all atoms in the map are getting allocated recursively. Without this, we wouldn't be able to safely do String.to_existing_atom()

Link to this section Types

Specs

t() :: %ExOpenAI.Components.ChatCompletionResponseMessage{
  content: String.t(),
  role: String.t()
}

Link to this section Functions

Link to this function

unpack_ast(partial_tree \\ %{})

View Source

Helper function to return the full AST representation of the type and all it's nested types This is used so that all atoms in the map are getting allocated recursively. Without this, we wouldn't be able to safely do String.to_existing_atom()