grid-royale / backend /tools /think.py
LokeshReddy001's picture
Initial commit: Grid Royale game backend and frontend.
bcad26c
Raw
History Blame Contribute Delete
913 Bytes
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from ..environment.environment import Environment
class ThinkTool:
name = "think"
schema = {
"type": "function",
"function": {
"name": "think",
"description": "Internal monologue. Use this to reason about your strategy without any external effect.",
"parameters": {
"type": "object",
"properties": {
"content": {
"type": "string",
"description": "Your internal thoughts and reasoning",
},
},
"required": ["content"],
},
},
}
@staticmethod
def run(env: Environment, aid: str, args: dict) -> str:
content = args.get("content", "")
return "Thought Acknowledged"