Validates a LangChain-style agent exposes tools (including required chat_tool) and returns a LangChainAgentRegistration for RemotePlayWorld.addAgent.
chat_tool
RemotePlayWorld.addAgent
Return value from createAgent (or equivalent) with a tools array.
createAgent
tools
Error if tools are missing or chat_tool is not present.
Callers: user code before RemotePlayWorld.addAgent. Callees: internal validation helpers and agentPlayDebug.
Validates a LangChain-style agent exposes tools (including required
chat_tool) and returns a LangChainAgentRegistration forRemotePlayWorld.addAgent.