class AI

Defined in:

ai.cr

Constant Summary

MODEL = "gpt-4o"
URL = "https://api.openai.com/v1/chat/completions"

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def chat(moves : Array(String), text : String) #

[View source]
def next_move(moves : Array(String), error : String | Nil = nil) #

[View source]
def prev_tool_id : String | Nil #

[View source]
def prev_tool_id=(prev_tool_id : String | Nil) #

[View source]