### Tic-Tac-Toe Game Log Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/2llms/README.md This log shows the interaction between two LLM agents playing Tic-Tac-Toe. It details the game setup, board state updates, and agent moves until the game concludes. ```log [Scheduler] Processors: 10 SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation (NOP) logger implementation SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details. Web Server started at 9000 [main]Setting up game... [main]Creating board... [main]POSTing to: http://localhost:8080/boards [main]Created Board: http://localhost:8080/boards/game1 SENDING: inform from: main to: [p1] with: configure("X","p2","http://localhost:8080/boards/game1") [p1]Received Configuration Message SENDING: inform from: main to: [p2] with: configure("O","p1","http://localhost:8080/boards/game1") [p2]Received Configuration Message [p2]creating: p2-base [p1]creating: p1-base Creating base artifact: p2 Creating base artifact: p1 Exposing Agent @ Base Uri: http://127.0.0.1:9000/p2 Exposing Agent @ Base Uri: http://127.0.0.1:9000/p1 SENDING: inform from: p1 to: [main] with: configured("X","http://localhost:8080/boards/game1") SENDING: inform from: p2 to: [main] with: configured("O","http://localhost:8080/boards/game1") [main]Ready to play.... SENDING: request from: main to: [p1] with: move() [p1]Connecting to: http://localhost:8080/boards/game1 [p1]board: {"board":["","",""],"",""]} [p1]Thinking... [p1]Selection: (1/1) SENDING: request from: p1 to: [p2] with: move() [p2]Connecting to: http://localhost:8080/boards/game1 [p2]board: {"board":["","",""],"","X",""],"",""]} [p2]Thinking... [p2]Selection: (1/2) SENDING: request from: p2 to: [p1] with: move() [p1]Connecting to: http://localhost:8080/boards/game1 [p1]board: {"board":["","",""],"","X","O"],"",""]} [p1]Thinking... [p1]Selection: (0/0) SENDING: request from: p1 to: [p2] with: move() [p2]Connecting to: http://localhost:8080/boards/game1 [p2]board: {"board":["X","",""],"","X","O"],"",""]} [p2]Thinking... [p2]Selection: (0/1) SENDING: request from: p2 to: [p1] with: move() [p1]Connecting to: http://localhost:8080/boards/game1 [p1]board: {"board":["X","O",""],"","X","O"],"",""]} [p1]Thinking... [p1]Selection: (2/0) SENDING: request from: p1 to: [p2] with: move() [p2]Connecting to: http://localhost:8080/boards/game1 [p2]board: {"board":["X","O",""],"","X","O"],"X","",""],"X","O",""],"",""]} [p2]Thinking... [p2]Selection: (2/1) SENDING: request from: p2 to: [p1] with: move() [p1]Connecting to: http://localhost:8080/boards/game1 [p1]board: {"board":["X","O",""],"","X","O"],"X","O",""],"X","O",""],"",""]} [p1]Thinking... [p1]Selection: (1/0) SENDING: request from: p1 to: [p2] with: move() [p2]Connecting to: http://localhost:8080/boards/game1 [p2]board: {"board":["X","O",""],"X","X","O"],"X","O",""],"X","O",""],"",""]} [p2]Winner: X CLOSED ``` -------------------------------- ### Create Basic OpenAI Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a basic Tic-Tac-Toe player utilizing OpenAI. ```Astra system.createAgent(x, "OpenAIPlayer"); ``` -------------------------------- ### Add Files using Command Line Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/agents/README.md Instructions for adding files to a Git repository and pushing them to a remote origin. Ensure you are in the existing repository directory before executing. ```bash cd existing_repo git remote add origin https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe.git git branch -M main git push -uf origin main ``` -------------------------------- ### Create Reflective OpenAI Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a Tic-Tac-Toe player with a reflective OpenAI strategy. A limit of three reflections is imposed. ```Astra system.createAgent(x, "ReflectiveOpenAIPlayer"); ``` -------------------------------- ### Create Basic Gemini Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a basic Tic-Tac-Toe player utilizing Gemini. ```Astra system.createAgent(x, "GeminiPlayer"); ``` -------------------------------- ### Create Basic Linear Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a non-LLM based linear player for Tic-Tac-Toe. ```Astra system.createAgent(x, "BasicPlayer"); ``` -------------------------------- ### Create Defensive OpenAI Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a defensive Tic-Tac-Toe player using OpenAI. It first checks if the board is 'loosable' before deciding a move. ```Astra system.createAgent(x, "DefensiveOpenAIPlayer"); ``` -------------------------------- ### Create Reflective Gemini Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a Tic-Tac-Toe player with a reflective Gemini strategy. A limit of three reflections is imposed. ```Astra system.createAgent(x, "ReflectiveGeminiPlayer"); ``` -------------------------------- ### Create Defensive Gemini Player Source: https://gitlab.com/astra-language/examples/llm-examples/tic-tac-toe/-/blob/main/README.md Use this command to create a defensive Tic-Tac-Toe player using Gemini. It first checks if the board is 'loosable' before deciding a move. ```Astra system.createAgent(x, "DefensiveGeminiPlayer"); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.